From: "Jan Beulich" Subject: Re: [PATCH] xen: do not unmask disabled IRQ on eoi. Date: Tue, 19 Oct 2010 07:36:19 +0100 Message-ID: <4CBD5883020000780001DEC4@vpn.id2.novell.com> References: <1287139966-19391-2-git-send-email-ian.campbell@citrix.com> <1287160335.2003.7973.camel@zakaz.uk.xensource.com> <1287160787.2003.7979.camel@zakaz.uk.xensource.com> <4CBC1CF1020000780001DA3F@vpn.id2.novell.com> <4CBC80E6020000780001DC78@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: Ian Campbell , "jeremy@goop.org" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 18.10.10 at 20:14, Stefano Stabellini wrote: > On Mon, 18 Oct 2010, Jan Beulich wrote: > The other type of pirqs are the ones that have ack_type !=3D ACKTYPE_NONE= , > in these cases xen waits for the guest to issue the eoi before acking > the machine irq so it shouldn't be possible to receive any pirqs while > we are handling the first one. But even in that case you do the clear after the EOI notification, i.e. you still have a window where you may lose an event. > That said, I don't see any simple way to improve this patch so that we > are able to receive one notification while handling a pirq without > changing the semantic of the fasteoi handler or switching to the edge > handler for pirqs that don't need eoi. What I'm trying to say is that I think the direct mask/clear in do_upcall()= should stay as it is. Jan