From: Gianluca Guida Subject: Re: Shadow's Dirty Bit Problem Date: Sun, 28 Jun 2009 14:02:25 +0200 Message-ID: References: <000a01c9f7b6$40cdfdc0$c269f940$@pku.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <000a01c9f7b6$40cdfdc0$c269f940$@pku.edu.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: zhujun Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Sun, Jun 28, 2009 at 8:04 AM, zhujun wrote: > =A0=A0=A0=A0=A0=A0=A0=A0 In the function _sh_propagate, the A&D bits of a= ll the shadow page > tables entries above level 1 will be set. (// Set the A&D bits for higher > level shadows). I am very confused about it. From Intel manual, the Dirty > bit above level 1 is reserved and must be set 0. Am I right? If yes, how > does the shadow page table deal with this problem? Actually, it is an available bit in higher level. So there's no problem in putting it to 1. Also, note that there are level 2 entries with dirty bits: superpages ones. > =A0=A0=A0=A0=A0=A0=A0=A0 Another question. In Xen=92s current version, do= es it use the Dirty > bit to do something? It's used only for tracking VRAM, to know whether the guest wrote to the VGA buffer or not. Otherwhise, we set it to one. Thanks, Gianluca --=20 It was a type of people I did not know, I found them very strange and they did not inspire confidence at all. Later I learned that I had been introduced to electronic engineers. E. W. Dijkstra