[PATCH 04/12] kho: add callback for table pages
Pratyush Yadav
pratyush at kernel.org
Mon May 11 09:40:16 PDT 2026
On Mon, May 11 2026, Pratyush Yadav wrote:
> On Mon, May 11 2026, Mike Rapoport wrote:
>
>> On Wed, Apr 29, 2026 at 03:39:06PM +0200, Pratyush Yadav wrote:
>>> From: "Pratyush Yadav (Google)" <pratyush at kernel.org>
>>>
>>> The KHO memory preservation radix tree does not mark the table pages
>>> themselves as scratch. This is done to avoid a circular dependency where
>>> preserving a page can lead of allocating other preserved pages. This
>>> means any walker looking for free ranges of memory outside of scratch
>>> areas will ignore the table
>>>
>>> Add a table callback that is invoked for each table page. The callback
>>
>> A sentence why a table callback helps would be nice here :)
>
> The main reason is that a later patch will create a radix tree for short
> use and will need to destroy it afterwards.
This was meant for patch 7.
The reason for this one is that kho_extend_scratch() needs to exclude
table pages from its free ranges. Will add it.
>
> Will add that here.
>
>>
>>> is given the physical address of the table page.
>>>
>>> Signed-off-by: Pratyush Yadav (Google) <pratyush at kernel.org>
--
Regards,
Pratyush Yadav
More information about the kexec
mailing list