From: Julien Grall <julien.grall@linaro.org>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
xen-devel@lists.xensource.com
Cc: julien.grall@citrix.com, Ian.Campbell@citrix.com,
Jan Beulich <jbeulich@suse.com>
Subject: Re: [PATCH v8 09/10] xen: introduce bit access macros for the IRQ line status flags
Date: Fri, 11 Jul 2014 14:15:50 +0100 [thread overview]
Message-ID: <53BFE386.8030307@linaro.org> (raw)
In-Reply-To: <1405016003-19131-9-git-send-email-stefano.stabellini@eu.citrix.com>
On 07/10/2014 07:13 PM, Stefano Stabellini wrote:
> diff --git a/xen/include/xen/irq.h b/xen/include/xen/irq.h
> index 40c0f3f..af5b247 100644
> --- a/xen/include/xen/irq.h
> +++ b/xen/include/xen/irq.h
> @@ -22,15 +22,24 @@ struct irqaction {
> /*
> * IRQ line status.
> */
> -#define IRQ_INPROGRESS (1u<<0) /* IRQ handler active - do not enter! */
> -#define IRQ_DISABLED (1u<<1) /* IRQ disabled - do not enter! */
> -#define IRQ_PENDING (1u<<2) /* IRQ pending - replay on enable */
> -#define IRQ_REPLAY (1u<<3) /* IRQ has been replayed but not acked yet */
> -#define IRQ_GUEST (1u<<4) /* IRQ is handled by guest OS(es) */
> -#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 IRQF_SHARED (1<<8) /* IRQ is shared */
> +#define _IRQ_INPROGRESS 0 /* IRQ handler active - do not enter! */
> +#define _IRQ_DISABLED 1 /* IRQ disabled - do not enter! */
> +#define _IRQ_PENDING 2 /* IRQ pending - replay on enable */
> +#define _IRQ_REPLAY 3 /* IRQ has been replayed but not acked yet */
> +#define _IRQ_GUEST 4 /* IRQ is handled by guest OS(es) */
> +#define _IRQ_MOVE_PENDING 5 /* IRQ is migrating to another CPUs */
> +#define _IRQ_PER_CPU 6 /* IRQ is per CPU */
> +#define _IRQ_GUEST_EOI_PENDING 7 /* IRQ was disabled, pending a guest EOI */
> +#define _IRQ_SHARED 8 /* IRQ is shared */
> +#define IRQ_INPROGRESS (1u<<_IRQ_INPROGRESS)
> +#define IRQ_DISABLED (1u<<_IRQ_DISABLED)
> +#define IRQ_PENDING (1u<<_IRQ_PENDING)
> +#define IRQ_REPLAY (1u<<_IRQ_REPLAY)
> +#define IRQ_GUEST (1u<<_IRQ_GUEST)
> +#define IRQ_MOVE_PENDING (1u<<_IRQ_MOVE_PENDING)
> +#define IRQ_PER_CPU (1u<<_IRQ_PER_CPU)
> +#define IRQ_GUEST_EOI_PENDING (1u<<_IRQ_GUEST_EOI_PENDING)
> +#define IRQ_SHARED (1u<<_IRQ_SHARED)
Why did you rename IRQF_SHARED into IRQ_SHARED?
The F was request by Jan Beulich to differentiate input flags for
{setup,request}_irq from IRQ status.
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-07-11 13:15 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-10 18:12 [PATCH v8 00/10] gic and vgic fixes and improvements Stefano Stabellini
2014-07-10 18:13 ` [PATCH v8 01/10] xen/arm: observe itargets setting in vgic_enable_irqs and vgic_disable_irqs Stefano Stabellini
2014-07-11 13:01 ` Julien Grall
2014-07-23 15:31 ` Stefano Stabellini
2014-07-10 18:13 ` [PATCH v8 02/10] xen/arm: move setting GIC_IRQ_GUEST_QUEUED earlier Stefano Stabellini
2014-07-10 18:13 ` [PATCH v8 03/10] xen/arm: inflight irqs during migration Stefano Stabellini
2014-07-17 12:44 ` Ian Campbell
2014-07-23 14:45 ` Stefano Stabellini
2014-07-23 15:38 ` Ian Campbell
2014-07-24 14:48 ` Stefano Stabellini
2014-07-24 16:41 ` Ian Campbell
2014-07-24 16:45 ` Stefano Stabellini
2014-07-24 16:48 ` Ian Campbell
2014-07-24 16:49 ` Stefano Stabellini
2014-07-25 9:08 ` Ian Campbell
2014-07-10 18:13 ` [PATCH v8 04/10] xen/arm: support irq delivery to vcpu > 0 Stefano Stabellini
2014-07-10 18:13 ` [PATCH v8 05/10] xen/arm: physical irq follow virtual irq Stefano Stabellini
2014-07-11 13:07 ` Julien Grall
2014-07-23 15:00 ` Stefano Stabellini
2014-07-10 18:13 ` [PATCH v8 06/10] xen: introduce sched_move_irqs Stefano Stabellini
2014-07-10 18:13 ` [PATCH v8 07/10] xen/arm: remove workaround to inject evtchn_irq on irq enable Stefano Stabellini
2014-07-11 13:10 ` Julien Grall
2014-07-17 12:50 ` Ian Campbell
2014-07-23 15:04 ` Stefano Stabellini
2014-07-23 16:09 ` Stefano Stabellini
2014-07-23 16:11 ` Ian Campbell
2014-07-23 16:12 ` Stefano Stabellini
2014-07-23 16:16 ` Ian Campbell
2014-07-24 14:37 ` Stefano Stabellini
2014-07-10 18:13 ` [PATCH v8 08/10] xen/arm: take the rank lock before accessing ipriority Stefano Stabellini
2014-07-17 12:51 ` Ian Campbell
2014-07-23 14:57 ` Stefano Stabellini
2014-07-10 18:13 ` [PATCH v8 09/10] xen: introduce bit access macros for the IRQ line status flags Stefano Stabellini
2014-07-11 13:15 ` Julien Grall [this message]
2014-07-23 14:52 ` Stefano Stabellini
2014-07-10 18:13 ` [PATCH v8 10/10] xen/arm: make accesses to desc->status flags atomic Stefano Stabellini
2014-07-17 12:52 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53BFE386.8030307@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien.grall@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).