[PATCH v3 0/5] Implement reconnect for vhost-user-scsi

Li Feng posted 5 patches 9 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230731121018.2856310-1-fengli@smartx.com
Maintainers: Raphael Norwitz <raphael.norwitz@nutanix.com>, "Michael S. Tsirkin" <mst@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Fam Zheng <fam@euphon.net>, "Alex Bennée" <alex.bennee@linaro.org>, Viresh Kumar <viresh.kumar@linaro.org>
There is a newer version of this series
hw/block/vhost-user-blk.c           |   4 +-
hw/scsi/vhost-scsi-common.c         |  37 ++---
hw/scsi/vhost-user-scsi.c           | 247 +++++++++++++++++++++++++---
hw/virtio/vhost-user-gpio.c         |   3 +-
hw/virtio/vhost.c                   |   2 +
include/hw/virtio/vhost-user-scsi.h |   4 +
include/hw/virtio/vhost.h           |   2 +
7 files changed, 252 insertions(+), 47 deletions(-)
[PATCH v3 0/5] Implement reconnect for vhost-user-scsi
Posted by Li Feng 9 months ago
This patchset adds reconnect support for vhost-user-scsi. At the same
times, fix vhost fd leak and refactor some code.

Changes for v3:
- Split the vhost_user_scsi_handle_output to a separate patch;
- Move the started_vu from vhost scsi common header to vhost-user-scsi header;
- Fix a log print error;

Changes for v2:
- Split the v1 patch to small separate patchset;
- New patch for fixing fd leak, which has sent to reviewers in another
  mail;
- Implement the `vhost_user_scsi_handle_output`;
- Add the started_vu safe check;
- Fix error handler;
- Check the inflight before set/get inflight fd.

Li Feng (5):
  vhost: fix the fd leak
  vhost-user-common: send get_inflight_fd once
  vhost: move and rename the conn retry times
  vhost-user-scsi: support reconnect to backend
  vhost-user-scsi: start vhost when guest kicks

 hw/block/vhost-user-blk.c           |   4 +-
 hw/scsi/vhost-scsi-common.c         |  37 ++---
 hw/scsi/vhost-user-scsi.c           | 247 +++++++++++++++++++++++++---
 hw/virtio/vhost-user-gpio.c         |   3 +-
 hw/virtio/vhost.c                   |   2 +
 include/hw/virtio/vhost-user-scsi.h |   4 +
 include/hw/virtio/vhost.h           |   2 +
 7 files changed, 252 insertions(+), 47 deletions(-)

-- 
2.41.0