Skip to content

RFC Export TDX module information via SYSFS

Alexey Gladkov linux-coco lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/tdx: Make TDX metadata available via SYSFSarch/x86/Kconfig arch/x86/include/asm/shared/tdx.h arch/x86/include/asm/tdx.h +1 more+89 -05 replies
2/3x86/tdx: Make TDX metadata available on guest via SYSFSarch/x86/Kconfig arch/x86/coco/tdx/tdx.c+93 -00 replies
3/3docs: ABI: testing: Add documentation about TDXDocumentation/ABI/testing/sysfs-hypervisor-tdx+50 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH v1 0/3] Export TDX module information via SYSFS

From: "Alexey Gladkov (Intel)" <[email protected]>

TD-Preserving updates depend on a userspace tool to select the appropriate module to load. To facilitate this decision-making process, expose the necessary information to userspace.

Also TDX module information (version, supported features, etc) is crucial for bug reporting. For this purpose, it makes sense to have a consistent structure for host and guest information in sysfs.

As already discussed [1] in the mailing list for tdx used the directory /sys/hypervisor/tdx.

[1] https://lore.kernel.org/lkml/20250311110748.GCZ9AZhPYYAz-MXErv@fat_crate.local/

Alexey Gladkov (Intel) (3):
x86/tdx: Make TDX metadata available via SYSFS x86/tdx: Make TDX metadata available on guest via SYSFS
docs: ABI: testing: Add documentation about TDX

 .../ABI/testing/sysfs-hypervisor-tdx          | 50 ++++++++++
 arch/x86/Kconfig                              |  2 +
 arch/x86/coco/tdx/tdx.c                       | 92 +++++++++++++++++++
 arch/x86/include/asm/shared/tdx.h             |  2 +
 arch/x86/include/asm/tdx.h                    | 12 +++
 arch/x86/virt/vmx/tdx/tdx.c                   | 74 +++++++++++++++
 6 files changed, 232 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-hypervisor-tdx
Signature · 1 line
2.48.1