Skip to content

vhost-scsi: Support worker ioctls

Mike Christie qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 4 repliesSuperseded
  3. v12 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- Warn user if they have set worker_per_virtqueue=true but the kernel doesn't support it.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vhost: Add worker backend calloutshw/virtio/vhost-backend.c include/hw/virtio/vhost-backend.h+42 -00 replies
2/2vhost-scsi: Add support for a worker thread per virtqueuehw/scsi/vhost-scsi.c include/hw/virtio/virtio-scsi.h+63 -01 reply

Reviews trailers per patch

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

PatchStefano GarzarellaStefan Hajnoczi
SeriesR-b
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] vhost-scsi: Support worker ioctls

The following patches allow users to configure the vhost worker threads for vhost-scsi. With vhost-net we get a worker thread per rx/tx virtqueue pair, but for vhost-scsi we get one worker for all workqueues. This becomes a bottlneck after 2 queues are used.

In the upstream linux kernel commit:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/vhost/vhost.c?id=c1ecd8e9500797748ae4f79657971955d452d69d

we enabled the vhost layer to be able to create a worker thread and attach it to a virtqueue.

This patchset adds support to vhost-scsi to use these ioctls so we are no longer limited to the single worker.

v3:
- Warn user if they have set worker_per_virtqueue=true but the kernel doesn't support it.
v2:
- Make config option a bool instead of an int.