From: George Dunlap <george.dunlap@eu.citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>,
Ian Campbell <ian.campbell@citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH 1/4] libxl: bump LIBXL_MAXMEM_CONSTANT to 2048
Date: Tue, 29 Oct 2013 12:29:02 +0000 [thread overview]
Message-ID: <526FAA0E.3080203@eu.citrix.com> (raw)
In-Reply-To: <20131029122421.GF5221@zion.uk.xensource.com>
On 10/29/2013 12:24 PM, Wei Liu wrote:
> On Tue, Oct 29, 2013 at 12:15:13PM +0000, Wei Liu wrote:
>> On Tue, Oct 29, 2013 at 12:03:25PM +0000, George Dunlap wrote:
>>> On Tue, Oct 15, 2013 at 5:40 PM, Wei Liu <wei.liu2@citrix.com> wrote:
>>>> When using OVMF we need to have 1MiB of memory in place for firmware.
>>>> Without this change we have:
>>>>
>>>> (XEN) HVM128: Loading OVMF ...
>>>> (XEN) page_alloc.c:1460:d128 Over-allocation for domain 128: 33025 > 33024
>>>> (XEN) memory.c:132:d128 Could not allocate order=0 extent: id=128 memflags=0 (0 of 1)
>>>>
>>>> This is not a fatal error as hvmloader will instead use low memory to
>>>> load OVMF, but it's better to eliminate such error.
>>>
>>> Wait -- hvmloader is actually allocating memory from Xen to load
>>> firmware stuff like this?
>>>
>>> That seems a bit weird... shouldn't it just use the memory it already
>>> has, instead of asking for more?
>>>
>>
>> See hvmloader/util.c:mem_hole_populate_ram(). It's used in building ACPI
>> info area and allocating ram to load OVMF firmware volume.
>>
>> Are you suggesting we change the behavior of hvmloader?
>>
>
> I think this boils down to the question whether firmware should be
> considered extra overhead, like shadow ram.
Hmm, I guess the firmware stays in memory even after the guest boots,
doesn't it.
In any case, at the moment if that's how the firmware is treated, then
it's probably best to just go along with it. If we want to change that,
we can consider doing that as a separate thing for the next release.
The name of this constant could use some change too -- it should be
"LIBXL_MEMORY_SLACK" or something like that, perhaps with a comment to
indicate what the slack is used for. But that's not necessary for this
patch series either, I don't think.
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
next prev parent reply other threads:[~2013-10-29 12:29 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-15 16:40 [PATCH 0/4] Reintroduce OVMF support Wei Liu
2013-10-15 16:40 ` [PATCH 1/4] libxl: bump LIBXL_MAXMEM_CONSTANT to 2048 Wei Liu
2013-10-29 12:03 ` George Dunlap
2013-10-29 12:15 ` Wei Liu
2013-10-29 12:24 ` Wei Liu
2013-10-29 12:29 ` George Dunlap [this message]
2013-10-29 12:35 ` Wei Liu
2013-10-15 16:40 ` [PATCH 2/4] tools: clone ovmf to ovmf-dir directory Wei Liu
2013-10-16 9:58 ` Jan Beulich
2013-10-16 12:34 ` Wei Liu
2013-10-15 16:40 ` [PATCH 3/4] tools: support system supplied ovmf binary Wei Liu
2013-10-15 16:40 ` [PATCH 4/4] tools: Enable OVMF build by default Wei Liu
2013-10-16 10:02 ` Jan Beulich
2013-10-16 10:37 ` Ian Campbell
2013-10-16 11:38 ` Wei Liu
2013-10-16 12:53 ` Ian Campbell
2013-10-16 13:00 ` Wei Liu
2013-10-16 10:03 ` [PATCH 0/4] Reintroduce OVMF support Fabio Fantoni
2013-10-16 12:51 ` Wei Liu
2013-10-16 14:13 ` Fabio Fantoni
2013-10-16 15:00 ` Wei Liu
2013-10-16 15:17 ` Ian Campbell
2013-10-17 9:13 ` Fabio Fantoni
2013-10-17 9:27 ` Ian Campbell
2013-10-16 12:52 ` David Vrabel
2013-10-16 12:59 ` Ian Campbell
2013-10-16 13:10 ` Wei Liu
2013-10-28 10:53 ` Fabio Fantoni
2013-10-28 11:32 ` Wei Liu
2013-10-28 12:10 ` Wei Liu
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=526FAA0E.3080203@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).