From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xinxin Jin Subject: How does Xen emulate guest's write to its pte ? Date: Mon, 22 Oct 2012 12:17:28 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1552381471273585810==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============1552381471273585810== Content-Type: multipart/alternative; boundary=bcaec517ab7a550cbd04ccaab46e --bcaec517ab7a550cbd04ccaab46e Content-Type: text/plain; charset=ISO-8859-1 Hi all, I traced Xen's writable page table handler: PV guests' write operation to a pte will trap to Xen's page fault handler ptwr_do_page_fault() which will call x86_emulate() to emulate the write. But after I print out the pte (which maps faulting virtual address) value, I was very surprised to find that, the value does not change before/after x86_emulation(). This result confuses me: so how does Xen emulate pte write then ? Thanks a lot ! -- Xinxin --bcaec517ab7a550cbd04ccaab46e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all,=A0
I traced Xen's writable page table han= dler: PV guests' write operation to a pte will trap to Xen's page f= ault handler=A0ptwr_do_page_fault() which will call x86_emulate() to emulat= e the write.=A0
But =A0after I print out the pte (which maps faulting virtual address)= value, =A0I was very surprised to find that, the value does not change bef= ore/after x86_emulation(). This result confuses me: so how does Xen emulate= pte write then ?
Thanks a lot !
--
Xinxin

--bcaec517ab7a550cbd04ccaab46e-- --===============1552381471273585810== 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.xen.org http://lists.xen.org/xen-devel --===============1552381471273585810==--