[PATCH v3 2/4] memblock: rename KHO_SCRATCH to KHO_NOPRSRV

sashiko-bot at kernel.org sashiko-bot at kernel.org
Mon Sep 21 21:19:16 PDT 2026


> From: "Pratyush Yadav (Google)" <pratyush at kernel.org>
> 
> The term "KHO scratch" is vague. It does not accurately describe what
> the memory is for. Generally, scratch is for things that don't contain
> anything useful. This is not true.
> 
> For memblock, KHO_SCRATCH is the _only_ useful memory during a KHO boot.
> It is memory passed by the previous kernel that is guaranteed to have no
> preserved pages, and so is the only thing safe to allocate from early in
> boot.
> 
> In addition, KHO now has the ability to discover other "scratch" areas.
> These aren't directly passed by the previous kernel. Instead, they are
> found by searching the KHO preserved memory map.
> 
> Memblock does not care about the difference between the two. From
> memblock's perspective, both are memory areas with no preservations and
> so they are safe to allocate from before KHO fully initializes.
> 
> Rename MEMBLOCK_KHO_SCRATCH to MEMBLOCK_KHO_NOPRSRV. This name clearly
> shows what the memory is for from memblock's perspective. Update
> memblock functions and comments that refer to scratch to use noprsrv.
> 
> There are no functional changes apart from the flag name change in
> debugfs.
> 
> Signed-off-by: Pratyush Yadav (Google) <pratyush at kernel.org>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260922041321.233986-1-pratyush@kernel.org?part=2




More information about the kexec mailing list