virtio: allow virtio_error() in IOThreads
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | vhost: use virtio_config_get_guest_notifier()hw/ | +7 | 1 reply | |
| 2/5 | virtio: unify virtio_notify_irqfd() and virtio_notify()hw/ hw/ hw/ +2 more | +15 | 1 reply | |
| 3/5 | virtio: support irqfd in virtio_notify_config()hw/ | +6 | 0 replies | |
| 4/5 | tests/libqos: extract qvirtqueue_set_avail_idx()tests/ tests/ | +14 | 2 replies | |
| 5/5 | tests/virtio-scsi: add a virtio_error() IOThread testtests/ | +32 | 0 replies |
Reviews trailers per patch
3 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Philippe Mathieu-Daudé | Fabiano Rosas |
|---|---|---|
| 1/5 | R-b | |
| 2/5 | R-b | |
| 3/5 | ||
| 4/5 | R-b | A-b |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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