[RFC PATCH 0/2] x86/kexec: Revert 5level dynamic switching
From: Borislav Petkov
Date: Fri Mar 01 2024 - 13:58:35 EST
From: "Borislav Petkov (AMD)" <bp@xxxxxxxxx>
Hi,
I think this is silly - both 1st and second, the-kexec'ed kernel would
either have CONFIG_X86_5LEVEL enabled or not - why would this be
different.
And this'll become even more the case in the future.
So remove this silly stuff.
Unless there's a valid use case, which I'm willing to hear. Those commit
messages don't say anything about it.
Thx.
Borislav Petkov (AMD) (2):
Revert "x86/kexec/64: Prevent kexec from 5-level paging to a 4-level
only kernel"
Revert "x86/boot: Add xloadflags bits to check for 5-level paging
support"
arch/x86/boot/header.S | 12 +-----------
arch/x86/include/uapi/asm/bootparam.h | 2 --
arch/x86/kernel/kexec-bzimage64.c | 5 -----
3 files changed, 1 insertion(+), 18 deletions(-)
--
2.43.0