Skip to content

Implement reconnect for vhost-user-scsi

Li Feng qemu-devel 8 versions – Applied

Status from this message: Queued. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest5 patches 3 repliesApplied
  2. v75 patches 2 repliesSuperseded
  3. v65 patches 11 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v55 patches0 repliesSuperseded
v45 patches0 repliesSuperseded
v35 patches8 repliesSuperseded
v24 patches10 repliesSuperseded
v11 patch0 repliesSuperseded

Changes in v8 from the cover letter

- [PATCH 3/5] vhost-user-scsi: support reconnect to backend
- Fix code style suggested by Manos Pitsidianakis
- [PATCH 4/5] vhost-user-scsi: start vhost when guest kicks
- Use 'DEVICE()' macro in vhost_user_scsi_handle_output to replace the 'parent_obj.parent_obj.parent_obj.parent_obj'.

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/5vhost-user-common: send get_inflight_fd oncehw/scsi/vhost-scsi-common.c+18 -190 replies
2/5vhost: move and rename the conn retry timeshw/block/vhost-user-blk.c hw/virtio/vhost-user-gpio.c include/hw/virtio/vhost.h+4 -50 replies
3/5vhost-user-scsi: support reconnect to backendhw/scsi/vhost-scsi-common.c hw/scsi/vhost-scsi.c hw/scsi/vhost-user-scsi.c +2 more+201 -301 reply
4/5vhost-user-scsi: start vhost when guest kickshw/scsi/vhost-user-scsi.c+44 -40 replies
5/5vhost-user: fix lost reconnecthw/block/vhost-user-blk.c hw/scsi/vhost-user-scsi.c hw/virtio/vhost-user-gpio.c +2 more+14 -60 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchRaphael NorwitzManos Pitsidianakis
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH v8 0/5] Implement reconnect for vhost-user-scsi

Changes for v8:
- [PATCH 3/5] vhost-user-scsi: support reconnect to backend
- Fix code style suggested by Manos Pitsidianakis
- [PATCH 4/5] vhost-user-scsi: start vhost when guest kicks
- Use 'DEVICE()' macro in vhost_user_scsi_handle_output to replace the 'parent_obj.parent_obj.parent_obj.parent_obj'.

Changes for v7:
- [PATCH 3/5] vhost-user-scsi: support reconnect to backend
- Add reporting the error in vhost-scsi;
- Rebase to master and fix the conflict.
- Add "Reviewed-by" tags.

Changes for v6:
- [PATCH] vhost-user: fix lost reconnect
- Fix missing assign event_cb.

Changes for v5:
- No logic has been changed, just move part of the code from patch 4 to patch 5.

Changes for v4:
- Merge
https://lore.kernel.org/all/[email protected]/ to this series.
- Add ERRP_GUARD in vhost_user_scsi_realize;
- Reword the commit messages.

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-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
vhost-user: fix lost reconnect

 hw/block/vhost-user-blk.c             |   6 +-
 hw/scsi/vhost-scsi-common.c           |  47 ++---
 hw/scsi/vhost-scsi.c                  |   6 +-
 hw/scsi/vhost-user-scsi.c             | 250 +++++++++++++++++++++++---
 hw/virtio/vhost-user-gpio.c           |   5 +-
 hw/virtio/vhost-user.c                |  10 +-
 include/hw/virtio/vhost-scsi-common.h |   2 +-
 include/hw/virtio/vhost-user-scsi.h   |   6 +
 include/hw/virtio/vhost-user.h        |   3 +-
 include/hw/virtio/vhost.h             |   2 +
 10 files changed, 277 insertions(+), 60 deletions(-)
Signature · 1 line
2.41.0