From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH-4.5 v2 10/10] xen/arm: print more info in gic_dump_info, keep gic_lr sync'ed Date: Sun, 16 Feb 2014 20:31:01 +0000 Message-ID: <53012005.4020406@linaro.org> References: <1392393098-7351-10-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1392393098-7351-10-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 14/02/14 15:51, Stefano Stabellini wrote: > @@ -986,6 +991,8 @@ void gic_dump_info(struct vcpu *v) > struct pending_irq *p; > > printk("GICH_LRs (vcpu %d) mask=%"PRIx64"\n", v->vcpu_id, v->arch.lr_mask); > + > + spin_lock(&v->arch.vgic.lock); interrupts need to be disabled here. If not, it's possible to receive an interrupt while the lock is taken. Xen might deadlock if the interrupt is inject to this vcpu "v" (see vgic_vcpu_inject_irq). Regards, -- Julien Grall