mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
This commit is contained in:
1 parent
1a965f0e72
commit
00fdbf168a
1 file changed
+1
-1
@@ -90,7 +90,7 @@ int hap_disable_vram_tracking(struct domain *d)
|
||||
|
||||
/* 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;
|
||||
|
||||