From: Sheng Yang Date: Wed, 16 Jul 2008 01:21:22 +0000 (+0800) Subject: KVM: VMX: Fix bypass_guest_pf enabling when disable EPT in module parameter X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5ec5726a16245138f5d5305b00a752acb5730076;p=linux-beck.git KVM: VMX: Fix bypass_guest_pf enabling when disable EPT in module parameter Signed-off-by: Sheng Yang Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index b918fc83435c..f71151d999e4 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -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)