Linux Documentation
 help / color / mirror / Atom feed
* [PATCH tsm 0/4] Start building drivers/attestation
@ 2026-12-01  0:52 Jason Gunthorpe
  2026-12-01  0:52 ` [PATCH tsm 1/4] attestation: Start the new subsystem using tsm_report and mr Jason Gunthorpe
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Jason Gunthorpe @ 2026-12-01  0:52 UTC (permalink / raw)
  To: Alexey Kardashevskiy, Aneesh Kumar K.V, Borislav Petkov,
	Jonathan Corbet, Dave Hansen, H. Peter Anvin, Kiryl Shutsemau,
	kvm, linux-coco, linux-doc, linux-kselftest, Lukas Wunner,
	Ingo Molnar, Randy Dunlap, Rick Edgecombe, Shuah Khan, Shuah Khan,
	Thomas Gleixner, x86
  Cc: Jiri Pirko, patches, Yeoreum Yun

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-12-01 15:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  0:52 [PATCH tsm 0/4] Start building drivers/attestation Jason Gunthorpe
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  5:25   ` Aneesh Kumar K.V
2026-12-01 13:03     ` 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
2026-12-01  3:05   ` Borislav Petkov
2026-12-01 13:07     ` Jason Gunthorpe
2026-12-01 15:46       ` Tom Lendacky
2026-12-01 14:32 ` [PATCH tsm 0/4] Start building drivers/attestation Jiri Pirko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox