]> git.baikalelectronics.ru Git - kernel.git/commit
x86/compressed/acpi: Move EFI kexec handling into common code
authorMichael Roth <michael.roth@amd.com>
Thu, 24 Feb 2022 16:56:08 +0000 (10:56 -0600)
committerBorislav Petkov <bp@suse.de>
Wed, 6 Apr 2022 15:07:24 +0000 (17:07 +0200)
commit949d5f188808edf582050a5c3328a3c00d63d425
treea4429fed17dab41d3650a86e1865f8d335074a3e
parent58f6d82cc4d1f9203b5be1f1163808aeac414edd
x86/compressed/acpi: Move EFI kexec handling into common code

Future patches for SEV-SNP-validated CPUID will also require early
parsing of the EFI configuration. Incrementally move the related code
into a set of helpers that can be re-used for that purpose.

In this instance, the current acpi.c kexec handling is mainly used to
get the alternative EFI config table address provided by kexec via a
setup_data entry of type SETUP_EFI. If not present, the code then falls
back to normal EFI config table address provided by EFI system table.
This would need to be done by all call-sites attempting to access the
EFI config table, so just have efi_get_conf_table() handle that
automatically.

Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220307213356.2797205-29-brijesh.singh@amd.com
arch/x86/boot/compressed/acpi.c
arch/x86/boot/compressed/efi.c