riscv: kexec_file: Support loading Image binary file
authorSong Shuai <songshuaishuai@tinylab.org>
Wed, 9 Apr 2025 19:29:59 +0000 (21:29 +0200)
committerPalmer Dabbelt <palmer@dabbelt.com>
Thu, 5 Jun 2025 18:09:34 +0000 (11:09 -0700)
commit809a11eea8e8c80491e3ba3a286af25409c072d5
tree231aa14b6386fa35f866ec04d2cb6f390cfa276c
parent1df45f8a9fea5a7513bd1bad98604ce1fbefcaaf
riscv: kexec_file: Support loading Image binary file

This patch creates image_kexec_ops to load Image binary file
for kexec_file_load() syscall.

Signed-off-by: Song Shuai <songshuaishuai@tinylab.org>
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/r/20250409193004.643839-3-bjorn@kernel.org
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
arch/riscv/include/asm/image.h
arch/riscv/include/asm/kexec.h
arch/riscv/kernel/Makefile
arch/riscv/kernel/kexec_image.c [new file with mode: 0644]
arch/riscv/kernel/machine_kexec_file.c