From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Dave McCracken <dcm@mccr.org>
Cc: xen-devel@lists.xensource.com, Keir Fraser <keir.fraser@eu.citrix.com>
Subject: Re: [PATCH 1/1] Xen PV support for hugepages
Date: Fri, 07 Nov 2008 10:07:27 -0800 [thread overview]
Message-ID: <491483DF.8010501@goop.org> (raw)
In-Reply-To: <200811070839.25658.dcm@mccr.org>
Dave McCracken wrote:
> On Thursday 06 November 2008, Jan Beulich wrote:
>
>>> This is the point of having hugepages a command line option. It should
>>> only be turned on if you intend to run guests who enforce the alignment
>>> rules.
>>>
>> You mean 'if you intend to run *only* guests ...', including dom0. Any
>> guest unaware of the connection of X86_FEATURE_PSE and the need to create
>> contiguous 2M chunks would fail, and any guest not having I/O memory
>> assigned would never manage to create such chunks.
>>
>
> Hmm... Sounds like a per-domain flag would be a good solution here. I'll look
> into it.
>
I think a guest should explicitly enable large page support via
something like vmassist. In other words:
* keep PSE clear - you are not implementing something similar to PSE
* export the ability to map large pages via a feature flag or something
* require guests to explicitly enable large page support
I'm sceptical about the value of this patch as it stands. We already
have a vast number of operating modes and combinations, and I think we
need to have a pretty high bar before adding any more. If this work
arranged things so that we could just set PSE - and thereby make
supporting it on the guest side much simpler - then I think the decision
to include it would be easier.
In practical terms, I think this means that we need to modify Xen and
the domain builder to *always* allocate memory to guests in 2M contig
chunks, and then sort out all the tricky details ;) In practice,
however, we would lose a lot of the benefit of doing this we'd get from
the native kernel, because all the RO pagetable mappings would chop up
the linear and kernel maps so much that we'd not get much chance to use
the 2M mappings. It would, however, make hugetlbfs work without much drama.
J
prev parent reply other threads:[~2008-11-07 18:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-04 15:41 [PATCH 1/1] Xen PV support for hugepages dcm
2008-11-05 10:59 ` Keir Fraser
2008-11-05 15:13 ` Jan Beulich
2008-11-06 13:44 ` Dave McCracken
2008-11-06 13:54 ` Keir Fraser
2008-11-06 14:04 ` Jan Beulich
2008-11-07 14:39 ` Dave McCracken
2008-11-07 18:07 ` Jeremy Fitzhardinge [this message]
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=491483DF.8010501@goop.org \
--to=jeremy@goop.org \
--cc=dcm@mccr.org \
--cc=keir.fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/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.