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] Re: [PATCH 2/2] Linux support for hugepages as a Xen PV

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Re: [PATCH 2/2] Linux support for hugepages as a Xen PV guest
From: Dave McCracken <dcm@xxxxxxxx>
Date: Wed, 15 Oct 2008 12:01:06 -0500
Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Wed, 15 Oct 2008 10:03:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200810101006.44389.dcm@xxxxxxxx>
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: <C515195F.1E0C5%keir.fraser@xxxxxxxxxxxxx> <200810101006.44389.dcm@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.9
On Friday 10 October 2008, Dave McCracken wrote:
> On Friday 10 October 2008, Keir Fraser wrote:
> > hugetlbfs should only be enabled at runtime if supported by the
> > hypervisor. Perhaps we can enable the PSE CPUID flag if the hypervisor
> > supports superpages?
>
> I'll look into it.

Opening the cover to this exposed some very interesting things on the Linux 
side.

For starters, Xen currently does remove PSE from the CPUID it returns to the 
guest.  I'll add some code to allow PSE when hugepages are enabled.

Second, in Linux for the x86_64 architecture the macro to check for PSE is 
hard-wired to always be true.

Third, hugepages in Linux makes no check whatsoever for the presence or 
absence of PSE.  It assumes it's there.

I'll look into the simplest way to make the various Linux parts obey the PSE 
flag properly.

Dave McCracken
Oracle Corp.

This is all for the Linux-xen-2.6.18 tree on xensource.

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