WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Design question for PV superpage support

To: Mick.Jordan@xxxxxxx
Subject: Re: [Xen-devel] Design question for PV superpage support
From: Dave McCracken <dcm@xxxxxxxx>
Date: Mon, 2 Mar 2009 12:00:09 -0600
Cc: Xen Developers List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 02 Mar 2009 10:00:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49AC1B22.50307@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200903020754.23534.dcm@xxxxxxxx> <49AC0C96.7070608@xxxxxxx> <49AC1B22.50307@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.9
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.  I 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 = 0, pfn 1 = 2MB., etc., and the mfn<->pfn maps also.

No, actually, it doesn't do that.  The hypervisor allocates 2M pages, then 
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 
guaranteed to map to a contiguous 2M-aligned range of mfns.  Therefore the 
guest can safely allocate 2M pages.

Dave McCracken
Oracle Corp.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>