diff options
author | Xie Yongji <xieyongji@baidu.com> | 2019-03-20 19:26:46 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-05-20 18:40:02 -0400 |
commit | 6b8f9c6e15af38129452e2ae5c58f4a5c4585678 (patch) | |
tree | ec2d2b706b4207cbeac50f081e95437773beda8d /contrib | |
parent | 77542d431491788d1e8e79d93ce10172ef207775 (diff) | |
download | qemu-6b8f9c6e15af38129452e2ae5c58f4a5c4585678.zip qemu-6b8f9c6e15af38129452e2ae5c58f4a5c4585678.tar.gz qemu-6b8f9c6e15af38129452e2ae5c58f4a5c4585678.tar.bz2 |
contrib/vhost-user-blk: enable inflight I/O tracking
This patch enables inflight I/O tracking for
vhost-user-blk backend so that we could restart it safely.
Signed-off-by: Xie Yongji <xieyongji@baidu.com>
Signed-off-by: Zhang Yu <zhangyu31@baidu.com>
Message-Id: <20190320112646.3712-8-xieyongji@baidu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/vhost-user-blk/vhost-user-blk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/vhost-user-blk/vhost-user-blk.c b/contrib/vhost-user-blk/vhost-user-blk.c index 43583f2..86a3987 100644 --- a/contrib/vhost-user-blk/vhost-user-blk.c +++ b/contrib/vhost-user-blk/vhost-user-blk.c @@ -398,7 +398,8 @@ vub_get_features(VuDev *dev) static uint64_t vub_get_protocol_features(VuDev *dev) { - return 1ull << VHOST_USER_PROTOCOL_F_CONFIG; + return 1ull << VHOST_USER_PROTOCOL_F_CONFIG | + 1ull << VHOST_USER_PROTOCOL_F_INFLIGHT_SHMFD; } static int |