Dave Young 2965faa5e0 kexec: split kexec_load syscall from kexec core code
There are two kexec load syscalls, kexec_load another and kexec_file_load.
 kexec_file_load has been splited as kernel/kexec_file.c.  In this patch I
split kexec_load syscall code to kernel/kexec.c.

And add a new kconfig option KEXEC_CORE, so we can disable kexec_load and
use kexec_file_load only, or vice verse.

The original requirement is from Ted Ts'o, he want kexec kernel signature
being checked with CONFIG_KEXEC_VERIFY_SIG enabled.  But kexec-tools use
kexec_load syscall can bypass the checking.

Vivek Goyal proposed to create a common kconfig option so user can compile
in only one syscall for loading kexec kernel.  KEXEC/KEXEC_FILE selects
KEXEC_CORE so that old config files still work.

Because there's general code need CONFIG_KEXEC_CORE, so I updated all the
architecture Kconfig with a new option KEXEC_CORE, and let KEXEC selects
KEXEC_CORE in arch Kconfig.  Also updated general kernel code with to
kexec_load syscall.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Dave Young <dyoung@redhat.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Petr Tesarik <ptesarik@suse.cz>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Josh Boyer <jwboyer@fedoraproject.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-09-10 13:29:01 -07:00
..
2015-09-01 13:00:04 -07:00
2015-06-25 11:49:31 +03:00
2015-09-04 11:46:02 -07:00
2015-09-09 08:33:31 -07:00
2015-09-09 08:33:31 -07:00
2015-06-03 14:13:41 +09:00
2015-09-08 16:33:16 -07:00
2015-09-01 13:00:04 -07:00
2015-09-09 08:33:31 -07:00
2015-05-13 12:04:55 -05:00
2015-03-25 20:28:11 -04:00
2015-08-03 12:01:54 -04:00
2015-08-06 16:17:25 -04:00
2015-06-01 14:35:56 -06:00
2015-09-08 14:35:59 -07:00
2015-09-01 15:52:41 +02:00
2015-09-04 16:54:41 -07:00
2015-02-12 18:54:15 -08:00
2015-09-08 15:35:28 -07:00
2014-12-19 22:55:06 +01:00
2015-01-21 19:21:30 +01:00
2015-08-20 10:20:11 +03:00
2014-12-31 13:06:50 -05:00
2015-06-24 17:49:45 -07:00
2015-07-17 08:41:53 -06:00
2015-05-12 10:46:53 +02:00
2015-06-01 14:33:35 +02:00
2015-06-19 15:18:28 +02:00
2015-09-08 15:35:28 -07:00
2015-09-08 15:35:28 -07:00
2015-03-16 21:45:54 +11:00
2015-05-05 13:40:42 -06:00
2015-08-27 19:40:58 -04:00
2015-08-06 00:14:59 +02:00
2015-06-25 12:06:45 +02:00
2015-07-28 08:50:42 +01:00
2015-04-29 17:17:17 -05:00
2015-01-04 23:11:43 -05:00
2015-04-14 16:49:05 -07:00
2015-06-24 17:49:41 -07:00
2015-09-08 17:52:23 -07:00
2015-09-08 14:35:59 -07:00
2015-07-21 10:39:05 -07:00
2015-06-25 04:20:04 -04:00
2015-05-09 22:15:31 -04:00
2015-08-17 13:32:56 -05:00
2015-07-04 14:04:44 -04:00
2015-08-18 11:56:13 -06:00
2015-07-01 19:40:18 -07:00
2015-03-11 17:56:28 -04:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-08 15:35:28 -07:00
2015-04-12 21:03:31 +02:00
2015-01-25 23:17:28 -05:00
2015-06-19 01:18:14 +02:00
2015-06-12 11:36:30 +02:00
2015-06-10 19:14:04 +08:00
2015-05-27 12:58:04 -07:00
2015-05-26 15:23:23 +02:00
2015-06-25 01:13:43 +02:00
2015-02-13 21:21:41 -08:00
2015-04-11 15:53:35 -04:00
2015-06-25 17:00:40 -07:00
2015-09-04 16:54:41 -07:00
2015-06-25 17:00:39 -07:00
2015-08-17 11:25:28 -07:00
2015-07-22 15:27:29 -07:00
2015-08-28 16:27:27 -07:00
2015-04-11 22:29:44 -04:00
2015-04-14 18:06:47 -07:00
2015-06-12 17:26:57 -07:00
2015-03-24 09:48:14 -07:00
2015-09-08 15:35:28 -07:00
2015-09-10 13:29:01 -07:00