[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 2/2] efi/boot: Don't free ebmalloc area at all



On Wed, Mar 01, 2017 at 01:47:21AM -0700, Jan Beulich wrote:
> >>> On 01.03.17 at 09:20, <daniel.kiper@xxxxxxxxxx> wrote:

[...]

> > UEFI ver. 2.6, p. 154: In general, UEFI OS loaders and UEFI applications 
> > should
> > allocate memory (and pool) of type EfiLoaderData. UEFI boot service drivers 
> > must
> > allocate memory (and pool) of type EfiBootServicesData. UREFI runtime 
> > drivers
> > should allocate memory (and pool) of type EfiRuntimeServicesData (although 
> > such
> > allocation can only be made during boot services time).
>
> Note the "In general ... should ...", as opposed to the "must" later on.
> The situation here simply falls outside of the general case, and there's
> a reason the spec isn't strict here. ARM, btw., already has such a use
> in efi_arch_handle_cmdline().

Yes, I see that. And that is why I say "not nice" not fundamentally wrong.

Daniel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.