vhost-user-scsi: support reconnect to backend
authorLi Feng <fengli@smartx.com>
Mon, 9 Oct 2023 04:46:59 +0000 (12:46 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 22 Oct 2023 09:18:17 +0000 (05:18 -0400)
commit7962e432b4e40e4395a93aa121045c58f34195fb
tree3794707373b364f1e6a641332157fe772914201f
parent4dfcc09f48c4f81a9a4e2300065edbe6b589a6ce
vhost-user-scsi: support reconnect to backend

If the backend crashes and restarts, the device is broken.
This patch adds reconnect for vhost-user-scsi.

This patch also improves the error messages, and reports some silent errors.

Tested with spdk backend.

Signed-off-by: Li Feng <fengli@smartx.com>
Message-Id: <20231009044735.941655-4-fengli@smartx.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
hw/scsi/vhost-scsi-common.c
hw/scsi/vhost-scsi.c
hw/scsi/vhost-user-scsi.c
include/hw/virtio/vhost-scsi-common.h
include/hw/virtio/vhost-user-scsi.h