[PATCH 11/12] kho: return virtual address of mem_map
Mike Rapoport
rppt at kernel.org
Mon May 11 05:13:00 PDT 2026
On Wed, Apr 29, 2026 at 03:39:13PM +0200, Pratyush Yadav wrote:
> From: "Pratyush Yadav (Google)" <pratyush at kernel.org>
>
> There are currently 3 callers of kho_get_mem_map_phys(). Two of them,
> kho_mem_retrieve() and kho_extend_scratch() need the virtual address.
> The third, kho_populate() doesn't care. Make things simpler by
> directly returning the virtual address. Rename kho_get_mem_map_phys() to
> kho_get_mem_map() to accurately reflect what it returns.
This should be moved earlier, before replacing open-coded get_mem_map()
with a call to kho_get_mem_map_phys().
> Signed-off-by: Pratyush Yadav (Google) <pratyush at kernel.org>
> ---
> kernel/liveupdate/kexec_handover.c | 28 +++++++++++++++-------------
> 1 file changed, 15 insertions(+), 13 deletions(-)
--
Sincerely yours,
Mike.
More information about the kexec
mailing list