WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] possible code/comment mismatch in hap_enable_vram_tracki

To: Olaf Hering <olaf@xxxxxxxxx>
Subject: Re: [Xen-devel] possible code/comment mismatch in hap_enable_vram_tracking/hap_clean_vram_tracking
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Thu, 9 Sep 2010 14:48:39 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 09 Sep 2010 06:49:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100909133746.GA15174@xxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20100909133746.GA15174@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
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 <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, XenServer Engineering
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>