From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v8 04/13] xen/arm: support HW interrupts, do not request maintenance_interrupts Date: Thu, 22 May 2014 16:31:47 +0100 Message-ID: <537E1863.9020003@linaro.org> References: <1400761950-25035-4-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: <1400761950-25035-4-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 22/05/14 13:32, Stefano Stabellini wrote: > +void gic_clear_lrs(struct vcpu *v) > +{ > + int i = 0; > + unsigned long flags; > + > + if ( is_idle_vcpu(v) ) > + return; It think it would be nice to explain why it's necessary to add these 2 new line (i.e the LRs are not restored for idle VCPU...). > + spin_lock_irqsave(&v->arch.vgic.lock, flags); > + > + while ((i = find_next_bit((const unsigned long *) &this_cpu(lr_mask), > + nr_lrs, i)) < nr_lrs) { Small coding style error, the { should be on a newline. With this 2 changes: Acked-by: Julien Grall Regards, -- Julien Grall