[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] arm: mark vcpus as initialised when they have been
commit 5a07cc93810b74d0c5e5c52df795da2ff044dc83 Author: Ian Campbell <ian.campbell@xxxxxxxxxx> AuthorDate: Fri Apr 12 13:13:23 2013 +0000 Commit: Ian Campbell <ian.campbell@xxxxxxxxxx> CommitDate: Wed Apr 24 16:56:14 2013 +0100 arm: mark vcpus as initialised when they have been 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> 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 eae42af..a28275e 100644 --- a/xen/arch/arm/domain.c +++ b/xen/arch/arm/domain.c @@ -556,6 +556,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)); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |