Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baoquan He <bhe@redhat.com>
To: joeyli <jlee@suse.com>
Cc: Simon Horman <horms@verge.net.au>,
	"Lee, Chun-Yi" <joeyli.kernel@gmail.com>,
	kexec@lists.infradead.org, Vivek Goyal <vgoyal@redhat.com>,
	Petr Tesarik <ptesarik@suse.com>
Subject: Re: [PATCH] kexec: Add option to fallback to old kexec syscall when kexec file based syscall failed
Date: Thu, 14 Jul 2016 22:12:05 +0800	[thread overview]
Message-ID: <20160714141205.GB9366@x1.redhat.com> (raw)
In-Reply-To: <20160714103510.GX11998@linux-rxt1.site>

On 07/14/16 at 06:35pm, joeyli wrote:
> Hi Baoquan, 
> 
> Thanks for your response!
> 
> On Thu, Jul 14, 2016 at 05:51:24PM +0800, Baoquan He wrote:
> > On 07/14/16 at 04:45pm, Lee, Chun-Yi wrote:
> > > This patch adds a new "--fallback-kexec" option to give a chance to
> > > fallback to old kexec syscall when file based kexec syscall operation
> > > failed.
> > > 
> > > This option works with --kexec-file-syscall to provide more flexible
> > > way to adapt to different kernels that those kernels built with
> > > different kexec syscall config or have different verification policy.
> > 
> > Usually distribuition system uses script to build a framework to
> > connect the kexec/kdump, makedumpfile utility chain. This can make user
> > execute a very simple script command to implement kexec load or kexec
> > jumping job. In this case script can do what you are trying to do.
> > 
> 
> Yes, the fallback function can be implemented by script. But a new kexec
> option is useful to the distro that it may not provides help scripts to
> user.
> 
> > Besides, have you actually met that kexec-file failed but old kexec
> > syscall works? I mean how did you test it? I am wondering when it will
> > happen.
> > 
> > Thanks
> > Baoquan
> >
> 

I understand, thanks for telling, Joey Lee.

However it seems not very necessary to me. So leave this to other
people, see if you can get support and an Acked-by.

Thanks
Baoquan

> The currently mainline kernel allows to set CONFIG_KEXEC or CONFIG_KEXEC_FILE
> individual. So if kexec found that the file based kexec syscall isn't
> available then this is a case to fallback to old kexec.
> 
> Another case is when KEXEC_VERIFY_SIG is set, The fallback function is more
> convenient to user to build his own kernel for using or testing. The kexec
> tool can try old syscall when verification failed.

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  reply	other threads:[~2016-07-14 14:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-14  8:45 [PATCH] kexec: Add option to fallback to old kexec syscall when kexec file based syscall failed Lee, Chun-Yi
2016-07-14  9:51 ` Baoquan He
2016-07-14 10:02   ` Baoquan He
2016-07-14 10:35   ` joeyli
2016-07-14 14:12     ` Baoquan He [this message]
2016-07-14 14:53 ` Vivek Goyal
2016-07-14 23:57   ` joeyli
2016-07-15  7:58     ` Petr Tesarik
2016-07-15 10:28       ` joeyli
2016-07-15 11:20         ` Petr Tesarik
2016-07-15 12:51       ` Vivek Goyal
2016-07-15 14:42         ` Petr Tesarik
2016-07-15 15:13           ` Vivek Goyal
2016-07-15 15:26             ` Petr Tesarik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160714141205.GB9366@x1.redhat.com \
    --to=bhe@redhat.com \
    --cc=horms@verge.net.au \
    --cc=jlee@suse.com \
    --cc=joeyli.kernel@gmail.com \
    --cc=kexec@lists.infradead.org \
    --cc=ptesarik@suse.com \
    --cc=vgoyal@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox