Skip to content

virtio-scsi: fix 100% CPU consumption in IOThread

Stefan Hajnoczi qemu-devel 1 version Applied

Status from this message: Thanks, applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6virtio-scsi: fix ctrl and event handler functions in dataplane modehw/scsi/virtio-scsi.c+27 -153 replies
2/6virtio-scsi: don't waste CPU polling the event virtqueuehw/scsi/virtio-scsi-dataplane.c hw/virtio/virtio.c include/hw/virtio/virtio.h+15 -14 replies
3/6virtio-scsi: clean up virtio_scsi_handle_event_vq()hw/scsi/virtio-scsi.c include/hw/virtio/virtio-scsi.h+1 -41 reply
4/6virtio-scsi: clean up virtio_scsi_handle_ctrl_vq()hw/scsi/virtio-scsi.c include/hw/virtio/virtio-scsi.h+1 -51 reply
5/6virtio-scsi: clean up virtio_scsi_handle_cmd_vq()hw/scsi/virtio-scsi.c include/hw/virtio/virtio-scsi.h+1 -51 reply
6/6virtio-scsi: move request-related items from .h to .chw/scsi/virtio-scsi.c include/hw/virtio/virtio-scsi.h+41 -441 reply

Reviews trailers per patch

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

PatchNir SofferPaolo Bonzini
1/6R-b
2/6T-b
3/6R-b
4/6R-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.

Read the v1 thread

Cover letter [PATCH 0/6] virtio-scsi: fix 100% CPU consumption in IOThread

Nir Soffer reported that virtio-scsi,iothread=... consumes 100% CPU in QEMU 7.0. This patch series addresses two bugs in hw/scsi/virtio-scsi.c (see patches 1 & 2) and follows up with code cleanups.

Stefan Hajnoczi (6):
virtio-scsi: fix ctrl and event handler functions in dataplane mode
virtio-scsi: don't waste CPU polling the event virtqueue
virtio-scsi: clean up virtio_scsi_handle_event_vq()
virtio-scsi: clean up virtio_scsi_handle_ctrl_vq()
virtio-scsi: clean up virtio_scsi_handle_cmd_vq()
virtio-scsi: move request-related items from .h to .c

 include/hw/virtio/virtio-scsi.h |  43 --------------
 include/hw/virtio/virtio.h      |   1 +
 hw/scsi/virtio-scsi-dataplane.c |   2 +-
 hw/scsi/virtio-scsi.c           | 101 ++++++++++++++++++++++----------
 hw/virtio/virtio.c              |  13 ++++
 5 files changed, 86 insertions(+), 74 deletions(-)
Signature · 1 line
2.35.1