KVM: nVMX: Report 2MB EPT pages as supported
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 23 Oct 2013 13:40:31 +0000 (14:40 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Oct 2013 12:14:12 +0000 (13:14 +0100)
As long as the hardware provides us 2MB EPT pages, we can also expose
them to the guest because our shadow EPT code already supports this
feature.

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

index 06fd7629068ac6ddd3adde76dbec5aff7d39bf29..feef3a1e45d38662b61210717cebf82fe05b4491 100644 (file)
@@ -2261,7 +2261,8 @@ static __init void nested_vmx_setup_ctls_msrs(void)
                /* 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 |
-                        VMX_EPTP_WB_BIT | VMX_EPT_INVEPT_BIT;
+                        VMX_EPTP_WB_BIT | VMX_EPT_2MB_PAGE_BIT |
+                        VMX_EPT_INVEPT_BIT;
                nested_vmx_ept_caps &= vmx_capability.ept;
                /*
                 * Since invept is completely emulated we support both global