Re: RFC x86/boot/64: BOOT_PGT_SIZE definition for compressed kernel

From: Kirill A. Shutemov
Date: Tue Oct 27 2020 - 13:44:43 EST


On Tue, Oct 27, 2020 at 09:16:17AM -0400, Arvind Sankar wrote:
> The #PF handler is already there now with the SEV-ES series, but I agree
> it would still complicate things. It's simpler to just increase
> BOOT_PGT_SIZE and make it unconditional (i.e. bump it to say 32 or 64
> even if !KASLR). It's @nobits anyway so it would not increase the size
> of the bzImage, just require a slightly larger memory allocation by the
> bootloader.

I guess it's fine. But I'm worried we leave the picture in the same
fragile state. We still rely on the magic number.

--
Kirill A. Shutemov