summaryrefslogtreecommitdiffstats
path: root/hw/vhost.c
diff options
context:
space:
mode:
authorJason Wang2010-11-27 15:05:07 +0100
committerMichael S. Tsirkin2010-12-02 20:13:39 +0100
commit0c600ce2a7a419c7247b2ac63327dea5daa3d5a2 (patch)
treeae3bd44abc04ff004c9c57245ac0d7d8b29a3df3 /hw/vhost.c
parentmigration: allow rate > 4g (diff)
downloadqemu-0c600ce2a7a419c7247b2ac63327dea5daa3d5a2.tar.gz
qemu-0c600ce2a7a419c7247b2ac63327dea5daa3d5a2.tar.xz
qemu-0c600ce2a7a419c7247b2ac63327dea5daa3d5a2.zip
vhost: Fix address calculation in vhost_dev_sync_region()
We still need advance address even we find there's no dirty pages in current chunk. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/vhost.c')
-rw-r--r--hw/vhost.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/vhost.c b/hw/vhost.c
index 8586f66bac..6082da287e 100644
--- a/hw/vhost.c
+++ b/hw/vhost.c
@@ -37,6 +37,7 @@ static void vhost_dev_sync_region(struct vhost_dev *dev,
/* We first check with non-atomic: much cheaper,
* and we expect non-dirty to be the common case. */
if (!*from) {
+ addr += VHOST_LOG_CHUNK;
continue;
}
/* Data must be read atomically. We don't really