From: Ian Campbell Subject: Re: [PATCH v5 08/10] xen/arm: second irq injection while the first irq is still inflight Date: Mon, 7 Apr 2014 09:48:35 +0100 Message-ID: <1396860515.22845.12.camel@kazak.uk.xensource.com> References: <1395686975-12649-8-git-send-email-stefano.stabellini@eu.citrix.com> <1396354497.8667.138.camel@kazak.uk.xensource.com> <1396453410.8667.357.camel@kazak.uk.xensource.com> 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: julien.grall@citrix.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Sun, 2014-04-06 at 17:58 +0100, Stefano Stabellini wrote: > I realize now that the current naming scheme could be confusing. When I > talk about pending, active and GICH_LR_PENDING in this commit message, I > am talking about the irq status in the LR register. When I talk about > GIC_IRQ_GUEST_PENDING, I am referring to the GIC internal state tracker. > > Because we don't actually know when the guest irq goes from pending to > active, we are clearing GIC_IRQ_GUEST_PENDING as soon as we add an irq > to an LR, as stated in the comment in xen/include/asm-arm/domain.h. > However as a result GIC_IRQ_GUEST_PENDING is more like > "GIC_IRQ_GUEST_QUEUED" rather than "GIC_IRQ_GUEST_PENDING", like you > wrote. > > I'll add a patch to do the renaming as suggested. Thanks, in that case I guess I won't need the cold towel on my forehead when I think about this stuff ;-) Ian.