allow 'Save guest MSR_PERF_GLOBAL_CTRL on VMEXIT' VMX control

at least fake it
This commit is contained in:
Stanislav Shwartsman 2022-07-30 15:43:09 +03:00
parent fb09790846
commit 2093c2b1a3

View File

@ -814,6 +814,7 @@ void BX_CPU_C::init_vmexit_ctrls(void)
// [22] Save VMX preemption timer counter on VMEXIT
// [28] Save host CET state on VMEXIT
// [29] Save host MSR_IA32_PKRS on VMEXIT
// [30] Save guest MSR_PERF_GLOBAL_CTRL on VMEXIT
cap->vmx_vmexit_ctrl_supported_bits =
VMX_VMEXIT_CTRL1_INTA_ON_VMEXIT | VMX_VMEXIT_CTRL1_SAVE_DBG_CTRLS;
@ -844,6 +845,8 @@ void BX_CPU_C::init_vmexit_ctrls(void)
if (BX_CPUID_SUPPORT_ISA_EXTENSION(BX_ISA_PKS))
cap->vmx_vmexit_ctrl_supported_bits |= VMX_VMEXIT_CTRL1_LOAD_HOST_PKRS;
#endif
if (BX_SUPPORT_VMX_EXTENSION(BX_VMX_PERF_GLOBAL_CTRL))
cap->vmx_vmexit_ctrl_supported_bits |= VMX_VMEXIT_CTRL1_SAVE_PERF_GLOBAL_CTRL;
}
void BX_CPU_C::init_vmentry_ctrls(void)