[Devel] [PATCH hci-8.1 0/2] vhost: replace VHOST_SET_NWORKERS with the mainstream worker ioctls

Alexander Ivanov alexander.ivanov at virtuozzo.com
Tue Oct 27 14:38:27 MSK 2026


VHOST_SET_NWORKERS was added to run our userspace on the rh10 kernel
unchanged. It installs workers bypassing __vhost_vq_attach_worker(), so
VHOST_FREE_WORKER can destroy a worker still in use by a virtqueue.

Patch 1 reverts VHOST_SET_NWORKERS. Patch 2 lets vhost-blk use the
mainstream VHOST_NEW_WORKER/VHOST_ATTACH_VRING_WORKER ioctls instead,
like vhost-scsi does. Userspace has to be updated together with this
series.

https://virtuozzo.atlassian.net/browse/VSTOR-107537

Alexander Ivanov (2):
  Revert "drivers/vhost: add ioctl to increase the number of workers"
  drivers/vhost/blk: add support for worker ioctls

 drivers/vhost/blk.c        |  8 ++++++
 drivers/vhost/vhost.c      | 52 +-------------------------------------
 drivers/vhost/vhost.h      |  1 -
 include/uapi/linux/vhost.h |  8 ------
 4 files changed, 9 insertions(+), 60 deletions(-)

-- 
2.53.0



More information about the Devel mailing list