diff options
author | Marcelo Tosatti <marcelo@kvack.org> | 2008-02-23 09:44:30 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 04:53:25 -0400 |
commit | 05da45583de9b383dc81dd695fe248431d6c9f2b (patch) | |
tree | a76d699e60aca4f775d5f67254214654235e2e17 /arch/x86/kvm/x86.c | |
parent | 2e53d63acba75795aa226febd140f67c58c6a353 (diff) |
KVM: MMU: large page support
Create large pages mappings if the guest PTE's are marked as such and
the underlying memory is hugetlbfs backed. If the largepage contains
write-protected pages, a large pte is not used.
Gives a consistent 2% improvement for data copies on ram mounted
filesystem, without NPT/EPT.
Anthony measures a 4% improvement on 4-way kernbench, with NPT.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index e8e64927bddc..0458bd516185 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -88,6 +88,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = { | |||
88 | { "mmu_recycled", VM_STAT(mmu_recycled) }, | 88 | { "mmu_recycled", VM_STAT(mmu_recycled) }, |
89 | { "mmu_cache_miss", VM_STAT(mmu_cache_miss) }, | 89 | { "mmu_cache_miss", VM_STAT(mmu_cache_miss) }, |
90 | { "remote_tlb_flush", VM_STAT(remote_tlb_flush) }, | 90 | { "remote_tlb_flush", VM_STAT(remote_tlb_flush) }, |
91 | { "largepages", VM_STAT(lpages) }, | ||
91 | { NULL } | 92 | { NULL } |
92 | }; | 93 | }; |
93 | 94 | ||