Skip to content

TDX host: Provide TDX module metadata reading APIs

Kai Huang lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v15 patches 29 repliesSuperseded

Changes in v2 from the cover letter

- Collect BinBin's tag.
- Rebase to latest Linus's tree (but can also be cleanly applied to latest tip/master and tip/x86/tdx).

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86/virt/tdx: Rename _offset to _member for TD_SYSINFO_MAP() macroarch/x86/virt/vmx/tdx/tdx.c+2 -20 replies
2/5x86/virt/tdx: Move TDMR metadata fields map table to local variablearch/x86/virt/vmx/tdx/tdx.c+8 -90 replies
3/5x86/virt/tdx: Unbind global metadata read with 'struct tdx_tdmr_sysinfo'arch/x86/virt/vmx/tdx/tdx.c+14 -110 replies
4/5x86/virt/tdx: Support global metadata read for all element sizesarch/x86/virt/vmx/tdx/tdx.c arch/x86/virt/vmx/tdx/tdx.h+40 -210 replies
5/5x86/virt/tdx: Export global metadata read infrastructurearch/x86/include/asm/tdx.h arch/x86/virt/vmx/tdx/tdx.c+30 -170 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchKirill A. ShutemovBinbin Wu
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b
5/5R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/5] TDX host: Provide TDX module metadata reading APIs

KVM will need to read bunch of TDX module metadata fields to create and run TDX guests. In the long term, other in-kernel TDX users, e.g., VT-d also likely will need to read metadata. This series provides common APIs in the TDX host code so that KVM can use.

v1 -> v2:
- Collect BinBin's tag.
- Rebase to latest Linus's tree (but can also be cleanly applied to latest tip/master and tip/x86/tdx).

(I dropped KVM list from the To list to stop dumping emails to people's
mailbox, but keep maintainers Cc'ed.)

v1: https://lore.kernel.org/lkml/[email protected]/T/

Kai Huang (5):
x86/virt/tdx: Rename _offset to _member for TD_SYSINFO_MAP() macro x86/virt/tdx: Move TDMR metadata fields map table to local variable x86/virt/tdx: Unbind global metadata read with 'struct
tdx_tdmr_sysinfo'
x86/virt/tdx: Support global metadata read for all element sizes x86/virt/tdx: Export global metadata read infrastructure

 arch/x86/include/asm/tdx.h  | 22 ++++++++++
 arch/x86/virt/vmx/tdx/tdx.c | 84 +++++++++++++++++++++----------------
 arch/x86/virt/vmx/tdx/tdx.h |  2 -
 3 files changed, 71 insertions(+), 37 deletions(-)

base-commit: 928a87efa42302a23bb9554be081a28058495f22

Signature · 1 line
2.43.2