mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/9] x86: Trenchboot Secure Launch DRTM for AMD SKINIT (Linux)
@ 2025-04-30 22:44 Sergii Dmytruk
  2025-04-30 22:44 ` [RFC PATCH v2 1/9] Documentation/x86: update Secure Launch for AMD SKINIT Sergii Dmytruk
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Sergii Dmytruk @ 2025-04-30 22:44 UTC (permalink / raw)
  To: linux-kernel
  Cc: trenchboot-devel, H. Peter Anvin, Ard Biesheuvel,
	Borislav Petkov, Dave Hansen, Ingo Molnar, Joerg Roedel,
	Suravee Suthikulpanit, Thomas Gleixner, x86

NOTE: this patch set follows up on Intel TXT DRTM patches that are
currently under review in their 14th version [0]; therefore, it is not
standalone!

The publication of the patches at this point pursues several goals:
 - Make anyone tracking upstream aware of the maturity of the support
   for AMD SKINIT.
 - Collect early feedback on the SKINIT implementation.
 - Finally, demonstrate the extensibility of Secure Launch for
   incorporating additional platforms.

As the RFC suggest, this series is temporal and will be updated based on
changes made to the initial Secure Launch series. Review comments are
greatly welcomed and will be worked/addressed, but we would caution that
changes to the Secure Launch series will take precedence over review
comments. Once the Secure Launch series is merged, this series will
transition from RFC to a formally submitted series.

-----

The patches extend Secure Launch for legacy and UEFI boot with support
for AMD CPUs and their DRTM in two flavours: SKINIT on its own and SKINIT
with DRTM service running in PSP/ASP.

The code is adjusted to detect CPU type and handle AMD differently.
DRTM-specific differences relative to Intel TXT include:
 - absence of DRTM-specific registers to pass data from bootloader to DLME,
   resulting in passing some information via boot parameters
 - use of a different SLRT entry
 - not sending #INIT to APs
 - special handling for TPM event logs to make them "compatible" with TXT logs

-----

[0]: https://lore.kernel.org/lkml/20250421162712.77452-1-ross.philipson@oracle.com/

Changes in v2:
 - rebase onto v14 of the main patch set
 - cleaner handling of reset in sl_main.c leading to a smaller diff
 - renamed slr_entry_amd_info::boot_params_{base,addr} for consistency with
   slr_entry_intel_info
 - slightly safer slaunch_reset() macro in slmodule.c

-----

Jagannathan Raman (1):
  psp: Perform kernel portion of DRTM procedures

Michał Żygowski (1):
  x86: Implement AMD support for Secure Launch

Ross Philipson (6):
  x86: AMD changes for Secure Launch Resource Table header file
  x86: Secure Launch main header file AMD support
  x86: Split up Secure Launch setup and finalize functions
  x86: Prepare CPUs for post SKINIT launch
  x86/slmodule: Support AMD SKINIT
  x86: AMD changes for EFI stub DRTM launch support

Sergii Dmytruk (1):
  Documentation/x86: update Secure Launch for AMD SKINIT

 .../secure_launch_details.rst                 |  83 +++++-
 .../secure_launch_overview.rst                |  61 ++--
 arch/x86/Kconfig                              |   9 +-
 arch/x86/boot/compressed/sl_main.c            | 271 ++++++++++++++----
 arch/x86/boot/compressed/sl_stub.S            |  41 ++-
 arch/x86/include/asm/svm.h                    |   2 +
 arch/x86/include/uapi/asm/setup_data.h        |   3 +-
 arch/x86/kernel/Makefile                      |   1 +
 arch/x86/kernel/setup.c                       |   2 +-
 arch/x86/kernel/sl-psp.c                      | 239 +++++++++++++++
 arch/x86/kernel/slaunch.c                     | 193 +++++++++++--
 arch/x86/kernel/slmodule.c                    | 161 +++++++++--
 arch/x86/kernel/smpboot.c                     |  15 +-
 arch/x86/kernel/traps.c                       |   4 +
 drivers/firmware/efi/libstub/x86-stub.c       |  12 +-
 drivers/iommu/amd/init.c                      |  12 +
 include/linux/slaunch.h                       |  83 +++++-
 include/linux/slr_table.h                     |  15 +
 18 files changed, 1044 insertions(+), 163 deletions(-)
 create mode 100644 arch/x86/kernel/sl-psp.c


base-commit: 616c6ae2fa0b736552873af08ad0e5532e04ad80
-- 
2.49.0


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

end of thread, other threads:[~2025-05-09  9:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-30 22:44 [RFC PATCH v2 0/9] x86: Trenchboot Secure Launch DRTM for AMD SKINIT (Linux) Sergii Dmytruk
2025-04-30 22:44 ` [RFC PATCH v2 1/9] Documentation/x86: update Secure Launch for AMD SKINIT Sergii Dmytruk
2025-04-30 22:44 ` [RFC PATCH v2 2/9] x86: AMD changes for Secure Launch Resource Table header file Sergii Dmytruk
2025-04-30 22:44 ` [RFC PATCH v2 3/9] x86: Secure Launch main header file AMD support Sergii Dmytruk
2025-04-30 22:44 ` [RFC PATCH v2 4/9] x86: Split up Secure Launch setup and finalize functions Sergii Dmytruk
2025-04-30 22:44 ` [RFC PATCH v2 5/9] x86: Implement AMD support for Secure Launch Sergii Dmytruk
2025-04-30 22:44 ` [RFC PATCH v2 6/9] x86: Prepare CPUs for post SKINIT launch Sergii Dmytruk
2025-04-30 22:44 ` [RFC PATCH v2 7/9] x86/slmodule: Support AMD SKINIT Sergii Dmytruk
2025-04-30 22:44 ` [RFC PATCH v2 8/9] x86: AMD changes for EFI stub DRTM launch support Sergii Dmytruk
2025-05-09  9:23   ` Ard Biesheuvel
2025-04-30 22:44 ` [RFC PATCH v2 9/9] psp: Perform kernel portion of DRTM procedures Sergii Dmytruk

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

all inboxes | Powered by JetHome®