]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/vhost.c
memory: change dirty setting APIs to take a size
[mirror_qemu.git] / hw / vhost.c
index 4778521102c58ee4227fb9cc4a400cbbe5344f7e..5ece659f4ae18281a72a3236b6da8e7b55486ffe 100644 (file)
@@ -55,7 +55,7 @@ static void vhost_dev_sync_region(struct vhost_dev *dev,
             ram_addr_t ram_addr;
             bit -= 1;
             ram_addr = section->offset_within_region + bit * VHOST_LOG_PAGE;
-            memory_region_set_dirty(section->mr, ram_addr);
+            memory_region_set_dirty(section->mr, ram_addr, VHOST_LOG_PAGE);
             log &= ~(0x1ull << bit);
         }
         addr += VHOST_LOG_CHUNK;