mirror of https://gitee.com/openkylin/qemu.git
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>
This commit is contained in:
parent
48cefd94c7
commit
acbd487ddb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue