From: Stefano Stabellini Subject: Re: [PATCH-4.5 v3 10/12] xen/arm: don't protect GICH and lr_queue accesses with gic.lock Date: Tue, 18 Mar 2014 14:59:03 +0000 Message-ID: References: <1393439997-26936-10-git-send-email-stefano.stabellini@eu.citrix.com> <530E4BBD.4010703@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <530E4BBD.4010703@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: jtd@galois.com, xen-devel@lists.xensource.com, Ian.Campbell@citrix.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 26 Feb 2014, Julien Grall wrote: > Hi Stefano, > > On 26/02/14 18:39, Stefano Stabellini wrote: > > GICH is banked, protect accesses by disabling interrupts. > > Protect lr_queue accesses with the vgic.lock only. > > When the interrupt is an SPI, the lr_queue is shared between every VCPU. Using > only vgic.lock seems wrong to me. Even though lr_queue is a field in a struct that can be per domain for irq > 32, the lr_pending queue is always per vcpu, in fact it keeps track of the irqs waiting to go into lr registers, that are banked.