KVM: VMX: conditionally disable 2M pages
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 11 Jun 2009 15:07:44 +0000 (12:07 -0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:56 +0000 (08:32 +0300)
commit54dee9933e8d93589ad63ec3d6be39f1921b0767
tree77aa79604ddfb6f842e582e7b8ce7cdbc54b2060
parent68f89400bc92421d6da22e1ec8e3ec599c3c8244
KVM: VMX: conditionally disable 2M pages

Disable usage of 2M pages if VMX_EPT_2MB_PAGE_BIT (bit 16) is clear
in MSR_IA32_VMX_EPT_VPID_CAP and EPT is enabled.

[avi: s/largepages_disabled/largepages_enabled/ to avoid negative logic]

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c