Hi, all
Please ignore this patch, I will remove the change for arm64 because kernel
doesn't support the file load, although I only provided an option and disabled
by default, I worry about that users could enable it manually.
Will post again later. Thanks.
Lianbo
在 2020年04月08日 18:46, Lianbo Jiang 写道:
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(a)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"