Skip to contentSkip to conversation

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

PATCH Applied Yang, Sheng 2 participants 2 messages Jul 16, 2008 – Jul 21, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 KVM: VMX: Fix bypass_guest_pf enabling when disable EPT in module parameter

From c4a2cad8b91ac4c0b04a5ccd1f0bfab1d7e6ef37 Mon Sep 17 00:00:00 2001
From: Sheng Yang <[email protected]>
Date: Wed, 16 Jul 2008 09:21:22 +0800
Subject: [PATCH] KVM: VMX: Fix bypass_guest_pf enabling when disable EPT in module parameter

---
 arch/x86/kvm/vmx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/vmx.c +0 -0
index 5f807e3..d47c3f8 100644
@@ -3294,7 +3294,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)
--
1.5.6

From c4a2cad8b91ac4c0b04a5ccd1f0bfab1d7e6ef37 Mon Sep 17 00:00:00 2001
From: Sheng Yang <[email protected]>
Date: Wed, 16 Jul 2008 09:21:22 +0800
Subject: [PATCH] KVM: VMX: Fix bypass_guest_pf enabling when disable EPT in module parameter

---
 arch/x86/kvm/vmx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/vmx.c +1 -1
index 5f807e3..d47c3f8 100644
@@ -3294,7 +3294,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)
Signature · 1 line
1.5.6
Applied
#1 lore raw
Quoted 7 lines · Sheng

From c4a2cad8b91ac4c0b04a5ccd1f0bfab1d7e6ef37 Mon Sep 17 00:00:00 2001
From: Sheng Yang <[email protected]>
Date: Wed, 16 Jul 2008 09:21:22 +0800
Subject: [PATCH] KVM: VMX: Fix bypass_guest_pf enabling when disable EPT in module parameter

Thanks, applied both.

Signature · 1 line
error compiling committee.c: too many arguments to function