From: "Jan Beulich" Subject: Re: [PATCH] xen: do not unmask disabled IRQ on eoi. Date: Fri, 22 Oct 2010 15:48:33 +0100 Message-ID: <4CC1C061020000780001E9F2@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> <4CBD5883020000780001DEC4@vpn.id2.novell.com> <4CC15C5B020000780001E8B2@vpn.id2.novell.com> <1287734836.29224.648.camel@localhost.localdomain> <4CC16797020000780001E8F7@nat.nue.novell.com> <1287736466.11851.5609.camel@zakaz.uk.xensource.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: Ian Campbell , Stefano Stabellini Cc: "jeremy@goop.org" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 22.10.10 at 15:57, Stefano Stabellini wrote: > In none of these cases the evtchn would be masked for sure, so I'll have > to test if the evtchn is masked and call move_masked_irq or > move_native_irq accordingly. I preferred to test the evtchn_mask > directly as opposed to the irq flags because the test is easier to > understand (we could arrive in eoi_pirq from both handle_edge_irq or > handle_fasteoi_irq, the latter doesn't set IRQ_MASKED when masks > an irq). But you still didn't add and IRQ_DISABLED check around the call to move_masked_irq() - do you have any particular reason not to? Jan