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(-)

-- 
2.30.2


Reply via email to