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] Essay on an important Xen decision (long)

To: "Mark Williamson" <mark.williamson@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] Essay on an important Xen decision (long)
From: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Date: Mon, 16 Jan 2006 19:03:08 -0800
Cc: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 17 Jan 2006 03:10:30 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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: AcYbEG6qgL32nycZRfmXk9uMzP2ORQAAN35A
Thread-topic: [Xen-devel] Essay on an important Xen decision (long)
> > Not only possible, but normal.  If there is a TLB miss and
> > a VHPT (virtual hashed page table) miss, software fills
> > both the TLB and VHPT.
> >
> > Is that what you meant?
> 
> Yep, that's exactly what I thought happened :-)
> 
> IIRC, you said you don't bother with the guest VHPT, right?  
> So presumably you 
> reflect TLB misses to the guest and intercept its TLB fill 
> instruction, apply 
> the P2M translation, then add it to *Xen*'s VHPT and fill the 
> TLB correctly?
> 
> I know I've followed some of these discussions before, just a 
> bit rusty now ;-)

Exactly... except for one nice shortcut that Matt Chapman
added.  Since the VHPT is architected and the guest is
expecting that it may be walked, when Xen intercepts the
initial TLB miss, it can first look in the guest VHPT
to resolve the miss (and add it to Xen's VHPT and fill
the TLB) rather than reflect the TLB miss to the guest.
Only if the translation isn't found in the guest VHPT
(or if looking for it -- a user_access -- causes another
TLB miss), then the TLB miss is reflected to the guest.

Thus, guests have the benefit not only of the hardware TLB
and Xen's VHPT but also their own VHPT.

Dan

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