Commit 80f60e50 authored by Thiago Jung Bauermann's avatar Thiago Jung Bauermann Committed by Michael Ellerman

powerpc/kexec: Enable kexec_file_load() syscall

Define the Kconfig symbol so that the kexec_file_load() code can be
built, and wire up the syscall so that it can be called.
Signed-off-by: default avatarThiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 0d976313
...@@ -465,6 +465,19 @@ config KEXEC ...@@ -465,6 +465,19 @@ config KEXEC
interface is strongly in flux, so no good recommendation can be interface is strongly in flux, so no good recommendation can be
made. made.
config KEXEC_FILE
bool "kexec file based system call"
select KEXEC_CORE
select BUILD_BIN2C
depends on PPC64
depends on CRYPTO=y
depends on CRYPTO_SHA256=y
help
This is a new version of the kexec system call. This call is
file based and takes in file descriptors as system call arguments
for kernel and initramfs as opposed to a list of segments as is the
case for the older kexec call.
config RELOCATABLE config RELOCATABLE
bool "Build a relocatable kernel" bool "Build a relocatable kernel"
depends on (PPC64 && !COMPILE_TEST) || (FLATMEM && (44x || FSL_BOOKE)) depends on (PPC64 && !COMPILE_TEST) || (FLATMEM && (44x || FSL_BOOKE))
......
...@@ -386,3 +386,4 @@ SYSCALL(mlock2) ...@@ -386,3 +386,4 @@ SYSCALL(mlock2)
SYSCALL(copy_file_range) SYSCALL(copy_file_range)
COMPAT_SYS_SPU(preadv2) COMPAT_SYS_SPU(preadv2)
COMPAT_SYS_SPU(pwritev2) COMPAT_SYS_SPU(pwritev2)
SYSCALL(kexec_file_load)
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include <uapi/asm/unistd.h> #include <uapi/asm/unistd.h>
#define NR_syscalls 382 #define NR_syscalls 383
#define __NR__exit __NR_exit #define __NR__exit __NR_exit
......
...@@ -392,5 +392,6 @@ ...@@ -392,5 +392,6 @@
#define __NR_copy_file_range 379 #define __NR_copy_file_range 379
#define __NR_preadv2 380 #define __NR_preadv2 380
#define __NR_pwritev2 381 #define __NR_pwritev2 381
#define __NR_kexec_file_load 382
#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */ #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment