sim-card
/
qemu
Archived
10
0
Fork 0

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:
Michael S. Tsirkin 2011-04-06 22:30:24 +03:00
parent 25254bbc4d
commit f5a4e64f8e
1 changed files with 4 additions and 0 deletions

View File

@ -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);