]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: VMX: enable invlpg exiting if EPT is disabled
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 7 Oct 2008 20:01:27 +0000 (17:01 -0300)
committerAvi Kivity <avi@redhat.com>
Wed, 15 Oct 2008 12:25:31 +0000 (14:25 +0200)
Manually disabling EPT via module option fails to re-enable INVLPG
exiting.

Reported-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/vmx.c

index 4556cc3715bbcfc751d4ae1995dd484b53aaf8db..2643b430d83a0cb2f6519dbdaccd8e9a4cd480d7 100644 (file)
@@ -2118,7 +2118,8 @@ static int vmx_vcpu_setup(struct vcpu_vmx *vmx)
        }
        if (!vm_need_ept())
                exec_control |= CPU_BASED_CR3_STORE_EXITING |
-                               CPU_BASED_CR3_LOAD_EXITING;
+                               CPU_BASED_CR3_LOAD_EXITING  |
+                               CPU_BASED_INVLPG_EXITING;
        vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, exec_control);
 
        if (cpu_has_secondary_exec_ctrls()) {