libvhost-user: Support tracking inflight I/O in shared memory
authorXie Yongji <xieyongji@baidu.com>
Thu, 28 Feb 2019 08:53:52 +0000 (16:53 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 13 Mar 2019 02:31:21 +0000 (22:31 -0400)
commit5f9ff1eff38ab341fb38ce32d4ae95e33f878781
tree1aca880bfac9408c4136b052eaca939ac2f659e6
parentf7671f3d49418f570a86de6b54795edcd5cb68dd
libvhost-user: Support tracking inflight I/O in shared memory

This patch adds support for VHOST_USER_GET_INFLIGHT_FD and
VHOST_USER_SET_INFLIGHT_FD message to set/get shared buffer
to/from qemu. Then backend can track inflight I/O in this buffer.

Signed-off-by: Xie Yongji <xieyongji@baidu.com>
Signed-off-by: Zhang Yu <zhangyu31@baidu.com>
Message-Id: <20190228085355.9614-5-xieyongji@baidu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Makefile
contrib/libvhost-user/libvhost-user.c
contrib/libvhost-user/libvhost-user.h