mirror of https://gitee.com/openkylin/linux.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 <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
1b10bf31a5
commit
83dbc83a0d
|
@ -2118,7 +2118,8 @@ static int vmx_vcpu_setup(struct vcpu_vmx *vmx)
|
||||||
}
|
}
|
||||||
if (!vm_need_ept())
|
if (!vm_need_ept())
|
||||||
exec_control |= CPU_BASED_CR3_STORE_EXITING |
|
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);
|
vmcs_write32(CPU_BASED_VM_EXEC_CONTROL, exec_control);
|
||||||
|
|
||||||
if (cpu_has_secondary_exec_ctrls()) {
|
if (cpu_has_secondary_exec_ctrls()) {
|
||||||
|
|
Loading…
Reference in New Issue