From: "Jan Beulich" Subject: Re: [PATCH 1/1] Xen PV support for hugepages Date: Thu, 06 Nov 2008 14:04:37 +0000 Message-ID: <49130785.76E4.0078.0@novell.com> References: <20081104154149.21144.75675.sendpatchset@magnum.int.mccr.org> <4911C63E.76E4.0078.0@novell.com> <200811060744.57275.dcm@mccr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200811060744.57275.dcm@mccr.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dave McCracken Cc: xen-devel@lists.xensource.com, Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> Dave McCracken 06.11.08 14:44 >>> >> Finally, no longer hiding X86_FEATURE_PSE from the guest seems rather >> risky: I'm pretty sure the pv-ops kernel relies on this flag being = clear - >> when set, it would blindly (i.e. without ensuring the underlying memory = is >> contiguous and suitably aligned) try to use 2Mb mappings for e.g. the = 1:1 >> mapping. I would think this capability ought to be propagated by = another >> means. Likewise I'm uncertain about letting X86_CR4_PSE shine through. >> >> And a general question: How is a trivial DomU going to be able to make >> use of this, without being permitted to allocate non-order-zero chunks = of >> memory? > >This is the point of having hugepages a command line option. It should = only=20 >be turned on if you intend to run guests who enforce the alignment rules. = =20 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. Jan