Skip to contentSkip to conversation

Fix dirty vram tracking function

p2m Wei Huang 1 participant 1 message Jun 25, 2009

lore
Share & tools
lore

Wei Huang

author
#0 lore raw

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

xen/arch/x86/mm/hap/hap.c +1 -1
diff -r f3655757bbf6 -r ab5892928417 xen/arch/x86/mm/hap/hap.c
@@ -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);
     return 0;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel