diff options
author | Li Feng <lifeng1519@gmail.com> | 2019-04-20 17:10:16 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-05-20 18:40:02 -0400 |
commit | acbd487ddb36499108d3bc2fb0654f6892177633 (patch) | |
tree | 409ef701921fd184604d54911156219e7d655db3 | |
parent | 48cefd94c748cf8d5bb3ffda53bdc8e503882a3f (diff) | |
download | qemu-acbd487ddb36499108d3bc2fb0654f6892177633.zip qemu-acbd487ddb36499108d3bc2fb0654f6892177633.tar.gz qemu-acbd487ddb36499108d3bc2fb0654f6892177633.tar.bz2 |
libvhost-user: fix bad vu_log_write
Mark dirty as page, the step of each call is 1.
Signed-off-by: Li Feng <fengli@smartx.com>
Message-Id: <20190420091016.213160-1-fengli@smartx.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r-- | contrib/libvhost-user/libvhost-user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libvhost-user/libvhost-user.c b/contrib/libvhost-user/libvhost-user.c index 74d4217..3825b1c 100644 --- a/contrib/libvhost-user/libvhost-user.c +++ b/contrib/libvhost-user/libvhost-user.c @@ -433,7 +433,7 @@ vu_log_write(VuDev *dev, uint64_t address, uint64_t length) page = address / VHOST_LOG_PAGE; while (page * VHOST_LOG_PAGE < address + length) { vu_log_page(dev->log_table, page); - page += VHOST_LOG_PAGE; + page += 1; } vu_log_kick(dev); |