[PATCH v1 07/13] kho: Remove global preserved_mem_map and store state in FDT
Pratyush Yadav
pratyush at kernel.org
Fri Nov 14 09:11:39 PST 2025
On Fri, Nov 14 2025, Pasha Tatashin wrote:
> Currently, the serialized memory map is tracked via
> kho_out.preserved_mem_map and copied to the FDT during finalization.
> This double tracking is redundant.
>
> Remove preserved_mem_map from kho_out. Instead, maintain the physical
> address of the head chunk directly in the preserved-memory-map FDT
> property.
>
> Introduce kho_update_memory_map() to manage this property. This function
> handles:
> 1. Retrieving and freeing any existing serialized map (handling the
> abort/retry case).
> 2. Updating the FDT property with the new chunk address.
>
> This establishes the FDT as the single source of truth for the handover
> state.
>
> Signed-off-by: Pasha Tatashin <pasha.tatashin at soleen.com>
Reviewed-by: Pratyush Yadav <pratyush at kernel.org>
[...]
--
Regards,
Pratyush Yadav
More information about the kexec
mailing list