Currently, kernel has supported the kexec_file_load() syscall on s390x, so I follow this commit: 6a20bd54473e ("kdump-lib: switch to the kexec_file_load() syscall on x86_64 by default")
And also enable the kexec_file_load() syscall for kdump on s390x by default.
But for the arm64, only add kdump sysconfig option and disable to use the kexec_file_load() by default. In the future, also will enable it once kernel is ready.
Signed-off-by: Lianbo Jiang lijiang@redhat.com --- kdump.sysconfig.aarch64 | 6 ++++++ kdump.sysconfig.s390x | 6 ++++++ 2 files changed, 12 insertions(+)
diff --git a/kdump.sysconfig.aarch64 b/kdump.sysconfig.aarch64 index d5d762436eca..fc383049b925 100644 --- a/kdump.sysconfig.aarch64 +++ b/kdump.sysconfig.aarch64 @@ -35,3 +35,9 @@ KEXEC_ARGS=""
#What is the image type used for kdump KDUMP_IMG="vmlinuz" + +# Add kdump sysconfig option to use the kexec_file_load() syscall +# +# Here, the "on" is the only valid value to enable the kexec file load and +# anything else is equal to the "off"(disable). +KDUMP_FILE_LOAD="off" diff --git a/kdump.sysconfig.s390x b/kdump.sysconfig.s390x index abd45a2f332d..75ff2a25f37b 100644 --- a/kdump.sysconfig.s390x +++ b/kdump.sysconfig.s390x @@ -41,3 +41,9 @@ KDUMP_IMG="vmlinuz"
#What is the images extension. Relocatable kernels don't have one KDUMP_IMG_EXT="" + +# Using kexec file based syscall by default +# +# Here, the "on" is the only valid value to enable the kexec file load and +# anything else is equal to the "off"(disable). +KDUMP_FILE_LOAD="on"