From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ew0my-0006iH-Ba for kexec@lists.infradead.org; Wed, 14 Mar 2018 07:25:34 +0000 Date: Wed, 14 Mar 2018 08:25:19 +0100 From: Michal =?UTF-8?B?U3VjaMOhbmVr?= Subject: Re: [PATCH v4 5/5] kexec: document -s, -c and -a options. Message-ID: <20180314082519.0fcca316@naga.suse.cz> In-Reply-To: <20180314034130.GA2039@dhcp-128-65.nay.redhat.com> References: <20180302091706.GA15374@dhcp-128-65.nay.redhat.com> <6a8aa85dbaa781348890362aa2d8589c91b8b458.1520342150.git.msuchanek@suse.de> <20180314034130.GA2039@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Dave Young Cc: Petr Tesarik , horms@verge.net.au, kexec@lists.infradead.org, Tony Jones On Wed, 14 Mar 2018 11:41:30 +0800 Dave Young wrote: > On 03/06/18 at 02:15pm, Michal Suchanek wrote: > > Signed-off-by: Michal Suchanek > > --- > > kexec/kexec.8 | 15 +++++++++++++++ > > 1 file changed, 15 insertions(+) > > > > diff --git a/kexec/kexec.8 b/kexec/kexec.8 > > index e0131b4ea827..b3543db3f413 100644 > > --- a/kexec/kexec.8 > > +++ b/kexec/kexec.8 > > @@ -144,6 +144,21 @@ Load the new kernel for use on panic. > > Specify that the new kernel is of this > > .I type. > > .TP > > +.BI \-s\ (\-\-kexec-file-syscall) > > +Specify that the new KEXEC_FILE_LOAD syscall should be used > > exclusively. > > Maybe better to be simple like below: > "Use kexec_file_load syscall to load the new kernel." > > > > +.TP > > +.BI \-c\ (\-\-kexec-syscall) > > +Specify that the old KEXEC_LOAD syscall should be used exclusively > > (the default). > > similarly: > "Use kexec_load syscall to load the new kernel." > > > +.TP > > +.BI \-a\ (\-\-kexec-syscall-auto) > > +Try the new simpler KEXEC_FILE_LOAD syscall first and if it is not > > supported +fall back to the old KEXEC_LOAD interface. > > + > > +There is no one single interface that always works. > > KEXEC_FILE_LOAD is required +on systems that use locked-down secure > > boot to verify the kernel signature. +KEXEC_LOAD is required for > > some kernel image formats and on architectures that +do not support > > KEXEC_FILE_LOAD. > > It seems not good to say kexec_file_load is simpler and newer. Also > it is not a must for Secure Boot and locked down kernel only. So it > would be better to just simplify and use the first paragraph: > > "Try kexec_file_load syscall first and if it is not supported fall > back to the kexec_load syscall" There was a request for explanation so just the first paragraph will not do. What is it required for other than secure boot? Thanks Michal _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec