X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmx.c;h=544b8488e8ef276aaddadb84462b1a1b1d8aefe9;hp=3a230320b8d7ab10b3c9443f4d87245d891008c4;hb=c0ecfba627c1d6c3f46d59bd4e5e6f883a494dc4;hpb=2282a040e60b24d3fb7c48bb197c5bff6636df67 diff --git a/palacios/src/palacios/vmx.c b/palacios/src/palacios/vmx.c index 3a23032..544b848 100644 --- a/palacios/src/palacios/vmx.c +++ b/palacios/src/palacios/vmx.c @@ -546,7 +546,10 @@ static int init_vmcs_bios(struct guest_info * core, struct vmx_data * vmx_state) vmx_ret |= check_vmcs_write(VMCS_LINK_PTR_HIGH, (addr_t)0xffffffffUL); #endif - + if (vmx_ret != VMX_SUCCESS) { + PrintError(core->vm_info, core, "Error configuring VMX\n"); + return -1; + } @@ -621,6 +624,11 @@ static void __init_vmx_vmcs(void * arg) { PrintDebug(core->vm_info, core, "Serializing VMCS: %p\n", (void *)vmx_state->vmcs_ptr_phys); vmx_ret = vmcs_clear(vmx_state->vmcs_ptr_phys); + if (vmx_ret != VMX_SUCCESS) { + PrintError(core->vm_info,core,"VMCS Clear failed\n"); + return; + } + core->core_run_state = CORE_STOPPED; return; }