Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1445524imp; Fri, 22 Feb 2019 03:44:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IYV+YYWf2Cu2Xza93XPFcOxd6OfWPcmwg/YfhaW59kFVojYzImBu5Rr8DVv6ADvm/Eh4Myr X-Received: by 2002:a63:1241:: with SMTP id 1mr3582985pgs.211.1550835896199; Fri, 22 Feb 2019 03:44:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550835896; cv=none; d=google.com; s=arc-20160816; b=fKUbVMc1D7I7rDyeeQ+mSXwiF7xA8T8tcLOiGiWlj+cvQxn6XWatM8mSij2R3qGXk0 SrBEiRDDkPzVuJS9HKo9eb2c2ia6VjANw4djPREerNoKTxSg+Yetq+MJ2nASzfAAtXn5 WPNPwAyNOg+EaSnEsFw1/ZQuD9xoQUto78MlGTzowoNZsrPK1XBSC68qdWXPxY8AoBQB AOmuDEyp1dbBMDQdMEPwEwALwbVUk/S4EQqxXa1w+y3r4B+QeKlH1jk9qeWFJC9YiGbn w0Klj8dXx5MPd/3grr77HV37r8eeYpEWKvu+Vw0xXf2MqlyQ9DqPX55Yi/UH748gO5mz qHMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references :subject:cc:to:from:date:message-id; bh=CUoZiKG0DIieK7XKHiqPPZzahWIvbXXwxumgA0h1XRY=; b=yqKX41/mE0YjXb7ILe9vyW8SR/46JzkfhuXzDxfsTWQmOTH8p9Dl5tIaUo5DyEga+B 5F+ZMmKs65CYKvPcKpAd+NaBOi2nQGiXRT8VmTtCxJ5X0JEghkSK/QUdDCCtFH/sBw9w ekSfT0L1a+p7RA9LRE2lyFL0anLAKcCwLQxF5i/Q78kUgNirHu3S9GCvK5ASmdpADLz/ WsZDNpJQ+AfovdzR2nudmcza4dHFSXWEHqz5J5EwR4TvzwkwwiG7htVfjjZPw+13LvZU Rc67dqEQH+QOw3DDZZa2pkesJrOwJvP35/sXbndoOKTcMOBUyLGwJhCPmfhVeyRTXAmw 0foQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t74si1222703pgc.150.2019.02.22.03.44.41; Fri, 22 Feb 2019 03:44:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726959AbfBVLoH convert rfc822-to-8bit (ORCPT + 99 others); Fri, 22 Feb 2019 06:44:07 -0500 Received: from prv1-mh.provo.novell.com ([137.65.248.33]:38853 "EHLO prv1-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfBVLoG (ORCPT ); Fri, 22 Feb 2019 06:44:06 -0500 Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Fri, 22 Feb 2019 04:44:05 -0700 Message-Id: <5C6FE084020000780021916C@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.1.0 Date: Fri, 22 Feb 2019 04:44:04 -0700 From: "Jan Beulich" To: "Julien Grall" Cc: "Dave P Martin" , "Andrew Cooper" , "Stefano Stabellini" , "xen-devel" , "Boris Ostrovsky" , "Juergen Gross" , Subject: Re: xen/evtchn and forced threaded irq References: <5e256d9a-572c-e01e-7706-407f99245b00@arm.com> <20190220000209.GA4091@localhost.localdomain> <21214d47-9c68-e6bf-007a-4047cc2b02f9@oracle.com> <8f7445d7-fa50-f3e9-44f5-cc2aebd020f4@arm.com> <15bc52cb-82d8-4d2c-e5a8-c6ae8de90276@oracle.com> <5df8888a-4a29-fccd-bac2-a9c170244029@arm.com> <1574a7fe-a5ac-4bc2-d3f0-967d8d01e5f1@oracle.com> <1100e6b1-6fa8-06f0-8ecc-b0699a2ce5f4@arm.com> In-Reply-To: <1100e6b1-6fa8-06f0-8ecc-b0699a2ce5f4@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> On 20.02.19 at 23:03, wrote: > On 2/20/19 9:46 PM, Boris Ostrovsky wrote: >> On 2/20/19 3:46 PM, Julien Grall wrote: >>> On 2/20/19 8:04 PM, Boris Ostrovsky wrote: >>>> On 2/20/19 1:05 PM, Julien Grall wrote: >>>> Some sort of a FIFO that stores {irq, data} tuple. It could obviously be >>>> implemented as a ring but not necessarily as Xen shared ring (if that's >>>> what you were referring to). I'm sort of lost here with the mixed references to "interrupts" and "events". Interrupts can be shared (and have a per-instance (irq,data) tuple), but there should be at most one interrupt underlying the event channel systems, shouldn't there? Event channels otoh can't be shared, and hence there's only one "data" item to be associated with each channel, at which point a plain counter ought to do. >>> The underlying question is what happen if you miss an interrupt. Is it >>> going to be ok? >> >> This I am not sure about. I thought yes since we are signaling the >> process only once. > > I have CCed Andrew and Jan to see if they can help here. What meaning of "miss" do you use here? As long as is only means delay (i.e. miss an instance, but get notified as soon as feasible even if there is not further event coming from the source) - that would be okay, I think. But if you truly mean "miss" (i.e. event lost altogether, with silence resulting if there's no further event), then no, this would not be tolerable. Jan