Re: [PATCH v7 13/18] x86/e820: temporarily enable KHO scratch for memory below 1M

Dave Hansen
2025-05-02T18:39:33Z

On 5/1/25 15:54, Changyuan Lyu wrote:
> From: Alexander Graf <graf@amazon.com>
>
> 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@linux.intel.com>