From 7b2eb7d8a1e6dffda8c909161162db52512665f0 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Wed, 6 Apr 2011 22:30:24 +0300 Subject: [PATCH] vhost: skip memory which needs dirty logging vhost doesn't support write logging (except for migration), anyway. Signed-off-by: Michael S. Tsirkin --- hw/vhost.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/vhost.c b/hw/vhost.c index dc3d0e2..257e3dd 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); -- 2.7.4