]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
x86/hvm: don't set the BSP as initialised in hvm_vcpu_initialise
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 18 Jan 2016 13:52:31 +0000 (14:52 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Jan 2016 13:52:31 +0000 (14:52 +0100)
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é <roger.pau@citrix.com>
xen/arch/x86/hvm/hvm.c

index a99edc23926c7ab9a0bba93d8b832939878f46ab..f646c1ee7b37e6232add89675a1300cfc05542d8 100644 (file)
@@ -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;