From: Jason Gunthorpe <jgg@nvidia.com>
To: Alexey Kardashevskiy <aik@amd.com>,
"Aneesh Kumar K.V" <aneesh.kumar@kernel.org>,
Borislav Petkov <bp@alien8.de>, Jonathan Corbet <corbet@lwn.net>,
Dave Hansen <dave.hansen@linux.intel.com>,
"H. Peter Anvin" <hpa@zytor.com>,
Kiryl Shutsemau <kas@kernel.org>,
kvm@vger.kernel.org, linux-coco@lists.linux.dev,
linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org,
Lukas Wunner <lukas@wunner.de>, Ingo Molnar <mingo@redhat.com>,
Randy Dunlap <rdunlap@infradead.org>,
Rick Edgecombe <rick.p.edgecombe@intel.com>,
Shuah Khan <shuah@kernel.org>,
Shuah Khan <skhan@linuxfoundation.org>,
Thomas Gleixner <tglx@kernel.org>,
x86@kernel.org
Cc: Jiri Pirko <jiri@resnulli.us>,
patches@lists.linux.dev, Yeoreum Yun <yeoreum.yun@arm.com>
Subject: [PATCH tsm 0/4] Start building drivers/attestation
Date: Mon, 30 Nov 2026 20:52:20 -0400 [thread overview]
Message-ID: <0-v1-56c8df81fd64+16c-att_start_jgg@nvidia.com> (raw)
Move tsm_report and tsm_mr, along with all their drivers, into
drivers/attestation. There are no functional changes, but some modules
are renamed to consistent attestation_* names.
This largely just moves drivers/virt/coco/* stuff to drivers/attestation
and makes some adjustments to have per-arch subdirectories to hold all the
stuff. virt/coco was OK when this was only going to be used inside
confidential VMs, but with the new coming needs for bare metal and host
support under the same umbrella it isn't a good place to build an entire
subsystem.
The attestation subsystem is intended to support drivers for all Roots of
Trust (ROTs), both local to the CPU and on-device ROTs accessed through
SPDM. A well-known example of a ROT is a Trusted Platform Module, though
many different specifications for much simpler ROTs now exist.
The existing drivers are all for the ROTs integrated into confidential
VMs. AMD, Intel and ARM each have an attestation ROT linked to their
respective implementations.
A following set of drivers, like ARM FIRME, will start to bring in non-TPM
ROTs on bare metal systems. The kernel SPDM implementation will also live
here and use the upcoming enhanced uAPI.
Eventually we hope to provide a kernel multiplexer so that in-kernel
users, like IMA, can access any attestation measurement register instead
of being hardwired to use only the TPM.
Several reorganization and cleanup passes will be needed after this to
turn it into a well-formed subsystem.
Jason Gunthorpe (4):
attestation: Start the new subsystem using tsm_report and mr
attestation: Move the ARM Realm Token tsm_report driver
attestation: Move Intel TDX Guest tsm_report and mr driver
attestation: Move AMD SEV Guest tsm_report driver
.../sysfs-devices-virtual-misc-tdx_guest | 2 +-
Documentation/driver-api/attestation.rst | 36 +++++++++++++++++++
Documentation/driver-api/coco/index.rst | 10 ------
.../driver-api/coco/measurement-registers.rst | 12 -------
Documentation/driver-api/index.rst | 2 +-
MAINTAINERS | 5 ++-
arch/x86/coco/tdx/tdx.c | 8 ++---
drivers/Kconfig | 2 ++
drivers/Makefile | 2 ++
drivers/attestation/Kconfig | 23 ++++++++++++
drivers/attestation/Makefile | 9 +++++
drivers/attestation/amd/Kconfig | 15 ++++++++
drivers/attestation/amd/Makefile | 4 +++
.../sev-guest => attestation/amd}/sev-guest.c | 2 +-
drivers/attestation/arm/Kconfig | 12 +++++++
drivers/attestation/arm/Makefile | 4 +++
.../main.c => attestation/arm/cca-guest.c} | 2 +-
drivers/attestation/intel/Kconfig | 13 +++++++
drivers/attestation/intel/Makefile | 4 +++
.../intel}/tdx-guest.c | 4 +--
.../{virt/coco/guest => attestation}/tsm-mr.c | 0
.../report.c => attestation/tsm-report.c} | 0
drivers/virt/coco/Kconfig | 8 -----
drivers/virt/coco/Makefile | 4 ---
drivers/virt/coco/arm-cca-guest/Kconfig | 11 ------
drivers/virt/coco/arm-cca-guest/Makefile | 4 ---
drivers/virt/coco/guest/Kconfig | 16 ---------
drivers/virt/coco/guest/Makefile | 4 ---
drivers/virt/coco/sev-guest/Kconfig | 13 -------
drivers/virt/coco/sev-guest/Makefile | 2 --
drivers/virt/coco/tdx-guest/Kconfig | 12 -------
drivers/virt/coco/tdx-guest/Makefile | 2 --
samples/Kconfig | 3 +-
tools/testing/selftests/tdx/config | 2 +-
34 files changed, 138 insertions(+), 114 deletions(-)
create mode 100644 Documentation/driver-api/attestation.rst
delete mode 100644 Documentation/driver-api/coco/index.rst
delete mode 100644 Documentation/driver-api/coco/measurement-registers.rst
create mode 100644 drivers/attestation/Kconfig
create mode 100644 drivers/attestation/Makefile
create mode 100644 drivers/attestation/amd/Kconfig
create mode 100644 drivers/attestation/amd/Makefile
rename drivers/{virt/coco/sev-guest => attestation/amd}/sev-guest.c (99%)
create mode 100644 drivers/attestation/arm/Kconfig
create mode 100644 drivers/attestation/arm/Makefile
rename drivers/{virt/coco/arm-cca-guest/main.c => attestation/arm/cca-guest.c} (99%)
create mode 100644 drivers/attestation/intel/Kconfig
create mode 100644 drivers/attestation/intel/Makefile
rename drivers/{virt/coco/tdx-guest => attestation/intel}/tdx-guest.c (99%)
rename drivers/{virt/coco/guest => attestation}/tsm-mr.c (100%)
rename drivers/{virt/coco/guest/report.c => attestation/tsm-report.c} (100%)
delete mode 100644 drivers/virt/coco/arm-cca-guest/Kconfig
delete mode 100644 drivers/virt/coco/arm-cca-guest/Makefile
delete mode 100644 drivers/virt/coco/guest/Kconfig
delete mode 100644 drivers/virt/coco/guest/Makefile
delete mode 100644 drivers/virt/coco/sev-guest/Kconfig
delete mode 100644 drivers/virt/coco/sev-guest/Makefile
delete mode 100644 drivers/virt/coco/tdx-guest/Kconfig
delete mode 100644 drivers/virt/coco/tdx-guest/Makefile
base-commit: 08b2d931027c237d749c934bcad406a79818123b
--
2.43.0
next reply other threads:[~2026-12-01 0:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 0:52 Jason Gunthorpe [this message]
2026-12-01 0:52 ` [PATCH tsm 1/4] attestation: Start the new subsystem using tsm_report and mr Jason Gunthorpe
2026-12-01 0:52 ` [PATCH tsm 2/4] attestation: Move the ARM Realm Token tsm_report driver Jason Gunthorpe
2026-12-01 0:52 ` [PATCH tsm 3/4] attestation: Move Intel TDX Guest tsm_report and mr driver Jason Gunthorpe
2026-12-01 0:52 ` [PATCH tsm 4/4] attestation: Move AMD SEV Guest tsm_report driver Jason Gunthorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0-v1-56c8df81fd64+16c-att_start_jgg@nvidia.com \
--to=jgg@nvidia.com \
--cc=aik@amd.com \
--cc=aneesh.kumar@kernel.org \
--cc=bp@alien8.de \
--cc=corbet@lwn.net \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=jiri@resnulli.us \
--cc=kas@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-coco@lists.linux.dev \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=mingo@redhat.com \
--cc=patches@lists.linux.dev \
--cc=rdunlap@infradead.org \
--cc=rick.p.edgecombe@intel.com \
--cc=shuah@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
--cc=yeoreum.yun@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox