vvmx: return VMfail to L1 if L1 vmxon is executed in VMX operation

According to Intel SDM, section "VMXON - Enter VMX Operation", a
VMfail should be returned to L1 hypervisor if L1 vmxon is executed in
VMX operation, rather than just print a warning message.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
Haozhong Zhang authored and Jan Beulich committed 2016-12-15 11:11:45 +01:00
1 parent ac6a4500b2
commit c88da9ec88
1 file changed
+6 -3
+6 -3
View File
@@ -1380,9 +1380,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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.