From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v9 05/10] xen/arm: physical irq follow virtual irq Date: Mon, 28 Jul 2014 16:47:35 +0100 Message-ID: <53D67097.1020707@linaro.org> References: <1406223192-26267-5-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1406223192-26267-5-git-send-email-stefano.stabellini@eu.citrix.com> 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 , xen-devel@lists.xensource.com Cc: julien.grall@citrix.com, Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Hi stefano, On 07/24/2014 06:33 PM, Stefano Stabellini wrote: > +void arch_move_irqs(struct vcpu *v) > +{ > + const cpumask_t *cpu_mask = cpumask_of(v->processor); > + struct domain *d = v->domain; > + struct pending_irq *p; > + struct vcpu *v_target; > + int i; > + > + for ( i = 32; i < d->arch.vgic.nr_lines; i++ ) Sorry, I didn't spot this error until now. For the VGIC nr_lines contains the number of *SPIs* rather on the GIC structure it's the number of IRQs... the name is very confusing. I have a patch to rename nr_lines into nr_spis, along with adding a macro vgic_number_lines. I plan to send it which my device passthrough patch series. As the patch may help you. It may be better if you carry the patch. Regards, -- Julien Grall