diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-06-11 11:07:44 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:32:56 -0400 |
commit | 54dee9933e8d93589ad63ec3d6be39f1921b0767 (patch) | |
tree | 77aa79604ddfb6f842e582e7b8ce7cdbc54b2060 /include/linux/kvm_host.h | |
parent | 68f89400bc92421d6da22e1ec8e3ec599c3c8244 (diff) |
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>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index c6e4d02067fe..6988858dc56e 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -224,6 +224,7 @@ int kvm_arch_set_memory_region(struct kvm *kvm, | |||
224 | struct kvm_userspace_memory_region *mem, | 224 | struct kvm_userspace_memory_region *mem, |
225 | struct kvm_memory_slot old, | 225 | struct kvm_memory_slot old, |
226 | int user_alloc); | 226 | int user_alloc); |
227 | void kvm_disable_largepages(void); | ||
227 | void kvm_arch_flush_shadow(struct kvm *kvm); | 228 | void kvm_arch_flush_shadow(struct kvm *kvm); |
228 | gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn); | 229 | gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn); |
229 | struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); | 230 | struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); |