summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric DeVolder <eric.devolder@oracle.com>2023-09-27 14:11:31 -0400
committerSimon Horman <horms@kernel.org>2023-10-04 14:03:41 +0200
commitc36d3e8b2e9930b90b024429fa9c7a863a1a8a72 (patch)
tree6fedefa1bda3eb29013d6d148cfd1290f063ca23
parentbd0200c47c45dd420244b39ddabcecdab1fb9a8e (diff)
downloadkexec-tools-c36d3e8b2e9930b90b024429fa9c7a863a1a8a72.tar.gz
kexec: define KEXEC_UPDATE_ELFCOREHDR
The Linux kernel defines this flag to indicate that the kexec_load()'ed image is setup so that the kernel may directly modify the elfcorehdr (and not cause the purgatory digest checksum to fail) in response to CPU or memory hot un/plug and/or on/offline events. Define this flag to match/mirror the kernel flag. Signed-off-by: Eric DeVolder <eric.devolder@oracle.com> Signed-off-by: Simon Horman <horms@kernel.org>
-rw-r--r--kexec/kexec-syscall.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kexec/kexec-syscall.h b/kexec/kexec-syscall.h
index 1e2d12f8..2559bffb 100644
--- a/kexec/kexec-syscall.h
+++ b/kexec/kexec-syscall.h
@@ -112,6 +112,7 @@ static inline long kexec_file_load(int kernel_fd, int initrd_fd,
#define KEXEC_ON_CRASH 0x00000001
#define KEXEC_PRESERVE_CONTEXT 0x00000002
+#define KEXEC_UPDATE_ELFCOREHDR 0x00000004
#define KEXEC_ARCH_MASK 0xffff0000
/* Flags for kexec file based system call */