Message ID | 20161214101145.11171-3-haozhong.zhang@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/xen/arch/x86/hvm/vmx/vvmx.c b/xen/arch/x86/hvm/vmx/vvmx.c index eae8150..e765b60 100644 --- a/xen/arch/x86/hvm/vmx/vvmx.c +++ b/xen/arch/x86/hvm/vmx/vvmx.c @@ -1390,9 +1390,12 @@ int nvmx_handle_vmxon(struct cpu_user_regs *regs) return rc; if ( nvmx_vcpu_in_vmx(v) ) - gdprintk(XENLOG_WARNING, - "vmxon again: orig %"PRIpaddr" new %lx\n", - nvmx->vmxon_region_pa, gpa); + { + vmreturn(regs, + nvcpu->nv_vvmcxaddr != VMCX_EADDR ? + VMFAIL_VALID : VMFAIL_INVALID); + return X86EMUL_OKAY; + } nvmx->vmxon_region_pa = gpa;