All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Kiper <daniel.kiper@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: EFI GetNextVariableName crashes when running under Xen, but not under Linux. efi-rs=0 works. No memmap issues
Date: Tue, 27 Jan 2015 21:18:58 +0100	[thread overview]
Message-ID: <20150127201858.GY3473@olila.local.net-space.pl> (raw)
In-Reply-To: <54C752460200007800059B8B@mail.emea.novell.com>

On Tue, Jan 27, 2015 at 07:54:30AM +0000, Jan Beulich wrote:
> (re-adding xen-devel)
>
> >>> On 27.01.15 at 01:32, <andrew.cooper3@citrix.com> wrote:
> > On 27/01/2015 00:02, Daniel Kiper wrote:
> >> On Mon, Jan 26, 2015 at 05:00:41PM +0000, Jan Beulich wrote:
> >>>>>> On 26.01.15 at 17:27, <konrad.wilk@oracle.com> wrote:
> >>>> Anyhow I am bit stuck:
> >>>>  1) It works with Linux, so what is it that Linux does that
> >>>>     Xen does not?
> >>> They map more than just what is marked for runtime use.
> >> IIRC, Linux maps boot services unconditionally (and states in comment
> >> that this is not in line with spec). We do not have such mechanism.
> >> Could we ease life of our users and add a boot option (e.g. map-efi-bs)
> >> which will enforce mapping of BS regions on platforms with buggy EFI/UEFI
> >> implementations? We should not penalize owners of such hardware because
> >> they are not guilty of these crazy bugs. We should educate firmware devs...
> >> Ehh... Please, do not curse at me. I remember discussion about EFI reset
> >> stuff which happened here a few days ago.
> >
> > While, in principle, I would like to take a tough stand against buggy
> > firmware, the truth is that firmware is always going to be buggy, and
> > many users are going to be in a position where their buggy firmware is
> > not going to be fixed by their vendors.  Much as I would prefer not to,
> > I feel that the only rational course of action to take is to behave like
> > Linux in cases like this.
> >
> > Therefore, I am a begrudgingly +1 "work around EFI firmware bugs",
> > despite it being the wrong pragmatic thing to do.
>
> And I agree that we will need to accept in such workarounds. But
> two remarks to whoever is going to implement it: We already have

I will add this to my TODO list and I will do it with current EFI
work (I am going to post it shortly after fixing two issues).

> the efi-rs workaround option - we should deprecate that one, and
> have a consolidated efi= one instead, covering the case here too.

OK.

> Plus the issue here is not just a matter of mapping BS memory, but
> also not making it available to the allocator. That in turn may yield

Yep, however, I thought that if a memory region is reserved in E820
then it is also automatically removed from allocator pool.

> problems with the conversion of the EFI memory map to E820 form,
> both because of the number of entries needed, and because that

In worst case we can try to allocate E820 map dynamically
or ignore this option completely if new map do not fit in
statically allocated E820 memory map region.

> conversion happens _before_ the normal command line parsing.

I am going to align EFI early command line parser to legacy
BIOS early boot path parser (I think about vga command line
option). So, I think that this EFI "bug" work could be based
on it.

Daniel

  parent reply	other threads:[~2015-01-27 20:19 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                           ` Is: kexec & EFI Was: " Konrad Rzeszutek Wilk
2015-01-30 14:40                             ` 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 [this message]
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=20150127201858.GY3473@olila.local.net-space.pl \
    --to=daniel.kiper@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@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.