From: Ian Campbell Subject: Re: [PATCH 6/9] arm: vgic: fix race in vgic_vcpu_inject_irq Date: Thu, 11 Apr 2013 09:59:24 +0100 Message-ID: <1365670764.8036.19.camel@zakaz.uk.xensource.com> References: <1362559920.8941.98.camel@hastur.hellion.org.uk> <1362560076-25897-6-git-send-email-ijc@hellion.org.uk> 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: "Tim (Xen.org)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2013-03-19 at 16:10 +0000, Stefano Stabellini wrote: > On Wed, 6 Mar 2013, Ian Campbell wrote: > > From: Ian Campbell > > > > The initial check for a still pending interrupt (!list_empty(&n->inflight)) > > needs to be covered by the vgic lock to avoid trying to insert the IRQ into the > > inflight list simultaneously on 2 pCPUS. Expand the area covered by the lock > > appropriately. > > > > Also consolidate the unlocks on the exit path into one location. > > > > Signed-off-by: Ian Campbell > > Acked-by: Stefano Stabellini This depends on the trap WFI patch, because it turns out I made exactly the cleanup I suggested in my review of that patch ;-) Ian.