From: Ian Campbell Subject: Re: [PATCH v5 08/10] xen/arm: second irq injection while the first irq is still inflight Date: Tue, 1 Apr 2014 13:14:57 +0100 Message-ID: <1396354497.8667.138.camel@kazak.uk.xensource.com> References: <1395686975-12649-8-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: <1395686975-12649-8-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-03-24 at 18:49 +0000, Stefano Stabellini wrote: > Set GICH_LR_PENDING in the corresponding GICH_LR to inject a second irq > while the first one is still active. > If the first irq is already pending (not active), just clear > GIC_IRQ_GUEST_PENDING because the irq has already been injected and is > already visible by the guest. I'm confused by this. If the interrupt is pending but not active then the guest has yet to read GICC_IAR, so while it might be "visible" to the guest it has not been observed by the guest. The comment says: * GIC_IRQ_GUEST_PENDING: the irq is asserted I'm not sure how a second irq arriving would correspond to deasserting the IRQ. Also if you are clearing GIC_IRQ_GUEST_PENDING without clearing the pending bit in the LR that's rather confusing -- I thought the state was supposed to correspond to (the most recently observed) LR state. (having been told that there should be a v6 I'm going to stop here while I figure out where it went...) Ian.