[PATCH v2 8/9] kho: test: support read-only KHO mode in test_kho
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Sun Oct 25 10:57:05 PDT 2026
> test_kho currently depends on CONFIG_KEXEC_HANDOVER and restores
> preserved folios via phys_to_virt() and kho_restore_folio(), which
> prevents testing preserved KHO state when booted in read-only KHO mode.
>
> Allow CONFIG_TEST_KEXEC_HANDOVER to be enabled with
> CONFIG_KEXEC_HANDOVER_READONLY and update test_kho to verify preserved
> state when kho_is_ro() is active. In read-only mode, retrieve the test
> FDT subtree, map the FDT folio via kho_ro_map_folio(...,
> PAGE_KERNEL_RO), map the preserved vmalloc folio descriptor array via
> kho_ro_map_vmalloc(), verify each folio's preserved order in the KHO
> radix tree via kho_ro_lookup_folio_order(), map each folio via
> kho_ro_map_folio(), and verify the checksum over all preserved pages.
> Also guard kho_test_exit() when no outgoing test FDT was allocated.
>
> Signed-off-by: Pasha Tatashin <pasha.tatashin at soleen.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261025174017.3870481-1-pasha.tatashin@soleen.com?part=8
More information about the kexec
mailing list