mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
4dfcc09f48
commit
7962e432b4
5 changed files with 201 additions and 30 deletions
|
@ -39,7 +39,7 @@ struct VHostSCSICommon {
|
|||
struct vhost_inflight *inflight;
|
||||
};
|
||||
|
||||
int vhost_scsi_common_start(VHostSCSICommon *vsc);
|
||||
int vhost_scsi_common_start(VHostSCSICommon *vsc, Error **errp);
|
||||
void vhost_scsi_common_stop(VHostSCSICommon *vsc);
|
||||
char *vhost_scsi_common_get_fw_dev_path(FWPathProvider *p, BusState *bus,
|
||||
DeviceState *dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue