]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: large page support
authorMarcelo Tosatti <marcelo@kvack.org>
Sat, 23 Feb 2008 14:44:30 +0000 (11:44 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 08:53:25 +0000 (11:53 +0300)
commitce49ba315cdfd2d3d73cb6aae20d812308565ae5
treea76d699e60aca4f775d5f67254214654235e2e17
parentb544ec4f163a48946d7ae2ae0f0ae1129ec536f7
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>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h
arch/x86/kvm/x86.c
include/asm-x86/kvm_host.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c