ia64/xen-unstable

changeset 19844:aad8bb7f5e10

p2m hap: Fix dirty vram tracking function

This patch fixes an incorrect mode conversion when disable vram
dirty tracking.

Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 18:28:59 2009 +0100 (2009-06-25)
parents d5c97cd22d6f
children 02003bee3e80
files xen/arch/x86/mm/hap/hap.c
line diff
     1.1 --- a/xen/arch/x86/mm/hap/hap.c	Thu Jun 25 14:30:00 2009 +0100
     1.2 +++ b/xen/arch/x86/mm/hap/hap.c	Thu Jun 25 18:28:59 2009 +0100
     1.3 @@ -90,7 +90,7 @@ int hap_disable_vram_tracking(struct dom
     1.4  
     1.5      /* set l1e entries of P2M table with normal mode */
     1.6      for (i = dirty_vram->begin_pfn; i < dirty_vram->end_pfn; i++)
     1.7 -        p2m_change_type(d, i, p2m_ram_rw, p2m_ram_logdirty);
     1.8 +        p2m_change_type(d, i, p2m_ram_logdirty, p2m_ram_rw);
     1.9  
    1.10      flush_tlb_mask(&d->domain_dirty_cpumask);
    1.11      return 0;