Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Young <dyoung@redhat.com>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: hpa@zytor.com, kexec@lists.infradead.org,
	linux-kernel@vger.kernel.org, ebiederm@xmission.com
Subject: Re: kexec: reuse 1st kernel as kexec/kdump kernel?
Date: Wed, 8 Jan 2014 09:24:22 +0800	[thread overview]
Message-ID: <20140108012422.GA3819@dhcp-16-126.nay.redhat.com> (raw)
In-Reply-To: <20140107143723.GB1524@redhat.com>

On 01/07/14 at 09:37am, Vivek Goyal wrote:
> On Tue, Jan 07, 2014 at 10:34:06AM +0800, Dave Young wrote:
> > Hi, all
> > 
> > I have a question in mind: can we copy and prepare kexec kernel while
> > normal booting?
> > 
> > Just like below wild idea:
> > 
> > Kernel uncompress itself (assume kernel is relocatable)
> > -> copy the kernel image somewhere for backup
> >   -> reserver crashkernel memory
> >     -> copy the backuped kernel image/initrd image to reserved memory
> >       -> copy the purgatory which can be embedded in elf section?
> >         -> prepare the e820 memory ranges which is for kdump kernel
> > 
> > So userspace only need to call kexec reboot, kexec_load is not necessary.
> > The initrd for kdump should be different, but we can add some different logic
> > which will be only for kdump and it can be skipped in normal boot.
> > 
> > Is it doable?
> 
> What's the advantage of doing all this? Why are you trying to skip load
> step.

Hi, Vivek

It's just a thought that kernel already have all the information for kexecing so
we can save user space works. Rethinking about it it benefits more to kexec than
kdump. For kexec user he can reboot with kexec without any user space actions.
For kdump there's no much advantage though.

Thanks
Dave

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

  reply	other threads:[~2014-01-08  1:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-07  2:34 kexec: reuse 1st kernel as kexec/kdump kernel? Dave Young
2014-01-07 14:37 ` Vivek Goyal
2014-01-08  1:24   ` Dave Young [this message]
2014-01-08 14:41     ` Vivek Goyal

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=20140108012422.GA3819@dhcp-16-126.nay.redhat.com \
    --to=dyoung@redhat.com \
    --cc=ebiederm@xmission.com \
    --cc=hpa@zytor.com \
    --cc=kexec@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --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