From: Michael S. Tsirkin Date: Wed, 6 Apr 2011 19:30:24 +0000 (+0300) Subject: vhost: skip memory which needs dirty logging X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f5a4e64f8e12d088a11b9a2743875cc88671e13a;p=qemu.git vhost: skip memory which needs dirty logging vhost doesn't support write logging (except for migration), anyway. Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/vhost.c b/hw/vhost.c index dc3d0e2834..257e3dd685 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);