RFC x86: Trenchboot Secure Launch DRTM for AMD SKINIT (Linux)
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest9 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | Documentation/x86: update Secure Launch for AMD SKINITDocumentation/ Documentation/ | +115 | 0 replies | |
| 2/9 | x86: AMD changes for Secure Launch Resource Table header fileinclude/ | +15 | 0 replies | |
| 3/9 | x86: Secure Launch main header file AMD supportinclude/ | +70 | 0 replies | |
| 4/9 | x86: Split up Secure Launch setup and finalize functionsarch/ arch/ arch/ +1 more | +62 | 0 replies | |
| 5/9 | x86: Implement AMD support for Secure Launcharch/ arch/ arch/ +2 more | +362 | 0 replies | |
| 6/9 | x86: Prepare CPUs for post SKINIT launcharch/ arch/ arch/ | +41 | 0 replies | |
| 7/9 | x86/slmodule: Support AMD SKINITarch/ | +131 | 0 replies | |
| 8/9 | x86: AMD changes for EFI stub DRTM launch supportdrivers/ | +15 | 0 replies | |
| 9/9 | psp: Perform kernel portion of DRTM proceduresarch/ arch/ arch/ +1 more | +255 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/9] x86: Trenchboot Secure Launch DRTM for AMD SKINIT (Linux)
NOTE: this patch set follows up on Intel TXT DRTM patches that are currently under review in their 11th 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 boots 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 include:
- lack of registers to pass data from bootloader to DLME, resulting in passing some information via boot parameters
- a different SLRT entry
- re-enabling GIF
- not sending #INIT to APs
- special handling for TPM event logs to make them "compatible" with TXT logs
-----
[0]: https://lkml.org/lkml/2024/9/13/1396
-----
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 | 64 ++-- arch/x86/Kconfig | 9 +- arch/x86/boot/compressed/sl_main.c | 285 ++++++++++++++---- 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 | 158 ++++++++-- arch/x86/kernel/smpboot.c | 15 +- arch/x86/kernel/traps.c | 4 + drivers/firmware/efi/libstub/x86-stub.c | 23 +- drivers/iommu/amd/init.c | 12 + include/linux/slaunch.h | 83 ++++- include/linux/slr_table.h | 15 + 18 files changed, 1064 insertions(+), 168 deletions(-) create mode 100644 arch/x86/kernel/sl-psp.c
base-commit: a74134ba0f244cb8d5d5605699aeca7712631e89
prerequisite-patch-id: d68300fcecfeaf27332858195e334a1802dcf591
Signature · 1 line
2.47.1