All of lore.kernel.org
 help / color / mirror / Atom feed
* [p2m][hap] Fix dirty vram tracking function
@ 2009-06-25 15:11 Wei Huang
  0 siblings, 0 replies; only message in thread
From: Wei Huang @ 2009-06-25 15:11 UTC (permalink / raw)
  To: 'xen-devel@lists.xensource.com'

[-- Attachment #1: Type: text/plain, Size: 193 bytes --]

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>


[-- Attachment #2: hap_fix_vram_track_dirty.txt --]
[-- Type: text/plain, Size: 562 bytes --]

diff -r f3655757bbf6 -r ab5892928417 xen/arch/x86/mm/hap/hap.c
--- a/xen/arch/x86/mm/hap/hap.c	Sun Jun 28 22:17:37 2009 -0500
+++ b/xen/arch/x86/mm/hap/hap.c	Tue Jun 30 03:41:02 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);
     return 0;

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-25 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-25 15:11 [p2m][hap] Fix dirty vram tracking function Wei Huang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.