Skip to content

Start building drivers/attestation

Jason Gunthorpe kvm linux-coco linux-doc linux-kselftest linux-patches 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4attestation: Start the new subsystem using tsm_report and mrDocumentation/ABI/testing/sysfs-devices-virtual-misc-tdx_guest Documentation/driver-api/attestation.rst Documentation/driver-api/coco/index.rst +17 more+70 -550 replies
2/4attestation: Move the ARM Realm Token tsm_report driverMAINTAINERS drivers/attestation/Kconfig drivers/attestation/Makefile +7 more+23 -200 replies
3/4attestation: Move Intel TDX Guest tsm_report and mr driverarch/x86/coco/tdx/tdx.c drivers/attestation/Kconfig drivers/attestation/Makefile +8 more+26 -230 replies
4/4attestation: Move AMD SEV Guest tsm_report driverdrivers/attestation/Kconfig drivers/attestation/Makefile drivers/attestation/amd/Kconfig +6 more+22 -190 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH tsm 0/4] Start building drivers/attestation

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

Signature · 1 line
2.43.0