Re: [RFC PATCH v2 1/2] kho: Introduce a helper to init unsplit pages

From: Samiullah Khawaja

Date: Mon Jul 13 2026 - 17:26:54 EST


On Mon, Jul 13, 2026 at 08:49:34PM +0000, Pranjal Shrivastava wrote:
The current KHO restoration logic assumes all multi-page blocks are
split into independent 4KB pages. Break out a helper to prepare for
supporting high-order non-compound pages.

Extract kho_init_unsplit_pages() to handle the refcount pattern
where only the head page is refcounted. Use the helper for folio
restoration that requires a similar refcount logic.

Signed-off-by: Pranjal Shrivastava <praan@xxxxxxxxxx>
---
kernel/liveupdate/kexec_handover.c | 29 +++++++++++++++++++----------
1 file changed, 19 insertions(+), 10 deletions(-)


Reviewed-by: Samiullah Khawaja <skhawaja@xxxxxxxxxx>