diff mbox

EPT support breakage on: KVM: VMX: Zero ept module parameter if ept is not present

Message ID 49D23010.9010408@linux.vnet.ibm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andrew Theurer March 31, 2009, 3 p.m. UTC
I cannot get EPT support to work on commit:
KVM: VMX: Zero ept module parameter if ept is not present

I see tons of pf_guest from kvm_stat, where as the previous commit has none.
I am using "ept=1" module option for kvm-intel.

This is on Nehalem processors.


commit diff:


To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox


diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 8b1b9b8..96a19f8 100644 (file)
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -265,7 +265,7 @@  static inline int cpu_has_vmx_ept(void)
 static inline int vm_need_ept(void)
-       return (cpu_has_vmx_ept() && enable_ept);
+       return enable_ept;
 static inline int vm_need_virtualize_apic_accesses(struct kvm *kvm)
@@ -1205,6 +1205,9 @@  static __init int setup_vmcs_config(struct 
vmcs_config *vmcs_conf)
        if (!cpu_has_vmx_vpid())
                enable_vpid = 0;
+       if (!cpu_has_vmx_ept())
+               enable_ept = 0;
        min = 0;
 #ifdef CONFIG_X86_64