Re: [PATCH V2 2/2 update] kexec: split kexec_load syscall from kexec core code

2015-07-21 Thread Dave Young
On 07/22/15 at 10:19am, Dave Young wrote: > --- > > Update per comments from Vivek: > - Moved below functions which are used by kexec_load only to kexec.c > copy_user_segment_list() and kimage_alloc_init() > - add slab.h to kexec.c because kimage_alloc_init will call kfree > - drop unused decla

Re: [PATCH V2 2/2 update] kexec: split kexec_load syscall from kexec core code

2015-07-21 Thread Dave Young
Now there's two kexec load syscall, one is kexec_load another is 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