Message ID | 20130223204929.GA19233@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/vhost.c b/hw/vhost.c index dbf6b46..c324903 100644 --- a/hw/vhost.c +++ b/hw/vhost.c @@ -29,7 +29,7 @@ static void vhost_dev_sync_region(struct vhost_dev *dev, uint64_t end = MIN(mlast, rlast); vhost_log_chunk_t *from = dev->log + start / VHOST_LOG_CHUNK; vhost_log_chunk_t *to = dev->log + end / VHOST_LOG_CHUNK + 1; - uint64_t addr = (start / VHOST_LOG_CHUNK) * VHOST_LOG_CHUNK; + uint64_t addr = 0; if (end < start) { return;