From: Tim Deegan Subject: Re: possible code/comment mismatch in hap_enable_vram_tracking/hap_clean_vram_tracking Date: Thu, 9 Sep 2010 14:48:39 +0100 Message-ID: <20100909134839.GF23487@whitby.uk.xensource.com> References: <20100909133746.GA15174@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <20100909133746.GA15174@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Olaf Hering Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org At 14:37 +0100 on 09 Sep (1284043066), Olaf Hering wrote: > > Hello, > > the comments in hap_enable_vram_tracking() and hap_clean_vram_tracking() > say the pages will be set to read-only, but it passes p2m_ram_rw instead > of p2m_ram_ro to p2m_change_type(). > > Bug or feature? Neither. :) It's changing _from_ type p2m_ram_rw to type p2m_ram_logdirty (which is read-only until the next write, when it reverts to p2m_ram_rw and marks the page dirty). Cheers, Tim. -- Tim Deegan Principal Software Engineer, XenServer Engineering Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)