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>
This commit is contained in:
parent
25254bbc4d
commit
f5a4e64f8e
|
@ -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) {
|
||||||
|
flags = IO_MEM_UNASSIGNED;
|
||||||
|
}
|
||||||
|
|
||||||
assert(size);
|
assert(size);
|
||||||
|
|
||||||
vhost_dev_unassign_memory(dev, start_addr, size);
|
vhost_dev_unassign_memory(dev, start_addr, size);
|
||||||
|
|
Reference in New Issue