Re: [PATCH v7 13/18] x86/e820: temporarily enable KHO scratch for memory below 1M
From: Dave Hansen
Date: Fri May 02 2025 - 14:39:51 EST
On 5/1/25 15:54, Changyuan Lyu wrote:
> From: Alexander Graf <graf@xxxxxxxxxx>
>
> KHO kernels are special and use only scratch memory for memblock
> allocations, but memory below 1M is ignored by kernel after early boot
> and cannot be naturally marked as scratch.
>
> To allow allocation of the real-mode trampoline and a few (if any) other
> very early allocations from below 1M forcibly mark the memory below 1M
> as scratch.
>
> After real mode trampoline is allocated, clear that scratch marking.
It's much more clear now, thanks!
Acked-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>