]> Git Repo - qemu.git/blobdiff - exec.c
ram_addr: tweaks to xen_modified_memory
[qemu.git] / exec.c
diff --git a/exec.c b/exec.c
index fc8d05d50a8231bd37f4ba248b25628cc71474e5..6f6dbc8e608c2ea299362526ea7c5a3a2cf5c09b 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -2281,8 +2281,9 @@ static void invalidate_and_set_dirty(hwaddr addr,
     if (cpu_physical_memory_range_includes_clean(addr, length)) {
         tb_invalidate_phys_range(addr, addr + length, 0);
         cpu_physical_memory_set_dirty_range_nocode(addr, length);
+    } else {
+        xen_modified_memory(addr, length);
     }
-    xen_modified_memory(addr, length);
 }
 
 static int memory_access_size(MemoryRegion *mr, unsigned l, hwaddr addr)
This page took 0.023652 seconds and 4 git commands to generate.