KVM: nEPT: Advertise WB type EPTP
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 6 Aug 2013 08:39:55 +0000 (10:39 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Aug 2013 13:57:46 +0000 (15:57 +0200)
At least WB must be possible.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c

index 6d53dc33c0b0f9df6ecc9d559578e77e7c4bebb8..c041023f5d8b1c28833b8adc4741bc14be2721d0 100644 (file)
@@ -2251,8 +2251,8 @@ static __init void nested_vmx_setup_ctls_msrs(void)
        if (enable_ept) {
                /* nested EPT: emulate EPT also to L1 */
                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_INVEPT_BIT;
+               nested_vmx_ept_caps = VMX_EPT_PAGE_WALK_4_BIT |
+                        VMX_EPTP_WB_BIT | VMX_EPT_INVEPT_BIT;
                nested_vmx_ept_caps &= vmx_capability.ept;
                /*
                 * Since invept is completely emulated we support both global