Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-27 Thread Michal Suchánek
On Tue, 27 Feb 2018 17:14:02 +0800 Dave Young wrote: > On 02/27/18 at 05:09pm, Dave Young wrote: > > On 02/27/18 at 09:39am, Petr Tesarik wrote: > > > On Tue, 27 Feb 2018 09:15:10 +0800 > > > Dave Young wrote: > > > > > > > On 02/26/18 at 01:08pm, Michal Suchánek wrote: > > > > > On Mon,

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-27 Thread Dave Young
On 02/27/18 at 05:09pm, Dave Young wrote: > On 02/27/18 at 09:39am, Petr Tesarik wrote: > > On Tue, 27 Feb 2018 09:15:10 +0800 > > Dave Young wrote: > > > > > On 02/26/18 at 01:08pm, Michal Suchánek wrote: > > > > On Mon, 26 Feb 2018 09:45:15 +0800 > > > > Dave Young wrote: > > > > > > > > >

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-27 Thread Dave Young
On 02/27/18 at 09:39am, Petr Tesarik wrote: > On Tue, 27 Feb 2018 09:15:10 +0800 > Dave Young wrote: > > > On 02/26/18 at 01:08pm, Michal Suchánek wrote: > > > On Mon, 26 Feb 2018 09:45:15 +0800 > > > Dave Young wrote: > > > > > > > On 02/24/18 at 05:34pm, Petr Tesarik wrote: > > > > > On S

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-27 Thread Petr Tesarik
On Tue, 27 Feb 2018 09:15:10 +0800 Dave Young wrote: > On 02/26/18 at 01:08pm, Michal Suchánek wrote: > > On Mon, 26 Feb 2018 09:45:15 +0800 > > Dave Young wrote: > > > > > On 02/24/18 at 05:34pm, Petr Tesarik wrote: > > > > On Sat, 24 Feb 2018 09:43:42 +0800 > > > > Dave Young wrote: > >

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-26 Thread Dave Young
On 02/26/18 at 01:08pm, Michal Suchánek wrote: > On Mon, 26 Feb 2018 09:45:15 +0800 > Dave Young wrote: > > > On 02/24/18 at 05:34pm, Petr Tesarik wrote: > > > On Sat, 24 Feb 2018 09:43:42 +0800 > > > Dave Young wrote: > > > > > > > On 02/23/18 at 09:29am, Petr Tesarik wrote: > > > > > Hi B

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-26 Thread Michal Suchánek
On Mon, 26 Feb 2018 09:45:15 +0800 Dave Young wrote: > On 02/24/18 at 05:34pm, Petr Tesarik wrote: > > On Sat, 24 Feb 2018 09:43:42 +0800 > > Dave Young wrote: > > > > > On 02/23/18 at 09:29am, Petr Tesarik wrote: > > > > Hi Baoquan, > > > > > > > > On Fri, 23 Feb 2018 07:20:43 +0800 > > >

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-25 Thread Dave Young
On 02/24/18 at 05:34pm, Petr Tesarik wrote: > On Sat, 24 Feb 2018 09:43:42 +0800 > Dave Young wrote: > > > On 02/23/18 at 09:29am, Petr Tesarik wrote: > > > Hi Baoquan, > > > > > > On Fri, 23 Feb 2018 07:20:43 +0800 > > > Baoquan He wrote: > > > > > > > Hi Michal, > > > > > > > > On 02/22/1

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-24 Thread Michal Suchánek
Hello, On Sat, 24 Feb 2018 10:19:09 +0800 Baoquan He wrote: > Hi Petr, > > On 02/23/18 at 09:29am, Petr Tesarik wrote: > > Hi Baoquan, > > > > On Fri, 23 Feb 2018 07:20:43 +0800 > > Baoquan He wrote: > > > > > Hi Michal, > > > > > > On 02/22/18 at 11:24pm, Michal Suchanek wrote: > > > >

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-24 Thread Petr Tesarik
On Sat, 24 Feb 2018 09:43:42 +0800 Dave Young wrote: > On 02/23/18 at 09:29am, Petr Tesarik wrote: > > Hi Baoquan, > > > > On Fri, 23 Feb 2018 07:20:43 +0800 > > Baoquan He wrote: > > > > > Hi Michal, > > > > > > On 02/22/18 at 11:24pm, Michal Suchanek wrote: > > > > The new KEXEC_FILE_LO

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-23 Thread Baoquan He
Hi Petr, On 02/23/18 at 09:29am, Petr Tesarik wrote: > Hi Baoquan, > > On Fri, 23 Feb 2018 07:20:43 +0800 > Baoquan He wrote: > > > Hi Michal, > > > > On 02/22/18 at 11:24pm, Michal Suchanek wrote: > > > The new KEXEC_FILE_LOAD is preferred in the case the platform supports > > > it because it

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-23 Thread Dave Young
On 02/23/18 at 09:29am, Petr Tesarik wrote: > Hi Baoquan, > > On Fri, 23 Feb 2018 07:20:43 +0800 > Baoquan He wrote: > > > Hi Michal, > > > > On 02/22/18 at 11:24pm, Michal Suchanek wrote: > > > The new KEXEC_FILE_LOAD is preferred in the case the platform supports > > > it because it allows ke

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-23 Thread Michal Suchánek
On Fri, 23 Feb 2018 07:20:43 +0800 Baoquan He wrote: > Hi Michal, > > On 02/22/18 at 11:24pm, Michal Suchanek wrote: > > The new KEXEC_FILE_LOAD is preferred in the case the platform > > supports it because it allows kexec in locked down secure boot mode. > > > > However, some platforms do not

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-23 Thread Petr Tesarik
Hi Baoquan, On Fri, 23 Feb 2018 07:20:43 +0800 Baoquan He wrote: > Hi Michal, > > On 02/22/18 at 11:24pm, Michal Suchanek wrote: > > The new KEXEC_FILE_LOAD is preferred in the case the platform supports > > it because it allows kexec in locked down secure boot mode. > > > > However, some plat

Re: [PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-22 Thread Baoquan He
Hi Michal, On 02/22/18 at 11:24pm, Michal Suchanek wrote: > The new KEXEC_FILE_LOAD is preferred in the case the platform supports > it because it allows kexec in locked down secure boot mode. > > However, some platforms do not support it so fall back to the old > syscall there. I didn't read co

[PATCH] kexec: do KEXEC_FILE_LOAD and fallback to KEXEC_LOAD if not supported.

2018-02-22 Thread Michal Suchanek
The new KEXEC_FILE_LOAD is preferred in the case the platform supports it because it allows kexec in locked down secure boot mode. However, some platforms do not support it so fall back to the old syscall there. Also provide an option to call the old syscall in case the new syscall fails with oth