From: "Jan Beulich" Subject: Re: [PATCH] x86/MSI: fix guest unmasking when handling IRQ via event channel Date: Wed, 08 Jul 2015 11:55:28 +0100 Message-ID: <559D1DC0020000780008E1CC@mail.emea.novell.com> References: <559D01DE020000780008E03C@mail.emea.novell.com> <559CE84C.8050500@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZCn0l-00069S-FK for xen-devel@lists.xenproject.org; Wed, 08 Jul 2015 10:55:31 +0000 In-Reply-To: <559CE84C.8050500@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Keir Fraser , Stefano Stabellini , Andrew Cooper , Ian Jackson , TimDeegan , Ian Campbell , SanderEikelenboom , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 08.07.15 at 11:07, wrote: > On 08/07/2015 09:56, Jan Beulich wrote: >> --- a/xen/include/asm-arm/irq.h >> +++ b/xen/include/asm-arm/irq.h >> @@ -47,6 +47,8 @@ int release_guest_irq(struct domain *d, >> >> void arch_move_irqs(struct vcpu *v); >> >> +#define arch_evtchn_bind_pirq(d, pirq) ((void)((d) + (pirq))) >> + > > This addition is here in order to ensure that d and pirq are evaluated, > right? Sure. > If so, I didn't find it obvious to understand. Why didn't you use a > static inline? Or maybe add a comment explicitly say this is not > implemented. A static inline could be used in this case, yes. But I see no significant advantages. As to the comment - it is implemented, it's just a no-op. And stating that it is a no-op would be redundant with it obviously being so by looking at it. Jan