From: kaf24@firebug.cl.cam.ac.uk Date: Tue, 25 Apr 2006 07:56:01 +0000 (+0100) Subject: This is a small fix for SMP PAE guest on x86-64. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16117^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2c97bbed1ebb4d8e95df4fbe94c9be3d1f15b98a;p=xen.git This is a small fix for SMP PAE guest on x86-64. Since part of the VMX guest initialization is running in the context of dom0, so when we want to make sure the operation of shadow ops is always done by vcpu0 of the guest VMX domain, we should make sure the current vcpu0 is running in guest domain and not in the dom0. Signed-off-by: Xiaohui Xin xiaohui.xin@intel.com Signed-off-by: Xin Li --- diff --git a/xen/arch/x86/shadow_public.c b/xen/arch/x86/shadow_public.c index 6216940244..23c489ac47 100644 --- a/xen/arch/x86/shadow_public.c +++ b/xen/arch/x86/shadow_public.c @@ -108,7 +108,7 @@ int shadow_set_guest_paging_levels(struct domain *d, int levels) * Need to wait for VCPU0 to complete the on-going shadow ops. */ - if ( v->vcpu_id ) + if ( v->domain == d && v->vcpu_id ) return 1; shadow_lock(d);