From: Ian Campbell <Ian.Campbell@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Roy Franz <roy.franz@linaro.org>,
tim@xen.org, stefano.stabellini@citrix.com, fu.wei@linaro.org,
xen-devel@lists.xen.org
Subject: Re: [PATCH for-4.5] EFI: Fix efi_arch_allocate_mmap_buffer() to return new size
Date: Wed, 22 Oct 2014 11:42:50 +0100 [thread overview]
Message-ID: <1413974570.18118.3.camel@citrix.com> (raw)
In-Reply-To: <54479DF00200007800040F26@mail.emea.novell.com>
On Wed, 2014-10-22 at 11:07 +0100, Jan Beulich wrote:
> >>> On 22.10.14 at 06:18, <roy.franz@linaro.org> wrote:
> > --- a/xen/common/efi/boot.c
> > +++ b/xen/common/efi/boot.c
> > @@ -271,6 +271,9 @@ static void __init PrintErrMesg(const CHAR16 *mesg, EFI_STATUS ErrCode)
> > case EFI_COMPROMISED_DATA:
> > mesg = L"Compromised data";
> > break;
> > + case EFI_BUFFER_TOO_SMALL:
> > + mesg = L"Buffer too small";
> > + break;
>
> I don't really mind this change, but ...
>
> > @@ -1038,7 +1041,7 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE
> > *SystemTable)
> >
> > efi_bs->GetMemoryMap(&efi_memmap_size, NULL, &map_key,
> > &efi_mdesc_size, &mdesc_ver);
> > - efi_memmap = efi_arch_allocate_mmap_buffer(efi_memmap_size);
> > + efi_memmap = efi_arch_allocate_mmap_buffer(&efi_memmap_size);
> > if ( !efi_memmap )
> > blexit(L"Unable to allocate memory for EFI memory map");
>
> ... it would not have helped here, as you don't even get to see the
> error code here.
This patch came about because I was seeing:
Cannot obtain memory map: ErrCode: 0x8000000000000005
which I suppose is a different path. I don't think the allocation above
would have ever returned EFI_BUFFER_TOO_SMALL, would it?
Ian.
next prev parent reply other threads:[~2014-10-22 10:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-22 4:18 [PATCH for-4.5] EFI: Fix efi_arch_allocate_mmap_buffer() to return new size Roy Franz
2014-10-22 8:28 ` Ian Campbell
2014-10-22 10:07 ` Jan Beulich
2014-10-22 10:42 ` Ian Campbell [this message]
2014-10-22 18:01 ` 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=1413974570.18118.3.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=fu.wei@linaro.org \
--cc=roy.franz@linaro.org \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.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.