diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2011-04-06 22:30:24 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-04-06 23:12:11 +0300 |
commit | f5a4e64f8e12d088a11b9a2743875cc88671e13a (patch) | |
tree | 55b50b97780ae1a0a5010d050b97ba5fcdc31233 /hw/vhost.c | |
parent | 25254bbc4d91408b6be706d095e3fbc60a972db4 (diff) | |
download | qemu-f5a4e64f8e12d088a11b9a2743875cc88671e13a.zip qemu-f5a4e64f8e12d088a11b9a2743875cc88671e13a.tar.gz qemu-f5a4e64f8e12d088a11b9a2743875cc88671e13a.tar.bz2 |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |