From: Ian Campbell Subject: Re: [PATCH v3] xen/gic: EOI irqs on the right pcpu Date: Wed, 8 May 2013 11:36:21 +0100 Message-ID: <1368009381.26321.221.camel@zakaz.uk.xensource.com> References: <1367933588-16154-1-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: <1367933588-16154-1-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 Cc: Julien Grall , "xen-devel@lists.xensource.com" , "Keir (Xen.org)" List-Id: xen-devel@lists.xenproject.org On Tue, 2013-05-07 at 14:33 +0100, Stefano Stabellini wrote: > We need to write the irq number to GICC_DIR on the physical cpu that > previously received the interrupt, but currently we are doing it on the > pcpu that received the maintenance interrupt. As a consequence if a > vcpu is migrated to a different pcpu, the irq is going to be EOI'ed on > the wrong pcpu. > > This covers the case where dom0 vcpu0 is running on pcpu1 for example > (you can test this scenario by using xl vcpu-pin). > > > Changes in v3: > - use an int rather than a cpumask to store the EOI cpu; > - adds the eoi cpu to arch_irq_desc. > > Changes in v2: > - pass virq by value to gic_irq_eoi; > - EOI the interrupt without any spin locks held and with interrupt > enabled. > > Signed-off-by: Stefano Stabellini Acked and applied. > CC: keir@xen.org This patch doesn't touch common/x86 code any more so I didn't wait for Keir's ack. Ian.