Commit f5a4e64f authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

vhost: skip memory which needs dirty logging



vhost doesn't support write logging
(except for migration), anyway.
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 25254bbc
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment