X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmx.c;h=49be909bb10ca28c05c54a991779dad5608b87b5;hp=73b5af963324da5d9ebc61ea192535970a9a09a7;hb=e3f45cda75462948e8d2ad89a6167fbecc8d13f5;hpb=71339a5a1f4efa93438ab9ab78e1317034b84da6 diff --git a/palacios/src/palacios/vmx.c b/palacios/src/palacios/vmx.c index 73b5af9..49be909 100644 --- a/palacios/src/palacios/vmx.c +++ b/palacios/src/palacios/vmx.c @@ -915,6 +915,12 @@ int v3_start_vmx_guest(struct guest_info * info) { PrintDebug("VMX core %u: Waiting for core initialization\n", info->vcpu_id); while (info->core_run_state == CORE_STOPPED) { + + if (info->vm_info->run_state == VM_STOPPED) { + // The VM was stopped before this core was initialized. + return 0; + } + v3_yield(info); //PrintDebug("VMX core %u: still waiting for INIT\n",info->vcpu_id); }