All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vivek Goyal <vgoyal@redhat.com>
To: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Cc: Simon Horman <horms@verge.net.au>,
	kexec@lists.infradead.org, ying.huang@intel.com
Subject: Re: kexec: load-preserve-context option on s390
Date: Tue, 4 Oct 2011 10:55:08 -0400	[thread overview]
Message-ID: <20111004145508.GC28306@redhat.com> (raw)
In-Reply-To: <1317737226.15474.16.camel@br98xy6r>

On Tue, Oct 04, 2011 at 04:07:06PM +0200, Michael Holzheu wrote:

[..]
> > Not sure why it is not working.
> 
> Hmmm, actually it is working. I somehow must have overlooked that
> before.
> 
> When I call kexec with --load-preserve-context - while not really
> knowing what I am doing here - I get the following:
> 
> # kexec -p /boot/vmlinuz --load-preserve-context --mem-min=0x10000
> --mem-max=0x100000000 
> 
> kexec_load failed: Invalid argument
> entry       = 0x10000 flags = 160002
> nr_segments = 2
> segment[0].buf   = 0x3fffc989010
> segment[0].bufsz = 330600
> segment[0].mem   = 0x10000
> segment[0].memsz = 331000
> segment[1].buf   = (nil)
> segment[1].bufsz = 0
> segment[1].mem   = 0x341000
> segment[1].memsz = 334be000
> 
> Perhaps a better error message could help here. But there are several
> possible reasons for getting EINVAL from kexec_load(). So probably we
> can't say "--load-preserve-context not supported by current kernel"
> every time we get EINVAL from kexec_load().
> 
> Not sure what to do here. Perhaps we just leave it as it is.

I am also not sure what can we do here. There are many cases where -EINVAL
can happen.

> 
> BTW: Is there any good documentation on KEXEC_PRESERVE_CONTEXT?

I am not aware of any and really wished there was one

Huang, is there any? Also is anybody using KEXEC_PRESERVE_CONTEXT? I have
not encountered any users yet.

Thanks
Vivek

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

      reply	other threads:[~2011-10-04 14:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-26 13:09 kexec: load-preserve-context option on s390 Michael Holzheu
2011-09-28 23:51 ` Simon Horman
2011-09-29 13:32   ` Vivek Goyal
2011-09-29 13:38     ` Michael Holzheu
2011-09-30 16:06       ` Vivek Goyal
2011-10-04 14:07         ` Michael Holzheu
2011-10-04 14:55           ` Vivek Goyal [this message]

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=20111004145508.GC28306@redhat.com \
    --to=vgoyal@redhat.com \
    --cc=holzheu@linux.vnet.ibm.com \
    --cc=horms@verge.net.au \
    --cc=kexec@lists.infradead.org \
    --cc=ying.huang@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.