Re: [PATCH v7 6/9] x86/boot: Move mem_encrypt= parsing to the decompressor

From: Borislav Petkov
Date: Sat Mar 02 2024 - 09:51:38 EST


On Sat, Mar 02, 2024 at 12:46:06AM +0100, Ard Biesheuvel wrote:
> Yeah that seems unnecessary to me. They are only used by kexec, and
> only for cases where you want to kexec a [much] older kernel that
> cannot deal with 5-level paging at all. AFAICT 5-level support was
> added in v4.13.

Yeah, I can't imagine a use case where you'd do two different kernels
- one for normal boot and one for kexec and they'd differ in the .config
and one would support 5level pagetables and the other wouldn't...

> So I think we might be able to drop these entirely, no?

Yeah:

https://lore.kernel.org/r/20240301185618.19663-1-bp@xxxxxxxxx


--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette