Skip to content

virtio: allow virtio_error() in IOThreads

Stefan Hajnoczi qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5vhost: use virtio_config_get_guest_notifier()hw/virtio/vhost.c+7 -41 reply
2/5virtio: unify virtio_notify_irqfd() and virtio_notify()hw/block/virtio-blk.c hw/scsi/virtio-scsi.c hw/virtio/trace-events +2 more+15 -271 reply
3/5virtio: support irqfd in virtio_notify_config()hw/virtio/virtio.c+6 -10 replies
4/5tests/libqos: extract qvirtqueue_set_avail_idx()tests/qtest/libqos/virtio.c tests/qtest/libqos/virtio.h+14 -42 replies
5/5tests/virtio-scsi: add a virtio_error() IOThread testtests/qtest/virtio-scsi-test.c+32 -00 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéFabiano Rosas
1/5R-b
2/5R-b
3/5
4/5R-b A-b
5/5

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/5] virtio: allow virtio_error() in IOThreads

The hw/virtio/ code calls virtio_error() when the guest driver does something invalid. virtio_error() is currently not usable outside the Big QEMU Lock (BQL) because it calls into the interrupt code path (MSI, etc) that requires the BQL.

Make the hw/virtio.c code aware of the IOThread case where the BQL is not held and use irqfd there. This makes virtio_error() available to IOThreads.

Stefan Hajnoczi (5):
vhost: use virtio_config_get_guest_notifier()
virtio: unify virtio_notify_irqfd() and virtio_notify()
virtio: support irqfd in virtio_notify_config() tests/libqos: extract qvirtqueue_set_avail_idx() tests/virtio-scsi: add a virtio_error() IOThread test

 include/hw/virtio/virtio.h     |  1 -
 tests/qtest/libqos/virtio.h    |  2 ++
 hw/block/virtio-blk.c          |  6 +-----
 hw/scsi/virtio-scsi.c          |  6 +-----
 hw/virtio/vhost.c              | 11 +++++++----
 hw/virtio/virtio.c             | 35 ++++++++++++++++++----------------
 tests/qtest/libqos/virtio.c    | 16 ++++++++++++----
 tests/qtest/virtio-scsi-test.c | 32 +++++++++++++++++++++++++++++++
 hw/virtio/trace-events         |  1 -
 9 files changed, 74 insertions(+), 36 deletions(-)
Signature · 1 line
2.51.0