From: "Jan Beulich" Subject: Re: [PATCH v2 16/16] xen/arm: IRQ: Handle multiple action per IRQ Date: Fri, 04 Apr 2014 10:00:22 +0100 Message-ID: <533E90C602000078000058DA@nat28.tlf.novell.com> References: <1396557727-19102-1-git-send-email-julien.grall@linaro.org> <1396557727-19102-17-git-send-email-julien.grall@linaro.org> <533E82740200007800005828@nat28.tlf.novell.com> <533E72D9.9030605@linaro.org> 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 1WVzz8-00069d-AB for xen-devel@lists.xenproject.org; Fri, 04 Apr 2014 09:00:26 +0000 In-Reply-To: <533E72D9.9030605@linaro.org> 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: xen-devel@lists.xenproject.org, Keir Fraser , stefano.stabellini@citrix.com, ian.campbell@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 04.04.14 at 10:52, wrote: > On 04/04/2014 08:59 AM, Jan Beulich wrote: >>>>> On 03.04.14 at 22:42, wrote: >>> @@ -27,6 +30,7 @@ struct irqaction { >>> #define IRQ_MOVE_PENDING (1u<<5) /* IRQ is migrating to another CPUs */ >>> #define IRQ_PER_CPU (1u<<6) /* IRQ is per CPU */ >>> #define IRQ_GUEST_EOI_PENDING (1u<<7) /* IRQ was disabled, pending a guest EOI */ >>> +#define IRQ_SHARED (1<<8) /* IRQ is shared */ >> >> This is now given two meanings (input to above functions and status), >> which in the long run can become problematic. Please follow Linux by >> using two distinct flag sets. > > Ok, I will rename it Ito IRQF_SHARED and introduce a new field "flags" > in irq_desc. No, sorry, that's not what I meant. I want the new definition solely for the purpose of passing as function argument. Folding all the flags internally into the status field is quite okay for the time being. Jan