]> Git Repo - qemu.git/commitdiff
contrib/vhost-user-blk: enable inflight I/O tracking
authorXie Yongji <[email protected]>
Wed, 20 Mar 2019 11:26:46 +0000 (19:26 +0800)
committerMichael S. Tsirkin <[email protected]>
Mon, 20 May 2019 22:40:02 +0000 (18:40 -0400)
This patch enables inflight I/O tracking for
vhost-user-blk backend so that we could restart it safely.

Signed-off-by: Xie Yongji <[email protected]>
Signed-off-by: Zhang Yu <[email protected]>
Message-Id: <20190320112646[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
contrib/vhost-user-blk/vhost-user-blk.c

index 43583f26596c5865f74c2ae10a67b8bddc21ebce..86a39877446d25dcd87f589b8231e999e9c346ea 100644 (file)
@@ -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
This page took 0.03104 seconds and 4 git commands to generate.