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

[Xen-devel] Consult some concepts about shadow paging mechanism


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Jui-Hao Chiang <windtracekimo@xxxxxxxxx>
  • Date: Wed, 22 Apr 2009 09:14:02 -0400
  • Delivery-date: Wed, 22 Apr 2009 06:14:26 -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=gIgeSUNEo38UEvloUXfTYSH+IbuXEKmQIBYtTdfYnSGJRljM3yTj7XWv6TVLTbmtpJ go51t43ef8jgSM2LZ7Y/+4YBf0iAVI+n7S5CyUD19HzUP41fXnJrACAUIIeBEQxN6H4F 0wVaa6DOeruw9SR+esoqoW4zS+k/Hcq1urBZc=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Dear All:

I am pretty new to xen-devel, please correct me in the following.

Assume we have the following terms
GPT: guest page table
SPT: shadow page table

(Question a) When guest OS is running, is it always using SPT for
address translation? If it is the case, how does guest OS refer and
modify its own GPT content? It seems that there is a page table entry
in SPT for the GPT page.

(Question b) The hypervisor is performing synchronization between GPT
and SPT. When guest OS increase access to some page (call it
Normal_Page) by marking 'read only' GPT entries as 'read write',
what's the read-write mode of the GPT page in the beginning?
(1) If it's read-only in SPT, the this modification will trigger a
page fault for GPT page, so that hypervisor can synchronize those two
tables at this moment.
(2) If it's read-write in SPT, then the page fault will only occur
when guest first write the Normal_Page content since the SPT entry has
read-only for the Normal_Page. Then hypervisor change the SPT entry to
read-write and to make sure it's the same as GPT, and return to guest
OS to run.

Thanks for your patience to look at these questions.
Jui-Hao

_______________________________________________
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®.