Commit 5ec5726a authored by Sheng Yang's avatar Sheng Yang Committed by Avi Kivity

KVM: VMX: Fix bypass_guest_pf enabling when disable EPT in module parameter

Signed-off-by: default avatarSheng Yang <sheng.yang@intel.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent c93cd3a5
...@@ -3305,7 +3305,7 @@ static int __init vmx_init(void) ...@@ -3305,7 +3305,7 @@ static int __init vmx_init(void)
vmx_disable_intercept_for_msr(vmx_msr_bitmap, MSR_IA32_SYSENTER_ESP); vmx_disable_intercept_for_msr(vmx_msr_bitmap, MSR_IA32_SYSENTER_ESP);
vmx_disable_intercept_for_msr(vmx_msr_bitmap, MSR_IA32_SYSENTER_EIP); vmx_disable_intercept_for_msr(vmx_msr_bitmap, MSR_IA32_SYSENTER_EIP);
if (cpu_has_vmx_ept()) if (vm_need_ept())
bypass_guest_pf = 0; bypass_guest_pf = 0;
if (bypass_guest_pf) if (bypass_guest_pf)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment