[RFC PATCH v1 0/3] Export TDX module information via SYSFS
From: Alexey Gladkov
Date: Fri Mar 14 2025 - 07:57:37 EST
From: "Alexey Gladkov (Intel)" <legion@xxxxxxxxxx>
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
--
2.48.1