From: Ian Campbell Subject: Re: [PATCH v6 05/15] xen/arm: support for guest SGI Date: Fri, 3 May 2013 12:26:25 +0100 Message-ID: <1367580385.28742.63.camel@zakaz.uk.xensource.com> References: <1367578301-32470-5-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: <1367578301-32470-5-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 , "xen-devel@lists.xensource.com" , "Tim (Xen.org)" List-Id: xen-devel@lists.xenproject.org On Fri, 2013-05-03 at 11:51 +0100, Stefano Stabellini wrote: > + switch ( filter ) > + { > + case GICD_SGI_TARGET_LIST: > + vcpu_mask = (sgir & GICD_SGI_TARGET_MASK) >> GICD_SGI_TARGET_SHIFT; > + break; > + case GICD_SGI_TARGET_OTHERS: > + for ( i = 0; i < d->max_vcpus; i++ ) > + { > + if ( i != current->vcpu_id && is_vcpu_running(d, i) ) This is_vcpu_running is redundant against the one when you actually iterate the list sending the irqs (which you rely on in the TARGET_LIST case as well) Nevertheless: Acked-by: Ian Campbell