aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorSteven Chen <[email protected]>2025-04-21 22:25:09 +0000
committerMimi Zohar <[email protected]>2025-04-29 19:54:53 +0000
commit0091d9241ea24c5275be4a3e5a032862fd9de9ec (patch)
treec9bc30f0ff6c9aeeca8ea1479e0c077bfdd5c239 /rust/helpers/platform.c
parentima: define and call ima_alloc_kexec_file_buf() (diff)
downloadkernel-0091d9241ea24c5275be4a3e5a032862fd9de9ec.tar.gz
kernel-0091d9241ea24c5275be4a3e5a032862fd9de9ec.zip
kexec: define functions to map and unmap segments
Implement kimage_map_segment() to enable IMA to map the measurement log list to the kimage structure during the kexec 'load' stage. This function gathers the source pages within the specified address range, and maps them to a contiguous virtual address range. This is a preparation for later usage. Implement kimage_unmap_segment() for unmapping segments using vunmap(). Cc: Eric Biederman <[email protected]> Cc: Baoquan He <[email protected]> Cc: Vivek Goyal <[email protected]> Cc: Dave Young <[email protected]> Co-developed-by: Tushar Sugandhi <[email protected]> Signed-off-by: Tushar Sugandhi <[email protected]> Signed-off-by: Steven Chen <[email protected]> Acked-by: Baoquan He <[email protected]> Tested-by: Stefan Berger <[email protected]> # ppc64/kvm Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions