From: Xie Yongji Date: Wed, 20 Mar 2019 11:26:46 +0000 (+0800) Subject: contrib/vhost-user-blk: enable inflight I/O tracking X-Git-Tag: v4.1.0-rc0~99^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b8f9c6e15af38129452e2ae5c58f4a5c4585678;p=thirdparty%2Fqemu.git 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 Signed-off-by: Zhang Yu Message-Id: <20190320112646.3712-8-xieyongji@baidu.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/contrib/vhost-user-blk/vhost-user-blk.c b/contrib/vhost-user-blk/vhost-user-blk.c index 43583f26596..86a39877446 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