From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Huang Subject: A typo in vram dirty tracking function? Date: Wed, 24 Jun 2009 18:01:50 -0500 Message-ID: <4A42B05E.8060108@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: 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'" , stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Is this a typo? I haven't tried it myself. But did you want to convert logdirty to rw mode? -Wei --- a/xen/arch/x86/mm/hap/hap.c Sun Jun 28 22:17:37 2009 -0500 +++ b/xen/arch/x86/mm/hap/hap.c Mon Jun 29 07:43:11 2009 -0500 @@ -90,7 +90,7 @@ int hap_disable_vram_tracking(struct dom /* set l1e entries of P2M table with normal mode */ for (i = dirty_vram->begin_pfn; i < dirty_vram->end_pfn; i++) - p2m_change_type(d, i, p2m_ram_rw, p2m_ram_logdirty); + p2m_change_type(d, i, p2m_ram_logdirty, p2m_ram_rw); flush_tlb_mask(&d->domain_dirty_cpumask);