Skip to content

Commit

Permalink
KVM: VMX: Fix bypass_guest_pf enabling when disable EPT in module par…
Browse files Browse the repository at this point in the history
…ameter

Signed-off-by: Sheng Yang <sheng.yang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
Sheng Yang authored and Avi Kivity committed Jul 27, 2008
1 parent c93cd3a commit 5ec5726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_EIP);

if (cpu_has_vmx_ept())
if (vm_need_ept())
bypass_guest_pf = 0;

if (bypass_guest_pf)
Expand Down

0 comments on commit 5ec5726

Please sign in to comment.