From: Amit Dang Subject: [Shadow Paging] Clarification Guest Paging Table Write Protection Date: Thu, 30 Apr 2009 13:52:07 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1586265230==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1586265230== Content-Type: multipart/alternative; boundary="_cb113457-e277-4a07-bfc3-d4385b2c2d3f_" --_cb113457-e277-4a07-bfc3-d4385b2c2d3f_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C I am new to Xen and trying to understand how Shadow Paging works. I req= uire clarification on following point: How does Xen write protects guest page table?=20 What I could understand reading code & other sources is that=2C when ever c= r3 gets updated=2C control gets transferred to the hypervisor which then do= es the emulation for the instruction and write protects the guest page tabl= e. But the confusion is=2C cr3 contains Pseuso-physical address of the gues= t page table=2C but to protect this page protection bit is required to be s= et in its page table entry. How does Xen get page table entry for the addre= ss in cr3? Thanks in advance=2C Dang _________________________________________________________________ How fun is this? IMing with Windows Live Messenger just got better. http://www.microsoft.com/india/windows/windowslive/messenger.aspx= --_cb113457-e277-4a07-bfc3-d4385b2c2d3f_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C
 =3B =3B =3B I am new to Xen and trying to understand = how Shadow Paging works. I require clarification on following point:
How does Xen write protects guest page table?
What I could understand = reading code &=3B other sources is that=2C when ever cr3 gets updated=2C= control gets transferred to the hypervisor which then does the emulation f= or the instruction and write protects the guest page table. But the confusi= on is=2C cr3 contains Pseuso-physical address of the guest page table=2C bu= t to protect this page protection bit is required to be set in its page tab= le entry. How does Xen get page table entry for the address in cr3?

= Thanks in advance=2C
Dang


How fun is this? IMing with Windows Live Messenger just got better. = --_cb113457-e277-4a07-bfc3-d4385b2c2d3f_-- --===============1586265230== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1586265230==--