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>
Showing
- arch/x86/kvm/mmu.c 197 additions, 25 deletionsarch/x86/kvm/mmu.c
- arch/x86/kvm/paging_tmpl.h 26 additions, 6 deletionsarch/x86/kvm/paging_tmpl.h
- arch/x86/kvm/x86.c 1 addition, 0 deletionsarch/x86/kvm/x86.c
- include/asm-x86/kvm_host.h 9 additions, 0 deletionsinclude/asm-x86/kvm_host.h
- include/linux/kvm_host.h 5 additions, 0 deletionsinclude/linux/kvm_host.h
- virt/kvm/kvm_main.c 24 additions, 1 deletionvirt/kvm/kvm_main.c
Loading
Please register or sign in to comment