From: Ian Campbell Subject: Re: [PATCH v9 3/7] xen/arm: Add support for GIC v3 Date: Mon, 8 Sep 2014 10:42:32 +0100 Message-ID: <1410169352.10156.125.camel@kazak.uk.xensource.com> References: <1409836527-16526-1-git-send-email-vijay.kilari@gmail.com> <1409836527-16526-4-git-send-email-vijay.kilari@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: vijay.kilari@gmail.com, Prasun.Kapoor@caviumnetworks.com, Vijaya Kumar K , julien.grall@linaro.org, tim@xen.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com, jbeulich@suse.com, manish.jaggi@caviumnetworks.com List-Id: xen-devel@lists.xenproject.org On Fri, 2014-09-05 at 01:27 +0100, Stefano Stabellini wrote: > On Thu, 4 Sep 2014, vijay.kilari@gmail.com wrote: > > From: Vijaya Kumar K > > > > Add support for GIC v3 specification System register access(SRE) > > is enabled to access cpu and virtual interface registers based > > on kernel GICv3 driver. > > > > This patch adds only basic v3 support. > > Does not support Interrupt Translation support (ITS) > > > > Signed-off-by: Vijaya Kumar K > > [...] > > > +static void gicv3_irq_set_affinity(struct irq_desc *desc, const cpumask_t *mask) > > +{ > > + unsigned int cpu; > > + uint64_t affinity; > > + > > + ASSERT(!cpumask_empty(mask)); > > + > > + spin_lock(&gicv3.lock); > > + > > + cpu = gicv3_get_cpu_from_mask(mask); > > + affinity = gicv3_mpidr_to_affinity(cpu); > > + /* Make sure we don't broadcast the interrupt */ > > + affinity &= ~GICD_IROUTER_SPI_MODE_ANY; > > I would like an ASSERT(affinity != 0); Should the v2 code do the same then? There is no way that this value can be controlled by the guest then? > > Other than that: > > Acked-by: Stefano Stabellini >