Skip to content

vhost-user-blk: Implement reconnection during realize

Kevin Wolf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7vhost: Add Error parameter to vhost_dev_init()backends/cryptodev-vhost.c backends/vhost-user.c hw/block/vhost-user-blk.c +8 more+29 -252 replies
2/7vhost: Distinguish errors in vhost_backend_init()hw/virtio/vhost-backend.c hw/virtio/vhost-user.c hw/virtio/vhost-vdpa.c +2 more+32 -292 replies
3/7vhost: Return 0/-errno in vhost_dev_init()hw/virtio/vhost-backend.c hw/virtio/vhost-user.c hw/virtio/vhost-vdpa.c +1 more+17 -92 replies
4/7vhost-user-blk: Add Error parameter to vhost_user_blk_start()hw/block/vhost-user-blk.c+15 -162 replies
5/7vhost: Distinguish errors in vhost_dev_get_config()hw/block/vhost-user-blk.c hw/display/vhost-user-gpu.c hw/input/vhost-user-input.c +7 more+46 -322 replies
6/7vhost-user-blk: Factor out vhost_user_blk_realize_connect()hw/block/vhost-user-blk.c+32 -162 replies
7/7vhost-user-blk: Implement reconnection during realizehw/block/vhost-user-blk.c+13 -12 replies

Reviews trailers per patch

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

PatchStefano GarzarellaRaphael Norwitz
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b R-b
7/7R-b

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

Read the v1 thread

Cover letter [PATCH 0/7] vhost-user-blk: Implement reconnection during realize

My previous series removed the broken implementation of automatic reconnection during .realize(). This series adds some error reporting improvements that allow distinguishing cases where reconnecting could help from permanent errors, and then uses it to re-implement the automatic reconnection during .realize(), as was requested during review of the previous series.

Kevin Wolf (7):
vhost: Add Error parameter to vhost_dev_init()
vhost: Distinguish errors in vhost_backend_init()
vhost: Return 0/-errno in vhost_dev_init()
vhost-user-blk: Add Error parameter to vhost_user_blk_start()
vhost: Distinguish errors in vhost_dev_get_config()
vhost-user-blk: Factor out vhost_user_blk_realize_connect()
vhost-user-blk: Implement reconnection during realize

 include/hw/virtio/vhost-backend.h |   5 +-
 include/hw/virtio/vhost.h         |   6 +-
 backends/cryptodev-vhost.c        |   5 +-
 backends/vhost-user.c             |   4 +-
 hw/block/vhost-user-blk.c         | 100 +++++++++++++++++++-----------
 hw/display/vhost-user-gpu.c       |   6 +-
 hw/input/vhost-user-input.c       |   6 +-
 hw/net/vhost_net.c                |   8 ++-
 hw/scsi/vhost-scsi.c              |   4 +-
 hw/scsi/vhost-user-scsi.c         |   4 +-
 hw/virtio/vhost-backend.c         |   6 +-
 hw/virtio/vhost-user-fs.c         |   3 +-
 hw/virtio/vhost-user-vsock.c      |  12 ++--
 hw/virtio/vhost-user.c            |  71 +++++++++++----------
 hw/virtio/vhost-vdpa.c            |   8 ++-
 hw/virtio/vhost-vsock.c           |   3 +-
 hw/virtio/vhost.c                 |  41 +++++++-----
 17 files changed, 174 insertions(+), 118 deletions(-)
Signature · 1 line
2.30.2