Re: [PATCH v2 4/6] kexec_file: Add mechanism to update kexec segments.

2016-08-16 Thread Thiago Jung Bauermann
faster. Good idea. The patch below implements your suggestion. This has a consequence for patch 5/6 in this series, because it makes this code be used in the path of the kexec_file_load and kexec_load syscalls. In the latter case, there's a call to copy_from_user and thus kmap_atomic c

Re: [PATCH v2 4/6] kexec_file: Add mechanism to update kexec segments.

2016-08-15 Thread Andrew Morton
On Sat, 13 Aug 2016 00:18:23 -0300 Thiago Jung Bauermann wrote: > kexec_update_segment allows a given segment in kexec_image to have > its contents updated. This is useful if the current kernel wants to > send information to the next kernel that is up-to-date at the time of > reboot. > > ... >

[PATCH v2 4/6] kexec_file: Add mechanism to update kexec segments.

2016-08-12 Thread Thiago Jung Bauermann
kexec_update_segment allows a given segment in kexec_image to have its contents updated. This is useful if the current kernel wants to send information to the next kernel that is up-to-date at the time of reboot. Signed-off-by: Thiago Jung Bauermann --- include/linux/kexec.h | 2 ++ kernel/kexe