From: Marcelo Tosatti Date: Tue, 7 Oct 2008 20:01:27 +0000 (-0300) Subject: KVM: VMX: enable invlpg exiting if EPT is disabled X-Git-Tag: v2.6.28-rc1~269^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=83dbc83a0d7c88c919d769177bd1924a46c9c034;p=linux-2.6-omap-h63xx.git KVM: VMX: enable invlpg exiting if EPT is disabled Manually disabling EPT via module option fails to re-enable INVLPG exiting. Reported-by: Gleb Natapov Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 4556cc3715b..2643b430d83 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -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()) {