projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cebd325
)
vhost: Fix address calculation in vhost_dev_sync_region()
author
Jason Wang
<jasowang@redhat.com>
Sat, 27 Nov 2010 14:05:07 +0000
(22:05 +0800)
committer
Michael S. Tsirkin
<mst@redhat.com>
Thu, 2 Dec 2010 19:13:39 +0000
(21:13 +0200)
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>
hw/vhost.c
patch
|
blob
|
history
diff --git
a/hw/vhost.c
b/hw/vhost.c
index
8586f66
..
6082da2
100644
(file)
--- 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