From: Ian Campbell Subject: Re: [PATCH v6 2/5] xen/arm: inflight irqs during migration Date: Fri, 27 Jun 2014 16:40:23 +0100 Message-ID: <1403883623.3169.82.camel@kazak.uk.xensource.com> References: <1403541463-23734-2-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: <1403541463-23734-2-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@citrix.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, 2014-06-23 at 17:37 +0100, Stefano Stabellini wrote: > + list_del_init(&p->lr_queue); > + list_del_init(&p->inflight); > + spin_unlock_irqrestore(&old->arch.vgic.lock, flags); > + vgic_vcpu_inject_irq(new, irq); > + return; > + /* if the IRQ is in a GICH_LR register, set GIC_IRQ_GUEST_MIGRATING > + * and wait for the EOI */ Is it safe that MIGRATING serves dual purpose -- it indicates an irq which is actively being moved but it also indicates an irq where we are awaiting an EOI before migrating it. (Or have I misunderstood what is going on here?) I suspect what I'm worried about is something completing the migration without realising it needs to wait for an EOI? Ian.