Skip to content

efistub/x86: Fix early SEV-SNP memory acceptance

Ard Biesheuvel linux-efi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 13 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/boot: Move accept_memory() into decompressorarch/x86/boot/compressed/mem.c drivers/firmware/efi/libstub/unaccepted_memory.c+45 -450 replies
2/3x86/boot: Use separate API for memory acceptance in the EFI stubarch/x86/boot/compressed/mem.c drivers/firmware/efi/libstub/efistub.h drivers/firmware/efi/libstub/unaccepted_memory.c +1 more+47 -90 replies
3/3x86/boot: Implement early memory acceptance for SEV-SNParch/x86/boot/compressed/sev.c drivers/firmware/efi/libstub/x86-stub.c+33 -513 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] efistub/x86: Fix early SEV-SNP memory acceptance

From: Ard Biesheuvel <[email protected]>

This is a follow-up to [0]. Instead of avoiding memory acceptance from the EFI stub altogether, switch to a separate API that can be implemented by SEV-SNP without relying on the shared GHCB page, which cannot be created yet when still executing in the firmware context with the firmware's page tables.

[0] https://lore.kernel.org/all/[email protected]/T/#u

Cc Tom Lendacky <[email protected]>,
Cc "Kirill A. Shutemov" <[email protected]>
Cc Borislav Petkov <[email protected]>,
Cc Dionna Amalie Glaze <[email protected]>,
Cc Kevin Loughlin <[email protected]>

Ard Biesheuvel (3):
x86/boot: Move accept_memory() into decompressor x86/boot: Use separate API for memory acceptance in the EFI stub x86/boot: Implement early memory acceptance for SEV-SNP

 arch/x86/boot/compressed/mem.c                   | 47 +++++++++++++++-
 arch/x86/boot/compressed/sev.c                   | 34 ++++++++++--
 drivers/firmware/efi/libstub/efistub.h           |  3 +-
 drivers/firmware/efi/libstub/unaccepted_memory.c | 57 +++-----------------
 drivers/firmware/efi/libstub/x86-stub.c          | 41 ++++++++++++++
 5 files changed, 124 insertions(+), 58 deletions(-)
Signature · 1 line
2.49.0.504.g3bcea36a83-goog