[PATCH][RFC] SVM: Add Support for Nested Paging in AMD Fam16 CPUs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Avi Kivity <avi@...>, <kvm-devel@...>, <linux-kernel@...>
Date: Friday, January 25, 2008 - 4:53 pm

Hi,                                                                                                                              

here is the first release of patches for KVM to support the Nested Paging (NPT)
feature of AMD QuadCore CPUs for comments and public testing. This feature
improves the guest performance significantly. I measured an improvement of
around 17% using kernbench in my first tests.

This patch series is basically tested with Linux guests (32 bit legacy
paging, 32 bit PAE paging and 64 bit Long Mode). Also tested with Windows Vista
32 bit and 64 bit. All these guests ran successfully with these patches. The
patch series only enables NPT for 64 bit Linux hosts at the moment.

Please give these patches a good and deep testing. I hope we have this patchset
ready for merging soon.

Joerg

Here is the diffstat:

 arch/x86/kvm/mmu.c         |   81 +++++++++++++++++++++++++++++++++++---
 arch/x86/kvm/mmu.h         |    6 +++
 arch/x86/kvm/svm.c         |   94 +++++++++++++++++++++++++++++++++++++++++--
 arch/x86/kvm/vmx.c         |    7 +++
 arch/x86/kvm/x86.c         |    1 +
 include/asm-x86/kvm_host.h |    4 ++
 6 files changed, 182 insertions(+), 11 deletions(-)




--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH][RFC] SVM: Add Support for Nested Paging in AMD Fam16..., Joerg Roedel, (Fri Jan 25, 4:53 pm)
Re: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested Pag..., Jeremy Fitzhardinge, (Sun Jan 27, 11:20 pm)
[PATCH 8/8] SVM: add support for Nested Paging, Joerg Roedel, (Fri Jan 25, 4:53 pm)
[PATCH 7/8] MMU: add HAP support to the KVM MMU, Joerg Roedel, (Fri Jan 25, 4:53 pm)
[PATCH 2/8] SVM: add detection of Nested Paging feature, Joerg Roedel, (Fri Jan 25, 4:53 pm)