mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue