]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kho: relocate vmalloc preservation structure to KHO ABI header
authorJason Miu <jasonmiu@google.com>
Mon, 5 Jan 2026 16:58:38 +0000 (18:58 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Jan 2026 03:07:12 +0000 (19:07 -0800)
commitac2d8102c4b88713a8fa371d5d802fcff131d6ac
treebbda04b00ee45d65b2510824d86de899faa2a9b9
parent5e1ea1e27b6ff237122ac6cb30e0b8ea4618f75f
kho: relocate vmalloc preservation structure to KHO ABI header

The `struct kho_vmalloc` defines the in-memory layout for preserving
vmalloc regions across kexec.  This layout is a contract between kernels
and part of the KHO ABI.

To reflect this relationship, the related structs and helper macros are
relocated to the ABI header, `include/linux/kho/abi/kexec_handover.h`.
This move places the structure's definition under the protection of the
KHO_FDT_COMPATIBLE version string.

The structure and its components are now also documented within the ABI
header to describe the contract and prevent ABI breaks.

[rppt@kernel.org: update comment, per Pratyush]
Link: https://lkml.kernel.org/r/aW_Mqp6HcqLwQImS@kernel.org
Link: https://lkml.kernel.org/r/20260105165839.285270-6-rppt@kernel.org
Signed-off-by: Jason Miu <jasonmiu@google.com>
Co-developed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Alexander Graf <graf@amazon.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/core-api/kho/abi.rst
include/linux/kexec_handover.h
include/linux/kho/abi/kexec_handover.h
include/linux/kho/abi/memfd.h
kernel/liveupdate/kexec_handover.c
lib/test_kho.c