|
|
Log in / Subscribe / Register

Export TDX module information via SYSFS

From:  Alexey Gladkov <legion-AT-kernel.org>
To:  x86-AT-kernel.org
Subject:  [RFC PATCH v1 0/3] Export TDX module information via SYSFS
Date:  Fri, 14 Mar 2025 12:56:25 +0100
Message-ID:  <cover.1741952958.git.legion@kernel.org>
Cc:  "Alexey Gladkov (Intel)" <legion-AT-kernel.org>, linux-kernel-AT-vger.kernel.org, linux-coco-AT-lists.linux.dev, Alexey Gladkov <alexey.gladkov-AT-intel.com>, "H . Peter Anvin" <hpa-AT-zytor.com>, Joerg Roedel <jroedel-AT-suse.de>, Juergen Gross <jgross-AT-suse.com>, "Kirill A . Shutemov" <kirill.shutemov-AT-linux.intel.com>, Larry.Dewey-AT-amd.com, Nikunj A Dadhania <nikunj-AT-amd.com>, Tom Lendacky <thomas.lendacky-AT-amd.com>
Archive-link:  Article

From: "Alexey Gladkov (Intel)" <legion@kernel.org>

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-...


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




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds