summaryrefslogtreecommitdiff
path: root/lib/bitrev.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2023-08-07 19:27:13 +0300
committerBorislav Petkov (AMD) <bp@alien8.de>2023-08-07 21:52:32 +0300
commitcb1c9e02b0c13032c3aec325643453ba48e96e17 (patch)
treeeb340ba7015e5ebb407b456ba603965883a4244c /lib/bitrev.c
parent03dda95137d3247564854ad9032c0354273a159d (diff)
downloadlinux-cb1c9e02b0c13032c3aec325643453ba48e96e17.tar.xz
x86/efistub: Perform 4/5 level paging switch from the stub
In preparation for updating the EFI stub boot flow to avoid the bare metal decompressor code altogether, implement the support code for switching between 4 and 5 levels of paging before jumping to the kernel proper. Reuse the newly refactored trampoline that the bare metal decompressor uses, but relies on EFI APIs to allocate 32-bit addressable memory and remap it with the appropriate permissions. Given that the bare metal decompressor will no longer call into the trampoline if the number of paging levels is already set correctly, it is no longer needed to remove NX restrictions from the memory range where this trampoline may end up. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Link: https://lore.kernel.org/r/20230807162720.545787-17-ardb@kernel.org
Diffstat (limited to 'lib/bitrev.c')
0 files changed, 0 insertions, 0 deletions