From: Peter Dinda Date: Tue, 15 Nov 2011 00:42:13 +0000 (-0600) Subject: Assure that cores start out in CORE_STOPPED state X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=539b0d4741f477f0d94205fea9ae9c15b88367a1;p=palacios.git Assure that cores start out in CORE_STOPPED state --- diff --git a/palacios/src/palacios/vmm.c b/palacios/src/palacios/vmm.c index 5420759..855b11c 100644 --- a/palacios/src/palacios/vmm.c +++ b/palacios/src/palacios/vmm.c @@ -317,6 +317,7 @@ int v3_start_vm(struct v3_vm_info * vm, unsigned int cpu_mask) { PrintDebug("run: core=%u, func=0x%p, arg=0x%p, name=%s\n", core_idx, start_core, core, core->exec_name); + core->core_run_state = CORE_STOPPED; // core zero will turn itself on core->pcpu_id = core_idx; core->core_thread = V3_CREATE_THREAD_ON_CPU(core_idx, start_core, core, core->exec_name);