Commit ca72d970 authored by Jan Kiszka's avatar Jan Kiszka Committed by Paolo Bonzini

KVM: nEPT: Advertise WB type EPTP

At least WB must be possible.
Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: default avatarGleb Natapov <gleb@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 44811c02
...@@ -2251,8 +2251,8 @@ static __init void nested_vmx_setup_ctls_msrs(void) ...@@ -2251,8 +2251,8 @@ static __init void nested_vmx_setup_ctls_msrs(void)
if (enable_ept) { if (enable_ept) {
/* nested EPT: emulate EPT also to L1 */ /* nested EPT: emulate EPT also to L1 */
nested_vmx_secondary_ctls_high |= SECONDARY_EXEC_ENABLE_EPT; nested_vmx_secondary_ctls_high |= SECONDARY_EXEC_ENABLE_EPT;
nested_vmx_ept_caps = VMX_EPT_PAGE_WALK_4_BIT; nested_vmx_ept_caps = VMX_EPT_PAGE_WALK_4_BIT |
nested_vmx_ept_caps |= VMX_EPT_INVEPT_BIT; VMX_EPTP_WB_BIT | VMX_EPT_INVEPT_BIT;
nested_vmx_ept_caps &= vmx_capability.ept; nested_vmx_ept_caps &= vmx_capability.ept;
/* /*
* Since invept is completely emulated we support both global * Since invept is completely emulated we support both global
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment