From: Ian Campbell Subject: Re: [PATCH v4 04/12] xen/arm: support for guest SGI Date: Mon, 29 Apr 2013 10:16:16 +0100 Message-ID: <1367226976.3142.234.camel@zakaz.uk.xensource.com> References: <1366990117-8689-4-git-send-email-stefano.stabellini@eu.citrix.com> <1366994079.3142.170.camel@zakaz.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 , "xen-devel@lists.xensource.com" , "Tim (Xen.org)" List-Id: xen-devel@lists.xenproject.org On Sun, 2013-04-28 at 15:26 +0100, Stefano Stabellini wrote: > On Fri, 26 Apr 2013, Ian Campbell wrote: > > > + > > > + > > > + for_each_set_bit( vcpuid, &vcpu_mask, d->max_vcpus ) > > > + { > > > + if ( vcpuid >= d->max_vcpus || (vt = d->vcpu[vcpuid]) == NULL ) > > > > Is d->vcpu[vcpuid] == NULL sufficient here? A vcpu which exists but has > > not been PSCI'd up will pass this -- what do we do to them? Hopefully we > > don't wake them up? Do we not want to check something like _VPF_down > > too? > > I think you are right, we should test for _VPF_down too Are there any interesting races here? Seems like there should be, unless we hold the domain lock or something? Ian.