From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: roy.franz@linaro.org, xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH RFC] EFI: allow retry of ExitBootServices() call
Date: Mon, 17 Nov 2014 08:49:39 -0500 [thread overview]
Message-ID: <20141117134939.GB16549@laptop.dumpdata.com> (raw)
In-Reply-To: <546A07A502000078000486D0@mail.emea.novell.com>
On Mon, Nov 17, 2014 at 01:35:17PM +0000, Jan Beulich wrote:
> >>> On 14.11.14 at 16:32, <konrad.wilk@oracle.com> wrote:
> > On Fri, Nov 14, 2014 at 12:37:30PM +0000, Jan Beulich wrote:
> >> The specification is kind of vague under what conditions
> >> ExitBootServices() may legitimately fail, requiring the OS loader to
> >> retry:
> >>
> >> "If MapKey value is incorrect, ExitBootServices() returns
> >> EFI_INVALID_PARAMETER and GetMemoryMap() with ExitBootServices() must
> >> be called again. Firmware implementation may choose to do a partial
> >> shutdown of the boot services during the first call to
> >> ExitBootServices(). EFI OS loader should not make calls to any boot
> >> service function other then GetMemoryMap() after the first call to
> >> ExitBootServices()."
> >>
> >> While our code guarantees the map key to be valid, there are systems
> >> where a firmware internal notification sent while processing
> >> ExitBootServices() reportedly results in changes to the memory map.
> >
> > s/reportedly/in fact/
> >> In that case, make a best effort second try: Avoid any boot service
> >> calls other than the two named above, with the possible exception of
> >> error paths. Those aren't a problem, since if we end up needing to
> >> retry, we're hosed when something goes wrong as much as if we didn't
> >> make the retry attempt.
> >>
> >> For x86, a minimal adjustment to efi_arch_process_memory_map() is
> >> needed for it to cope with potentially being called a second time.
> >
> > Wow. Talk about timing. We saw this and were going to see
> > doing something similar.
>
> So what are your thoughts then regarding this patch going into 4.5?
Definitly should go in - and I would even say backport to earlier
versions of Xen.
> And for the LIST_POISON* override one?
Yes as well please.
>
> Jan
>
next prev parent reply other threads:[~2014-11-17 13:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-14 12:37 [PATCH RFC] EFI: allow retry of ExitBootServices() call Jan Beulich
2014-11-14 15:32 ` Konrad Rzeszutek Wilk
2014-11-14 16:28 ` Jan Beulich
2014-11-17 13:35 ` Jan Beulich
2014-11-17 13:49 ` Konrad Rzeszutek Wilk [this message]
2014-11-17 13:57 ` Jan Beulich
2014-11-14 23:17 ` Roy Franz
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=20141117134939.GB16549@laptop.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.com \
--cc=roy.franz@linaro.org \
--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.