linux/kernel/liveupdate
Pratyush Yadav (Google) 3ab43ce410 kho: allow early-boot usage of the KHO radix tree
The KHO radix tree allocates memory for table pages from the buddy
allocator using get_zeroed_page(). This is not available in early boot
when memblock is still active.

Using the radix tree in early boot is useful for KHO to track metadata
about its memory. One such example is for tracking free blocks for
memory allocation when scratch runs out of space. This feature will be
added in the following commits.

Add kho_radix_{alloc,free}_node() which allocate and free the table
pages. They use slab_is_available() to decide which allocator to use.
While slab_is_available() indicates availability of the slab allocator,
it gets initialized right after buddy so it serves the same practical
purpose.

Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Signed-off-by: Pratyush Yadav (Google) <pratyush@kernel.org>
Link: https://patch.msgid.link/20260801084833.1897543-11-pratyush@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
2026-08-04 09:20:11 +03:00
..
Kconfig kho: make preserved pages compatible with deferred struct page init 2026-06-01 02:31:37 +03:00
kexec_handover_debug.c
kexec_handover_debugfs.c kho: fix kho_in_debugfs_init() to handle non-FDT blobs 2026-04-18 00:10:48 -07:00
kexec_handover_internal.h kho: rename fdt parameter to blob in kho_add/remove_subtree() 2026-04-18 00:10:48 -07:00
kexec_handover.c kho: allow early-boot usage of the KHO radix tree 2026-08-04 09:20:11 +03:00
kho_block.c kho: add support for linked-block serialization 2026-06-03 21:15:46 +03:00
luo_core.c liveupdate: defer session block allocation and physical address setting 2026-06-03 21:15:46 +03:00
luo_file.c liveupdate: Remove limit on the number of files per session 2026-06-03 21:15:46 +03:00
luo_flb.c liveupdate: centralize state management into struct luo_ser 2026-06-03 21:15:45 +03:00
luo_internal.h liveupdate: Remove limit on the number of files per session 2026-06-03 21:15:46 +03:00
luo_session.c liveupdate: fix GET_NAME ioctl argument validation 2026-07-16 09:25:30 +03:00
Makefile kho: add support for linked-block serialization 2026-06-03 21:15:46 +03:00