vhost-user-blk: Add support to reconnect backend
commit77542d431491788d1e8e79d93ce10172ef207775
authorXie Yongji <xieyongji@baidu.com>
Wed, 20 Mar 2019 11:26:45 +0000 (20 19:26 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 20 May 2019 22:40:02 +0000 (20 18:40 -0400)
tree9a565ca76b594c4bff7449e2e0b7d940f6605115
parenta57f009108076d3c30f87be5d580c6344ad44971
vhost-user-blk: Add support to reconnect backend

Since we now support the message VHOST_USER_GET_INFLIGHT_FD
and VHOST_USER_SET_INFLIGHT_FD. The backend is able to restart
safely because it can track inflight I/O in shared memory.
This patch allows qemu to reconnect the backend after
connection closed.

Signed-off-by: Xie Yongji <xieyongji@baidu.com>
Signed-off-by: Ni Xun <nixun@baidu.com>
Signed-off-by: Zhang Yu <zhangyu31@baidu.com>
Message-Id: <20190320112646.3712-7-xieyongji@baidu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/block/vhost-user-blk.c
include/hw/virtio/vhost-user-blk.h