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] 2MB page PV guest support clarification

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] 2MB page PV guest support clarification
From: Dave McCracken <dcm@xxxxxxxx>
Date: Mon, 2 Mar 2009 07:45:29 -0600
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, "Mick.Jordan@xxxxxxx" <Mick.Jordan@xxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Mon, 02 Mar 2009 05:46:00 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C5CECC86.397A%keir.fraser@xxxxxxxxxxxxx>
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: <C5CECC86.397A%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.9
On Saturday 28 February 2009, Keir Fraser wrote:
> On 28/02/2009 00:03, "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxxx> wrote:
> >> Its a work in progress, but there's nothing usable yet, as far as I
> >> know.
> >
> > Oracle have been working on PV 2MB page support, and I expect they'll
> > pitch in with an update.
> >
> > Over the last 18 months or so there have been a number of changes to
> > xen's PV PT handling that make support of 2MB pages significantly easier
> > than it was previously. However, the guest has to be careful how it uses
> > them as it can't alias any memory that may be used for storing pagetables
> > pages (that must be RO).
>
> Oracle already got their code checked in. You have to specify
> 'allowhugepage' on Xen's command line to enable it. It has limitations,
> such as save/restore doesn't work.

I am the person at Oracle working on PV guest support for 2MB pages.  I did 
get an initial patch accepted into the Xen hypervisor that enables basic 2MB 
page support.  As Keir said, it requires 'allowhugepage' on the Xen 
hypervisor command line.  It supports the basic ability to specify PSE in the 
page table, and takes care of the associated type and reference tracking for 
the mapped page(s).

What this patch does not do is make any guarantee about the alignment of the 
mapped page, which is a hardware requirement.  The solution I am working on 
for this is to create domains with 2MB pages.  The hypervisor already 
supports populating a domain with larger pages.  I am working on supporting 
2MB page domains at creation time and restore time.  This approach will also 
require that balloon drivers understand and work with 2MB pages.

Dave McCracken
Oracle Corp.

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