Skip to content

KVM TDX: TDP MMU: large page support

[email protected] kvm lkml 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest14 patches 2 repliesIn review
  2. v713 patches 0 repliesSuperseded
  3. v616 patches 22 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v5 RFC16 patches0 repliesSuperseded
v4 RFC16 patches4 repliesSuperseded
v3 RFC16 patches0 repliesSuperseded
v2 RFC15 patches0 repliesSuperseded
v1 RFC13 patches2 repliesSuperseded

Changes in v8 from the cover letter

- Rebased to v19 TDX KVM v6.8-rc5 based patch series

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14KVM: Add transparent hugepage support for dedicated guest memoryDocumentation/virt/kvm/api.rst include/uapi/linux/kvm.h virt/kvm/guest_memfd.c+75 -70 replies
2/14KVM: TDX: Flush cache based on page size before TDX SEAMCALLarch/x86/kvm/vmx/tdx_ops.h+14 -80 replies
3/14KVM: TDX: Pass KVM page level to tdh_mem_page_aug()arch/x86/kvm/vmx/tdx.c arch/x86/kvm/vmx/tdx_ops.h+10 -40 replies
4/14KVM: TDX: Pass size to reclaim_page()arch/x86/kvm/vmx/tdx.c+15 -120 replies
5/14KVM: TDX: Update tdx_sept_{set,drop}_private_spte() to support large pagearch/x86/kvm/vmx/tdx.c+35 -330 replies
6/14KVM: MMU: Introduce level info in PFERR codearch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c+10 -00 replies
7/14KVM: TDX: Pass desired page level in err code for page fault handlerarch/x86/kvm/vmx/common.h arch/x86/kvm/vmx/tdx.c arch/x86/kvm/vmx/tdx_arch.h +1 more+41 -40 replies
8/14KVM: x86/tdp_mmu: Allocate private page table for large page splitarch/x86/kvm/mmu/mmu_internal.h arch/x86/kvm/mmu/tdp_mmu.c+15 -20 replies
9/14KVM: x86/tdp_mmu: Split the large page when zap leafarch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/mmu_internal.h arch/x86/kvm/mmu/tdp_mmu.c+68 -70 replies
10/14KVM: x86/tdp_mmu, TDX: Split a large page when 4KB page within it converted to sharedarch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/tdp_mmu.c +4 more+59 -70 replies
11/14KVM: x86/tdp_mmu: Try to merge pages into a large pagearch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/tdp_iter.c +2 more+211 -100 replies
12/14KVM: TDX: Implement merge pages into a large pagearch/x86/kvm/vmx/tdx.c arch/x86/kvm/vmx/tdx_arch.h arch/x86/kvm/vmx/tdx_errno.h +1 more+88 -00 replies
13/14KVM: x86/mmu: Make kvm fault handler aware of large page of private memslotarch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/mmu_internal.h arch/x86/kvm/mmu/tdp_mmu.c+26 -150 replies
14/14KVM: TDX: Allow 2MB large page for TD GUESTarch/x86/kvm/mmu/tdp_mmu.c arch/x86/kvm/vmx/tdx.c+7 -90 replies

Reviews trailers per patch

1 of 14 patches has a Reviewed-by or Acked-by.

PatchBinbin WuYin Fengwei
SeriesT-b
1/14
2/14R-b
3/14
4/14
5/14
6/14
7/14
8/14
9/14
10/14
11/14
12/14
13/14
14/14

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

Read the v8 thread

Cover letter [PATCH v8 00/14] KVM TDX: TDP MMU: large page support

From: Isaku Yamahata <[email protected]>

This patch series is based on "v19 KVM TDX: basic feature support". It implements large page support for TDP MMU by allowing populating of the large page and splitting it when necessary.

No major changes from v7 instead of rebasing.

Thanks,

Changes from v7:
- Rebased to v19 TDX KVM v6.8-rc5 based patch series

Changes from v6:
- Rebased to v18 TDX KVM v6.8-rc1 based patch series
- use struct tdx_module_args
- minor improve on comment, commit message

Changes from v5:
- Switched to TDX module 1.5 base.

Chnages from v4:
- Rebased to v16 TDX KVM v6.6-rc2 base

Changes from v3:
- Rebased to v15 TDX KVM v6.5-rc1 base

Changes from v2:
- implemented page merging path
- rebased to TDX KVM v11

Changes from v1:
- implemented page merging path
- rebased to UPM v10
- rebased to TDX KVM v10
- rebased to kvm.git queue + v6.1-rc8

Isaku Yamahata (4):
KVM: x86/tdp_mmu: Allocate private page table for large page split
KVM: x86/tdp_mmu: Try to merge pages into a large page
KVM: TDX: Implement merge pages into a large page
KVM: x86/mmu: Make kvm fault handler aware of large page of private
memslot

Sean Christopherson (1):
KVM: Add transparent hugepage support for dedicated guest memory

Xiaoyao Li (9):
KVM: TDX: Flush cache based on page size before TDX SEAMCALL
KVM: TDX: Pass KVM page level to tdh_mem_page_aug()
KVM: TDX: Pass size to reclaim_page()
KVM: TDX: Update tdx_sept_{set,drop}_private_spte() to support large
page
KVM: MMU: Introduce level info in PFERR code
KVM: TDX: Pass desired page level in err code for page fault handler
KVM: x86/tdp_mmu: Split the large page when zap leaf
KVM: x86/tdp_mmu, TDX: Split a large page when 4KB page within it
converted to shared
KVM: TDX: Allow 2MB large page for TD GUEST

 Documentation/virt/kvm/api.rst     |   7 +
 arch/x86/include/asm/kvm-x86-ops.h |   3 +
 arch/x86/include/asm/kvm_host.h    |  11 ++
 arch/x86/kvm/mmu/mmu.c             |  38 ++--
 arch/x86/kvm/mmu/mmu_internal.h    |  30 +++-
 arch/x86/kvm/mmu/tdp_iter.c        |  37 +++-
 arch/x86/kvm/mmu/tdp_iter.h        |   2 +
 arch/x86/kvm/mmu/tdp_mmu.c         | 276 ++++++++++++++++++++++++++---
 arch/x86/kvm/vmx/common.h          |   6 +-
 arch/x86/kvm/vmx/tdx.c             | 221 +++++++++++++++++------
 arch/x86/kvm/vmx/tdx_arch.h        |  21 +++
 arch/x86/kvm/vmx/tdx_errno.h       |   3 +
 arch/x86/kvm/vmx/tdx_ops.h         |  56 ++++--
 arch/x86/kvm/vmx/vmx.c             |   2 +-
 include/uapi/linux/kvm.h           |   2 +
 virt/kvm/guest_memfd.c             |  73 +++++++-
 16 files changed, 672 insertions(+), 116 deletions(-)
Signature · 1 line
2.25.1