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

[Xen-devel] what is the aim of "pinning" a pagetable?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] what is the aim of "pinning" a pagetable?
From: leilei175@xxxxxxxxx
Date: Wed, 27 May 2009 16:52:54 +0800
Delivery-date: Wed, 27 May 2009 01:53:21 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=94cVo6JNx8ijdvR39NuPAygdhVAEmQjOfKqTah65eVs=; b=STQkntjndSPL7G1uSGeGeejLL9kbPPYMS4CCnfNUKLHQGEd2l1wktkvDL1MtvA25Rz Frnt85XTuHh/LXzUDXtUh56YBbJrCjVP7dmDilFv3pOewhcQUzUnSX7Wm1iqlu6vodjb yqyqZQukw/AFGYqMDXVbvzURpR2BQh6MreoAs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=dZVrPnvqTuWKK8AgvZZZVs36fh5AlFGsA/GmO4HPKTVLdrKdSftLctX17sO0m/ulf2 KIN6b6uApyXVtyL01tWovcx3DifJRy+QiUVdXTout9K7kq0rgR+r5uLg6VuH+qfYXtJQ +/a/RBH37Ry7Opite6MsYVLzrwl0xNoFZpVM8=
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/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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
hi,gurus
I am getting confused by the meaning of "pinning a pagetable" in a
para-virtualized guest.
according to the comments in source code

""""
Naively, when loading %cr3 with the base of a new pagetable, Xen
 * would need to validate the whole pagetable before going on.
 * Naturally, this is quite slow.  The solution is to "pin" a
 * pagetable, which enforces all the constraints on the pagetable even
 * when it is not actively in use.  This menas that Xen can be assured
 * that it is still valid when you do load it into %cr3, and doesn't
 * need to revalidate it.
""""

I have two questions on these .

1. does pinning a pagetable means make this page readonly so no changes would
be made in it(even when it is not actively in use).
After that when we load it into %cr3 there is no need to revalidate it.

2. what kind of action would the hypervisor take while validating the
whole pagetable?
my understanding is to check if the pagetables are all marked as
readonly and make sure that all machine addreses contained in
pagetables are valid.
am I correct?

any explanation is appreciated
thanks

lei

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] what is the aim of "pinning" a pagetable?, leilei175 <=