Skip to content

kexec: Introduce CONFIG_KEXEC_FILE for new syscall

Vivek Goyal kexec lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kexec: Create a new config option CONFIG_KEXEC_FILE for new syscallarch/x86/Kbuild arch/x86/Kconfig arch/x86/Makefile +5 more+42 -201 reply
2/2kexec: Remove CONFIG_KEXEC dependency on cryptoarch/arm/Kconfig arch/ia64/Kconfig arch/m68k/Kconfig +5 more+0 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 7 lines
1.9.0


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec