From: "Peter Teoh" Subject: Re: Readonly memory for guest domain Date: Wed, 12 Sep 2007 11:15:02 +0800 Message-ID: <035201c7f4eb$20532400$9a010a0a@eeyore> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1004711824==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 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 This is a multi-part message in MIME format. --===============1004711824== Content-Type: multipart/alternative; boundary="----=_NextPart_000_034F_01C7F52E.29F94050" This is a multi-part message in MIME format. ------=_NextPart_000_034F_01C7F52E.29F94050 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sorry, I think may have found the answer. The real answer is because = the guest should be hidden from the real physical PTE page table = mapping. And since all the guest page table are faked, a mechanism is = needed to inform the hypervisor to remap to the real physical mapping. = The mechanism present used to do this is setting the table to readonly, = so as to trigger an exception whenever writing is attempted. Not sure if my analysis is correct? Thanks. ------=_NextPart_000_034F_01C7F52E.29F94050 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Sorry, I think may have found the = answer.   The real=20 answer is because the guest should be hidden from the real physical PTE = page=20 table mapping.   And since all the guest page table are faked, = a=20 mechanism is needed to inform the hypervisor to remap to the real = physical=20 mapping.   The mechanism present used to do this is setting = the table=20 to readonly, so as to trigger an exception whenever writing is=20 attempted.
 
Not sure if my analysis is correct?
 
Thanks.
------=_NextPart_000_034F_01C7F52E.29F94050-- --===============1004711824== 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 --===============1004711824==--