projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25254bb
)
vhost: skip memory which needs dirty logging
author
Michael S. Tsirkin
<mst@redhat.com>
Wed, 6 Apr 2011 19:30:24 +0000
(22:30 +0300)
committer
Michael S. Tsirkin
<mst@redhat.com>
Wed, 6 Apr 2011 20:12:11 +0000
(23:12 +0300)
vhost doesn't support write logging
(except for migration), anyway.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/vhost.c
patch
|
blob
|
history
diff --git
a/hw/vhost.c
b/hw/vhost.c
index dc3d0e283471792b592318c8a34ce4d97c8e816d..257e3dd6857c4243a89d0fd186c994c34ae3687f 100644
(file)
--- a/
hw/vhost.c
+++ b/
hw/vhost.c
@@
-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);