x86/compressed/acpi: Move EFI config table lookup to helper
authorMichael Roth <michael.roth@amd.com>
Thu, 24 Feb 2022 16:56:06 +0000 (10:56 -0600)
committerBorislav Petkov <bp@suse.de>
Wed, 6 Apr 2022 15:07:15 +0000 (17:07 +0200)
commit61c14ceda8405f37545a0983d6b9bc45c6236793
tree8887f353afc3096b316f3c43487c89f55fdc54b3
parent58f3e6b71f42f99ab5d0ab26ddf6e7ee5631f5db
x86/compressed/acpi: Move EFI config table lookup to helper

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.

  [ bp: Remove superfluous zeroing of a stack variable. ]

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-27-brijesh.singh@amd.com
arch/x86/boot/compressed/acpi.c
arch/x86/boot/compressed/efi.c
arch/x86/boot/compressed/misc.h