From: Dave McCracken Subject: Re: Design question for PV superpage support Date: Mon, 2 Mar 2009 12:00:09 -0600 Message-ID: <200903021200.09999.dcm@mccr.org> References: <200903020754.23534.dcm@mccr.org> <49AC0C96.7070608@Sun.COM> <49AC1B22.50307@Sun.COM> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <49AC1B22.50307@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 Cc: Xen Developers List List-Id: xen-devel@lists.xenproject.org On Monday 02 March 2009, Mick Jordan wrote: > On 03/02/09 08:43, Mick Jordan wrote: > > On 03/02/09 05:54, Dave McCracken 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. > > I'm assuming that this means that everything is upgraded from 4K to 2MB. > E.g. pfn 0 =3D 0, pfn 1 =3D 2MB., etc., and the mfn<->pfn maps also. No, actually, it doesn't do that. The hypervisor allocates 2M pages, then= =20 expands them into 4K pages for the mfn<->pfn maps, etc. The only effective difference is that any given 2M-aligned range of pfns is= =20 guaranteed to map to a contiguous 2M-aligned range of mfns. Therefore the= =20 guest can safely allocate 2M pages. Dave McCracken Oracle Corp.