[PATCH 0/2] kexec: Introduce CONFIG_KEXEC_FILE for new syscall

From: Vivek Goyal
Date: Wed Aug 13 2014 - 10:43:54 EST


Hi,

This patch series introduces a new config option CONFIG_KEXEC_FILE for
the newly introduce kexec syscall (kexec_file_load()). Now all the
code for new syscall compiles only if CONFIG_KEXEC_FILE=y.

This new option currently is available only on x86_64. Other arches
can enable it as as when support is added.

There is some code in new syscall which currently requires -mcmodel=large
gcc option and that option is supported only in gcc 4.4 onwards. So
old users of gcc complained about it. Now old gcc users should be
fine as long as they don't set CONFIG_KEXEC_FILE=y.

As a new option is introduced, now CONFIG_KEXEC does not have to
select CRYPTO. So I have put in a patch to remove select CRYPTO=y
from all the arches.

Thanks
Vivek

Vivek Goyal (2):
kexec: Create a new config option CONFIG_KEXEC_FILE for new syscall
kexec: Remove CONFIG_KEXEC dependency on crypto

arch/arm/Kconfig | 2 --
arch/ia64/Kconfig | 2 --
arch/m68k/Kconfig | 2 --
arch/mips/Kconfig | 2 --
arch/powerpc/Kconfig | 2 --
arch/s390/Kconfig | 2 --
arch/sh/Kconfig | 2 --
arch/tile/Kconfig | 2 --
arch/x86/Kbuild | 4 +---
arch/x86/Kconfig | 18 ++++++++++++++----
arch/x86/Makefile | 5 +----
arch/x86/kernel/Makefile | 2 +-
arch/x86/kernel/crash.c | 6 ++----
arch/x86/kernel/machine_kexec_64.c | 11 +++++++++++
arch/x86/purgatory/Makefile | 5 +----
kernel/kexec.c | 11 +++++++++++
16 files changed, 42 insertions(+), 36 deletions(-)

--
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/