From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@suse.com>, david.vrabel@citrix.com
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Daniel Kiper <daniel.kiper@oracle.com>,
xen-devel <xen-devel@lists.xenproject.org>
Subject: Is: kexec & EFI Was: Re: EFI GetNextVariableName crashes when running under Xen, but not under Linux. efi-rs=0 works. No memmap issues
Date: Fri, 30 Jan 2015 09:17:27 -0500 [thread overview]
Message-ID: <20150130141727.GC4506@l.oracle.com> (raw)
In-Reply-To: <54CA1AEC020000780005AAD0@mail.emea.novell.com>
On Thu, Jan 29, 2015 at 10:35:08AM +0000, Jan Beulich wrote:
> >>> On 28.01.15 at 18:20, <konrad.wilk@oracle.com> wrote:
> > On Wed, Jan 28, 2015 at 04:56:02PM +0000, Jan Beulich wrote:
> >> >>> On 28.01.15 at 17:17, <daniel.kiper@oracle.com> wrote:
> >> > On Wed, Jan 28, 2015 at 11:03:19AM -0500, Konrad Rzeszutek Wilk wrote:
> >> >> I am not really sure of what the work-around should be in Xen except
> >> >> making SetVirtualAddressMap work..
> >> >
> >> > Hmmm... Crazy idea. IIRC, we use RS in 1:1 mapping. If we need to call
> >> > SetVirtualAddressMap() then force it to create 1:1 mapping. Is it
> >> > possible? Could you try it? I think you should play with code just
> >> > before SetVirtualAddressMap().
> >>
> >> Of course this is possible. The reason we don't call the function is
> >> kexec: How would the secondary kernel be able to make runtime
> >> calls if we already established some mapping? Remember that
> >> SetVirtualAddressMap() may not be called more than once...
> >
> > Linux does seem to have the code to deal with this, via bootparams.
> > See git 1fec0533693cd74f2d1a46edd29449cfee429df0
> > Author: Dave Young <dyoung@redhat.com>
> > Date: Fri Dec 20 18:02:19 2013 +0800
> >
> > x86/efi: Pass necessary EFI data for kexec via setup_data
> >
> > 456a29ddada79198c5965300e04103c40c481f62
> > Author: Dave Young <dyoung@redhat.com>
> > Date: Fri Dec 20 18:02:20 2013 +0800
> >
> > x86: Add xloadflags bit for EFI runtime support on kexec
>
> Compare the dates of these with that of the Xen commit(s) enabling
> EFI support. Plus - this protocol is absolutely Linux-centric afaict,
> whereas Xen's kexec interface/support should be as generic as
> possible.
<blinks> kexec is OS agnostic? I must have missed that. Either way
these two commits are something that the Xen kexec maintainer
should probably know about (CCing him).
>
> > ..that could be employed. The problem I had was that I tried to employ
> > SetVirtualAddressMap in the Xen code - but it did not work at all.
> >
> > Jan, do you want me to send you an serial log with a Xen code with
> > SetVirtualAddressMap executed -on a non-Lenovo machine to eliminate
> > the firmware issues?
>
> Not sure what that would be good for: The commented out code is
> there just for documentation purposes. It was never expected that
> you could simply enable it and expect it to work (albeit I _very_
> vaguely recall it having worked very early on during development of
> the EFI support code).
Aaah, so dead code.
>
> Considering how broken the EFI appears to be on that laptop, why
> don't you simply turn it off (just like is required on many other
> systems with too early versions of it - reportedly in some cases
> turning it on renders systems un-bootable, with it being very difficult
> to turn it back off; I'm supposedly even in possession of such a
> system, but guess what - I don't want to try it out).
Haha!
>
> Jan
>
next prev parent reply other threads:[~2015-01-30 14:17 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-26 16:27 EFI GetNextVariableName crashes when running under Xen, but not under Linux. efi-rs=0 works. No memmap issues Konrad Rzeszutek Wilk
2015-01-26 16:36 ` Andrew Cooper
2015-01-26 17:28 ` Konrad Rzeszutek Wilk
[not found] ` <54C680C90200007800059907@mail.emea.novell.com>
[not found] ` <20150127000247.GU3473@olila.local.net-space.pl>
[not found] ` <54C6DCB7.3060206@citrix.com>
2015-01-27 7:54 ` Jan Beulich
2015-01-27 14:26 ` Konrad Rzeszutek Wilk
2015-01-27 16:17 ` Jan Beulich
2015-01-27 18:20 ` Konrad Rzeszutek Wilk
2015-01-28 8:40 ` Jan Beulich
2015-01-28 16:03 ` Konrad Rzeszutek Wilk
2015-01-28 16:12 ` Konrad Rzeszutek Wilk
2015-01-28 16:17 ` Daniel Kiper
2015-01-28 16:56 ` Jan Beulich
2015-01-28 17:20 ` Konrad Rzeszutek Wilk
2015-01-29 10:35 ` Jan Beulich
2015-01-30 14:17 ` Konrad Rzeszutek Wilk [this message]
2015-01-30 14:40 ` Is: kexec & EFI Was: " David Vrabel
2015-01-30 14:52 ` Konrad Rzeszutek Wilk
2015-01-30 14:57 ` David Vrabel
2015-01-30 15:09 ` Daniel Kiper
2015-01-30 15:34 ` Jan Beulich
2015-01-30 16:24 ` Daniel Kiper
2015-01-30 16:41 ` Jan Beulich
2015-01-27 20:18 ` Daniel Kiper
2015-01-27 21:48 ` Konrad Rzeszutek Wilk
2015-01-28 8:43 ` Jan Beulich
2015-01-28 12:57 ` Daniel Kiper
2015-01-28 14:02 ` Jan Beulich
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=20150130141727.GC4506@l.oracle.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=daniel.kiper@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/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.