aboutsummaryrefslogtreecommitdiffstats
path: root/hw/vhost.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2011-04-06 22:30:24 +0300
committerMichael S. Tsirkin <mst@redhat.com>2011-04-06 23:12:11 +0300
commitf5a4e64f8e12d088a11b9a2743875cc88671e13a (patch)
tree55b50b97780ae1a0a5010d050b97ba5fcdc31233 /hw/vhost.c
parent25254bbc4d91408b6be706d095e3fbc60a972db4 (diff)
vhost: skip memory which needs dirty logging
vhost doesn't support write logging (except for migration), anyway. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/vhost.c')
-rw-r--r--hw/vhost.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/vhost.c b/hw/vhost.c
index dc3d0e283..257e3dd68 100644
--- a/hw/vhost.c
+++ b/hw/vhost.c
@@ -311,6 +311,10 @@ static void vhost_client_set_memory(CPUPhysMemoryClient *client,
int r;
dev->mem = qemu_realloc(dev->mem, s);
+ if (log_dirty) {
+ flags = IO_MEM_UNASSIGNED;
+ }
+
assert(size);
vhost_dev_unassign_memory(dev, start_addr, size);