]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - memory.c
exec: pass client mask to cpu_physical_memory_set_dirty_range
[thirdparty/qemu.git] / memory.c
index b7ca987c071a90ad08e3420dba3fbb85035b1959..418cac7ce112d5e6768d20713afc0ce518483b4b 100644 (file)
--- a/memory.c
+++ b/memory.c
@@ -1461,7 +1461,8 @@ void memory_region_set_dirty(MemoryRegion *mr, hwaddr addr,
                              hwaddr size)
 {
     assert(mr->terminates);
-    cpu_physical_memory_set_dirty_range(mr->ram_addr + addr, size);
+    cpu_physical_memory_set_dirty_range(mr->ram_addr + addr, size,
+                                        memory_region_get_dirty_log_mask(mr));
 }
 
 bool memory_region_test_and_clear_dirty(MemoryRegion *mr, hwaddr addr,