From: Ian Campbell Subject: Re: [PATCH v5 03/10] xen/arm: set GICH_HCR_UIE if all the LRs are in use Date: Tue, 1 Apr 2014 12:46:28 +0100 Message-ID: <1396352788.8667.119.camel@kazak.uk.xensource.com> References: <1395686975-12649-3-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-3-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: > On return to guest, if there are no free LRs and we still have more > interrupt to inject, set GICH_HCR_UIE so that we are going to receive a > maintenance interrupt when no pending interrupts are present in the LR > registers. > The maintenance interrupt handler won't do anything anymore, but > receiving the interrupt is going to cause gic_inject to be called on > return to guest that is going to clear the old LRs and inject new > interrupts. > > Signed-off-by: Stefano Stabellini > Acked-by: Julien Grall > > --- > > Changes in v5: > - introduce lr_all_full() helper. I see you've also added the comment to the interrupt handler which was requested last time but in the next patch where it also logically belongs. Make sense. Acked-by: Ian Campbell