mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-29 23:12:23 +00:00
KVM: nVMX: no need to set ept/vpid caps to 0
They are inititally 0, so no need to reset them to 0. Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
This commit is contained in:
parent
0ee096d006
commit
1c13bffd94
@ -2826,8 +2826,7 @@ static void nested_vmx_setup_ctls_msrs(struct vcpu_vmx *vmx)
|
|||||||
SECONDARY_EXEC_ENABLE_PML;
|
SECONDARY_EXEC_ENABLE_PML;
|
||||||
vmx->nested.nested_vmx_ept_caps |= VMX_EPT_AD_BIT;
|
vmx->nested.nested_vmx_ept_caps |= VMX_EPT_AD_BIT;
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
vmx->nested.nested_vmx_ept_caps = 0;
|
|
||||||
|
|
||||||
if (cpu_has_vmx_vmfunc()) {
|
if (cpu_has_vmx_vmfunc()) {
|
||||||
vmx->nested.nested_vmx_secondary_ctls_high |=
|
vmx->nested.nested_vmx_secondary_ctls_high |=
|
||||||
@ -2851,8 +2850,7 @@ static void nested_vmx_setup_ctls_msrs(struct vcpu_vmx *vmx)
|
|||||||
SECONDARY_EXEC_ENABLE_VPID;
|
SECONDARY_EXEC_ENABLE_VPID;
|
||||||
vmx->nested.nested_vmx_vpid_caps = VMX_VPID_INVVPID_BIT |
|
vmx->nested.nested_vmx_vpid_caps = VMX_VPID_INVVPID_BIT |
|
||||||
VMX_VPID_EXTENT_SUPPORTED_MASK;
|
VMX_VPID_EXTENT_SUPPORTED_MASK;
|
||||||
} else
|
}
|
||||||
vmx->nested.nested_vmx_vpid_caps = 0;
|
|
||||||
|
|
||||||
if (enable_unrestricted_guest)
|
if (enable_unrestricted_guest)
|
||||||
vmx->nested.nested_vmx_secondary_ctls_high |=
|
vmx->nested.nested_vmx_secondary_ctls_high |=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user