[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: leilei175@xxxxxxxxx
  • Date: Wed, 27 May 2009 16:52:54 +0800
  • Delivery-date: Wed, 27 May 2009 01:53:21 -0700
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.