]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
efi/libstub: Add generic support for parsing mem_encrypt=
authorArd Biesheuvel <ardb@kernel.org>
Tue, 27 Feb 2024 15:19:13 +0000 (16:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:36:07 +0000 (16:36 +0200)
commitdc4cbf9e2df4d2ad361659aa037f5a9b0d32691f
tree9206a0d69794bd62f37671debeb5821abb0553ff
parent5447cb97e9b29bd3ac7569c5998d9cd7901482bd
efi/libstub: Add generic support for parsing mem_encrypt=

commit 7205f06e847422b66c1506eee01b9998ffc75d76 upstream.

Parse the mem_encrypt= command line parameter from the EFI stub if
CONFIG_ARCH_HAS_MEM_ENCRYPT=y, so that it can be passed to the early
boot code by the arch code in the stub.

This avoids the need for the core kernel to do any string parsing very
early in the boot.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20240227151907.387873-16-ardb+git@google.com
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/libstub/efi-stub-helper.c
drivers/firmware/efi/libstub/efistub.h