Re: [PATCH 2/9] kho: Make bootmem reservations visible to fleet monitoring
From: Chris Down
Date: Sat Nov 28 2026 - 13:28:12 EST
Hi Mike,
Mike Rapoport writes:
>> I can send patches for those separately if you agree that bootmem should be
>> counted in both.
>
>Yes, please :)
Will do.
>We'll need sysfs at some point to lift the requirement for debugfs mount.
>And I think it can live in /sys/kernel/kho and there we can have incoming
>and outgoing and the implementation can be in kernel/liveupdate/kho-sysfs.[ch]
That sounds good to me, and that way kexec_core.c doesn't need to know
about KHO's files at all. In v2 I'll move state, preserved_size and
restored_size from 6/9 and 7/9 to /sys/kernel/kho/incoming/.
Nothing in this series reports on the outgoing side, so I'll only add
incoming/ for now. The bootmem size stays out of sysfs, as Pasha asked.
>BTW, kexec_handover_debugfs.c was initially given the "full" name because
>it lived along kexec_* in kernel. These days I believe we can make it
>kho-debugfs.c
Pratyush's housekeeping series [1] renames it to kho_debugfs.c, so I'll
call the new file kho_sysfs.c to match.
>I promise to look at the rest of the series Really Soon :)
Thanks!
Chris
[1] https://lore.kernel.org/r/20261127122536.3708770-3-pratyush@xxxxxxxxxx