From: Roger Pau Monné Date: Mon, 18 Jan 2016 13:52:31 +0000 (+0100) Subject: x86/hvm: don't set the BSP as initialised in hvm_vcpu_initialise X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1951 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9761bfb9b7582ef50202f3b4e04d658713422c0d;p=xen.git x86/hvm: don't set the BSP as initialised in hvm_vcpu_initialise The BSP will be marked as initialised after hvm_load_cpu_ctxt has loaded the initial state, which is called from the toolstack during domain creation. Previous to my HVMlite series HVM guests were started without setting any explicit CPU state (in fact we placed that horrible jmp at 0x0, because the IP was by default set to 0x0). This is no longer true, and now HVM guests require that a proper CPU context is loaded before starting. This change helps enforce this policy. Signed-off-by: Roger Pau Monné --- diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index a99edc2392..f646c1ee7b 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -2487,10 +2487,6 @@ int hvm_vcpu_initialise(struct vcpu *v) /* Init guest TSC to start from zero. */ hvm_set_guest_tsc(v, 0); - - /* Can start up without SIPI-SIPI or setvcpucontext domctl. */ - v->is_initialised = 1; - clear_bit(_VPF_down, &v->pause_flags); } return 0;