Skip to content

vhost-user-blk: Error handling fixes during initialistion

Kevin Wolf qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 11 repliesIn review
  2. v15 patches 15 repliesSuperseded

Changes in v2 from the cover letter

- Fix error paths in realize() that didn't set errp
- Added vhost_dev_cleanup() back in the error path (more faithful revert of 77542d43149)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6vhost-user-blk: Make sure to set Error on realize failurehw/block/vhost-user-blk.c+1 -32 replies
2/6vhost-user-blk: Don't reconnect during initialisationhw/block/vhost-user-blk.c+17 -427 replies
3/6vhost-user-blk: Improve error reporting in realizehw/block/vhost-user-blk.c+11 -120 replies
4/6vhost-user-blk: Get more feature flags from vhost devicehw/block/vhost-user-blk.c+2 -00 replies
5/6virtio: Fail if iommu_platform is requested, but unsupportedhw/virtio/virtio-bus.c+5 -00 replies
6/6vhost-user-blk: Check that num-queues is supported by backendhw/block/vhost-user-blk.c hw/virtio/vhost-user.c include/hw/virtio/vhost.h+8 -00 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRaphael NorwitzEric BlakeMichael S. Tsirkin
SeriesR-b
1/6A-b R-b
2/6
3/6A-b
4/6A-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/6] vhost-user-blk: Error handling fixes during initialistion

vhost-user-blk neglects for several properties to check whether the configured value is even compatible with the backend. This results sometimes in crashes because of buggy error handling code, and sometimes in devices that are presented differently to the guest than the backend would expect and that don't work properly therefore.

This series fixes some of these bugs.

v2:
- Fix error paths in realize() that didn't set errp
- Added vhost_dev_cleanup() back in the error path (more faithful revert of 77542d43149)

Kevin Wolf (6):
vhost-user-blk: Make sure to set Error on realize failure
vhost-user-blk: Don't reconnect during initialisation
vhost-user-blk: Improve error reporting in realize
vhost-user-blk: Get more feature flags from vhost device
virtio: Fail if iommu_platform is requested, but unsupported
vhost-user-blk: Check that num-queues is supported by backend

 include/hw/virtio/vhost.h |  2 +
 hw/block/vhost-user-blk.c | 85 ++++++++++++++-------------------------
 hw/virtio/vhost-user.c    |  5 +++
 hw/virtio/virtio-bus.c    |  5 +++
 4 files changed, 42 insertions(+), 55 deletions(-)
Signature · 1 line
2.30.2