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: Xen-devel Digest, Vol 25, Issue 93

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>, PUCCETTI Armand <armand.puccetti@xxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: Xen-devel Digest, Vol 25, Issue 93
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Mon, 12 Mar 2007 16:23:23 +0000
Delivery-date: Mon, 12 Mar 2007 09:22:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B018E1A52@xxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdkwQgTMoNF2D7XSwCSADsblWep1wAAECQwAABeH3Q=
Thread-topic: [Xen-devel] Re: Xen-devel Digest, Vol 25, Issue 93
User-agent: Microsoft-Entourage/11.2.5.060620
On 12/3/07 16:19, "Petersson, Mats" <Mats.Petersson@xxxxxxx> wrote:

>> I have seen in the code that there are different cases of guest+host
>> paging table heights. Why?
> 
> I'm sorry, I don't quite know this. I believe that the page-table has to
> be the same number of levels in both Xen and the PV guest.
> 
> There's been some recent work to implement 32-bit PV on 64-bit HV, which
> I think changes this by allowing a 32-bit PAE guest to run on a 64-bit
> hypervisor. Someone else who works more on PV is probably better to
> answer this... 

For PV guests, there are no separate Xen/shadow page tables. Xen reserves a
bit of space at the top end of guest pagetables to map itself. Hence
normally the guest and Xen pagetables must be the same height as they are
actually the same pagetables.

Supporting PAE guest on 64-bit Xen is the only exception. Xen maintains a
hidden top-level page directory and one of the entries in that directory
points at the guest's three-level pagetable. But again there is no shadowing
of the guest three-level pagetable: they are directly hooked into the hidden
top-level directory, and the real physical %cr3 points at that hidden
directory.

 -- Keir


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