diff options
author | Sheng Yang <sheng.yang@intel.com> | 2008-07-16 03:21:22 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-07-27 10:34:10 +0200 |
commit | 5ec5726a16245138f5d5305b00a752acb5730076 (patch) | |
tree | 6b515b5b9940536b4cb3197b2dd4b498271e96fb /arch/x86 | |
parent | KVM: task switch: translate guest segment limit to virt-extension byte granul... (diff) | |
download | linux-5ec5726a16245138f5d5305b00a752acb5730076.tar.xz linux-5ec5726a16245138f5d5305b00a752acb5730076.zip |
KVM: VMX: Fix bypass_guest_pf enabling when disable EPT in module parameter
Signed-off-by: Sheng Yang <sheng.yang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |