[PATCH] kho: try to allocate contiguous memory for kexec segments
Michał Cłapiński
mclapinski at google.com
Mon Jun 1 12:52:46 PDT 2026
On Mon, Jun 1, 2026 at 9:30 PM Michal Clapinski <mclapinski at google.com> wrote:
>
> This allows us to skip relocations (and maybe checksum calculation
> in the future).
>
> kho_scratch is marked as MIGRATE_CMA but isn't actually given to the
> CMA, so it should only contain movable allocations, therefore this
> should always succeed.
Now that I think about it, this is only true on the primary boot. On
subsequent boots, kho scratch will contain memblock allocations
forever. I should have tested it more than once.
I have no idea how probable it is that I will find enough movable/free
memory in kho scratch for this to ever succeed. I'll give it more
thought.
More information about the kexec
mailing list