Exclude crash kernel memory in crash core to avoid duplication. Also move the size calculation (and the realloc if needed) into crash core.
And add support for crashkernel CMA reservation for arm64 and riscv. Changes in v4: - Move the size calculation (and the realloc if needed) into the generic crash. Changs in v3: - Exclude crash kernel memory in crash core as Mike suggested. - Add acked-by. Jinjie Ruan (3): crash: Exclude crash kernel memory in crash core arm64: kexec: Add support for crashkernel CMA reservation riscv: kexec: Add support for crashkernel CMA reservation .../admin-guide/kernel-parameters.txt | 16 +-- arch/arm64/kernel/machine_kexec_file.c | 47 +------- arch/arm64/mm/init.c | 5 +- arch/loongarch/kernel/machine_kexec_file.c | 45 +------ arch/powerpc/include/asm/kexec.h | 13 ++ arch/powerpc/kexec/crash.c | 52 ++++---- arch/powerpc/kexec/file_load_64.c | 17 +-- arch/powerpc/kexec/ranges.c | 18 +-- arch/riscv/include/asm/kexec.h | 10 ++ arch/riscv/kernel/machine_kexec_file.c | 39 +++--- arch/riscv/mm/init.c | 5 +- arch/x86/include/asm/kexec.h | 10 ++ arch/x86/kernel/crash.c | 104 ++-------------- include/linux/crash_core.h | 114 +++++++++++++++++- kernel/crash_core.c | 71 +++++++++-- 15 files changed, 290 insertions(+), 276 deletions(-) -- 2.34.1
