From: "zhujun" Subject: Question About Shadow Page Table OOS Optimization Date: Thu, 18 Jun 2009 10:00:45 +0800 Message-ID: <006b01c9efb8$97fc3900$c7f4ab00$@pku.edu.cn> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1583504519==" Return-path: Content-Language: zh-cn 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 UbJGR;7b MIME 8qJ=5D6`2?7VSJ<~!# --===============1583504519== Content-Type: multipart/alternative; boundary="----=_NextPart_000_006C_01C9EFFB.A61F7900" Content-Language: zh-cn UbJGR;7b MIME 8qJ=5D6`2?7VSJ<~!# ------=_NextPart_000_006C_01C9EFFB.A61F7900 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Friends I am going over shadow page table code and have a question about oos optimization. When shadow page table is established, if a guest page table entry marked as Dirty=0, the corresponding shadow page table entry clears R/W bit. Thus, when the guest modifies the page frame, xen's page fault handler marks the guest page table's entry as Dirty=1. Also, the guest page table is put into oos list. My question is if the guest clears the Dirty bit, how does hypervisor know it and when is the Dirty bit set again? If guest os modifies the page frame again, does the guest page table entry's Dirty bit reflect this information immediately? zhujun ------=_NextPart_000_006C_01C9EFFB.A61F7900 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi, = Friends

         I am going over shadow page table code and have a question about oos optimization. When shadow page table is established, if a guest page = table entry marked as Dirty=3D0, the corresponding shadow page table entry = clears R/W bit. Thus, when the guest modifies the page frame, xen’s page = fault handler marks the guest page table’s entry as Dirty=3D1. Also, the = guest page table is put into oos list. My question is if the guest clears the = Dirty bit, how does hypervisor know it and when is the Dirty bit set again? If = guest os modifies the page frame again, does the guest page table = entry’s Dirty bit reflect this information immediately?

 

zhujun

 

------=_NextPart_000_006C_01C9EFFB.A61F7900-- --===============1583504519== 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 --===============1583504519==--