vhost: correctly set bits of dirty pages
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Nov 2010 08:19:07 +0000 (10:19 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Nov 2010 08:26:55 +0000 (10:26 +0200)
Fix two bugs in dirty page logging:
When counting pages we should increase address by 1 instead of
VHOST_PAGE_SIZE. Make log_write() correctly process requests
that cross pages with write_address not starting at page boundary.

Reported-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

No differences found