qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] vhost-scsi: Support worker ioctls
@ 2023-12-04 23:16 Mike Christie
  2023-12-04 23:16 ` [PATCH v3 1/2] vhost: Add worker backend callouts Mike Christie
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mike Christie @ 2023-12-04 23:16 UTC (permalink / raw)
  To: fam, stefanha, jasowang, mst, sgarzare, pbonzini, qemu-devel

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.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-05 18:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-04 23:16 [PATCH v3 0/2] vhost-scsi: Support worker ioctls Mike Christie
2023-12-04 23:16 ` [PATCH v3 1/2] vhost: Add worker backend callouts Mike Christie
2023-12-04 23:16 ` [PATCH v3 2/2] vhost-scsi: Add support for a worker thread per virtqueue Mike Christie
2023-12-05 10:34   ` Stefano Garzarella
2023-12-05 18:42 ` [PATCH v3 0/2] vhost-scsi: Support worker ioctls Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).