From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v11 05/10] xen/arm: physical irq follow virtual irq Date: Wed, 13 Aug 2014 16:48:43 +0100 Message-ID: <53EB88DB.2010509@linaro.org> References: <1407518033-10694-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: <1407518033-10694-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 08/08/2014 06:13 PM, Stefano Stabellini wrote: > Migrate physical irqs to the same physical cpu that is running the vcpu > expected to receive the irqs. That is done when enabling irqs, when the > guest writes to GICD_ITARGETSR and when Xen migrates a vcpu to a > different pcpu. > > In case of virq migration, if the virq is inflight and in a GICH_LR > register already, delay migrating the corresponding physical irq until > the virq is EOIed by the guest and the MIGRATING flag has been cleared. > This way we make sure that the pcpu running the old vcpu gets > interrupted with a new irq of the same kind, clearing the GICH_LR sooner. > > Introduce a new arch specific function, arch_move_irqs, that is empty on > x86 and implements the vgic irq migration code on ARM. > arch_move_irqs is going to be called by from sched.c. > > Signed-off-by: Stefano Stabellini > Acked-by: Jan Beulich Acked-by: Julien Grall Regards, -- Julien Grall