diff options
author | Sheng Yang <sheng.yang@intel.com> | 2008-07-15 21:21:22 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-07-27 04:34:10 -0400 |
commit | 5ec5726a16245138f5d5305b00a752acb5730076 (patch) | |
tree | 6b515b5b9940536b4cb3197b2dd4b498271e96fb /arch/x86/kvm | |
parent | c93cd3a58845012df2d658fecd0ac99f7008d753 (diff) |
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/kvm')
-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) | |||
3305 | vmx_disable_intercept_for_msr(vmx_msr_bitmap, MSR_IA32_SYSENTER_ESP); | 3305 | vmx_disable_intercept_for_msr(vmx_msr_bitmap, MSR_IA32_SYSENTER_ESP); |
3306 | vmx_disable_intercept_for_msr(vmx_msr_bitmap, MSR_IA32_SYSENTER_EIP); | 3306 | vmx_disable_intercept_for_msr(vmx_msr_bitmap, MSR_IA32_SYSENTER_EIP); |
3307 | 3307 | ||
3308 | if (cpu_has_vmx_ept()) | 3308 | if (vm_need_ept()) |
3309 | bypass_guest_pf = 0; | 3309 | bypass_guest_pf = 0; |
3310 | 3310 | ||
3311 | if (bypass_guest_pf) | 3311 | if (bypass_guest_pf) |