vhost-user: modify SET_LOG_BASE to pass mmap size and offset
commit2b8819c6eee517c1582983773f8555bb3f9ed645
authorVictor Kaplansky <victork@redhat.com>
Wed, 11 Nov 2015 14:26:02 +0000 (11 16:26 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 12 Nov 2015 13:49:33 +0000 (12 15:49 +0200)
tree92e42beb3ea73822d83b4457a384b41c5ade612a
parent393f04d3ab40d03aa2fde0017ff7f02fc34cbd4e
vhost-user: modify SET_LOG_BASE to pass mmap size and offset

Unlike the kernel, vhost-user application accesses log table by
mmaping it to its user space. This change adds two new fields to
VhostUserMsg payload: mmap_size, and mmap_offset and make QEMU to
pass the to vhost-user application in VHOST_USER_SET_LOG_BASE
request.

Signed-off-by: Victor Kaplansky <victork@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs/specs/vhost-user.txt
hw/virtio/vhost-user.c
tests/vhost-user-test.c