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 <>
parent 25254bbc
...@@ -311,6 +311,10 @@ static void vhost_client_set_memory(CPUPhysMemoryClient *client, ...@@ -311,6 +311,10 @@ static void vhost_client_set_memory(CPUPhysMemoryClient *client,
int r; int r;
dev->mem = qemu_realloc(dev->mem, s); dev->mem = qemu_realloc(dev->mem, s);
if (log_dirty) {
assert(size); assert(size);
vhost_dev_unassign_memory(dev, start_addr, size); vhost_dev_unassign_memory(dev, start_addr, size);
Markdown is supported
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