From: "Jan Beulich" Subject: Re: [PATCH] xen: do not unmask disabled IRQ on eoi. Date: Tue, 19 Oct 2010 08:13:16 +0100 Message-ID: <4CBD612C020000780001DEDB@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 22:04, Stefano Stabellini wrote: > Actually it has just occurred to me that we can safely have clear_evtchn = in > do_upcall and at the same time not mask the evtchn because we are > protected against executing multiple upcalls at the same time anyway by > xed_nesting_count. I wouldn't suggest doing so - while this protects against recursion for the actual handlers, you may still get do_upcall() invoked way too many times, up to allowing a guest to continuously trigger an event making do_upcall() get continuously invoked (as long as event delivery isn't disabled altogether) - the very situation Ian's patch you're suggesting to revert tried to address. Jan