From: Dave McCracken Subject: Re: Design question for PV superpage support Date: Mon, 2 Mar 2009 11:29:42 -0600 Message-ID: <200903021129.42739.dcm@mccr.org> References: <200903020754.23534.dcm@mccr.org> <49AC0C96.7070608@Sun.COM> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <49AC0C96.7070608@Sun.COM> 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: Mick.Jordan@sun.com, Xen Developers List List-Id: xen-devel@lists.xenproject.org On Monday 02 March 2009, Mick Jordan wrote: > > The solution I am working on for how to support Linux hugepages (Xen > > superpages) involves creating domains made up entirely of superpages. = =A0I > > can create a working domain with superpages and am in the process of > > supporting it in save/restore. > > This wouldn't work too well for me in the case of thread stacks because > we need to map out parts of the stack and, although we want large > virtual stacks, we don't want do dedicate that much physical memory. Is > it really difficult to support mixed pages sizes in the general case, > e.g., save/restore etc.? What I am doing is populating the domain with 2M pages. The hypervisor fil= ls=20 in all its internal arrays as if they were regular 4K pages. The guest is= =20 then free to use mixed size pages. The only significant difference is that= =20 when a guest does allocate a 2M page, it's guaranteed to be properly aligne= d=20 at the machine page level so it can be mapped as a hugepage. All 4K page= =20 allocations will continue to work. Dave McCracken Oracle Corp.