Skip to content

SVM 5-level page table support

Wei Huang kvm lkml 3 versions – Applied

Status from this message: Queued, thanks, with NULL initializations according to Tom's review.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 11 repliesApplied
  2. v23 patches 15 repliesSuperseded
  3. v13 patches 7 repliesSuperseded

Changes in v3 from the cover letter

* Change the way of building root_hpa by following the existing flow (Sean)

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: x86: Allow CPU to force vendor-specific TDP levelarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/svm/svm.c +1 more+15 -70 replies
2/3KVM: x86: Handle the case of 5-level shadow page tablearch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c+31 -163 replies
3/3KVM: SVM: Add 5-level page table support for SVMarch/x86/kvm/svm/svm.c+3 -62 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMaxim Levitsky
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] SVM 5-level page table support

This patch set adds 5-level page table support for AMD SVM. When the 5-level page table is enabled on host OS, the nested page table for guest VMs will use the same format as host OS (i.e. 5-level NPT). These patches were tested with various combination of different settings and test cases (nested/regular VMs, AMD64/i686 kernels, kvm-unit-tests, etc.)

v2->v3:
* Change the way of building root_hpa by following the existing flow (Sean)

v1->v2:
* Remove v1's arch-specific get_tdp_level() and add a new parameter, tdp_forced_root_level, to allow forced TDP level (Sean)
* Add additional comment on tdp_root table chaining trick and change the PML root table allocation code (Sean)
* Revise Patch 1's commit msg (Sean and Jim)

Thanks,
-Wei

Wei Huang (3):
KVM: x86: Allow CPU to force vendor-specific TDP level
KVM: x86: Handle the case of 5-level shadow page table
KVM: SVM: Add 5-level page table support for SVM

 arch/x86/include/asm/kvm_host.h |  6 ++--
 arch/x86/kvm/mmu/mmu.c          | 56 ++++++++++++++++++++++-----------
 arch/x86/kvm/svm/svm.c          | 13 ++++----
 arch/x86/kvm/vmx/vmx.c          |  3 +-
 4 files changed, 49 insertions(+), 29 deletions(-)
Signature · 1 line
2.31.1