[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/4] arm: mark vcpus as initialised when they have been
On Fri, 12 Apr 2013, Ian Campbell wrote: > I noticed this because XEN_DOMCTL_getvcpucontext won't return anything for a > VCPU which isn't initialised. > > Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> I had the same change in one of my "guest smp" patches. Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> > xen/arch/arm/domain.c | 2 ++ > xen/arch/arm/domain_build.c | 1 + > 2 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c > index e308813..04be3d6 100644 > --- a/xen/arch/arm/domain.c > +++ b/xen/arch/arm/domain.c > @@ -557,6 +557,8 @@ int arch_set_info_guest( > v->arch.ttbr1 = ctxt->ttbr1; > v->arch.ttbcr = ctxt->ttbcr; > > + v->is_initialised = 1; > + > if ( ctxt->flags & VGCF_online ) > clear_bit(_VPF_down, &v->pause_flags); > else > diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c > index a6d8e9d..17aadcf 100644 > --- a/xen/arch/arm/domain_build.c > +++ b/xen/arch/arm/domain_build.c > @@ -412,6 +412,7 @@ int construct_dom0(struct domain *d) > > discard_initial_modules(); > > + v->is_initialised = 1; > clear_bit(_VPF_down, &v->pause_flags); > > memset(regs, 0, sizeof(*regs)); > -- > 1.7.9.1 > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |