[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] p2m hap: Fix dirty vram tracking function



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1246270427 -3600
# Node ID 16acd5353973384a4814bc8c883e3f6013540134
# Parent  af6903ce5a87a481ac94da56af768fdf60ef2ef0
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@xxxxxxxxxxxxx>
Signed-off-by: Wei Huang <wei.huang2@xxxxxxx>
xen-unstable changeset:   19844:aad8bb7f5e10
xen-unstable date:        Thu Jun 25 18:28:59 2009 +0100
---
 xen/arch/x86/mm/hap/hap.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r af6903ce5a87 -r 16acd5353973 xen/arch/x86/mm/hap/hap.c
--- a/xen/arch/x86/mm/hap/hap.c Mon Jun 29 11:11:49 2009 +0100
+++ b/xen/arch/x86/mm/hap/hap.c Mon Jun 29 11:13:47 2009 +0100
@@ -88,7 +88,7 @@ int hap_disable_vram_tracking(struct dom
 
     /* set l1e entries of P2M table with normal mode */
     for (i = d->dirty_vram->begin_pfn; i < d->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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.