Skip to content

RFC vhost: Add support of kthread API

Cindy Lu lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7vhost: Add a new module_param for enable kthreaddrivers/vhost/vhost.c+3 -00 replies
2/7vhost: Add kthread support in function vhost_worker_queue()drivers/vhost/vhost.c drivers/vhost/vhost.h+29 -22 replies
3/7vhost: Add kthread support in function vhost_workers_free()drivers/vhost/vhost.c+47 -50 replies
4/7vhost: Add the vhost_worker to support kthreaddrivers/vhost/vhost.c+38 -00 replies
5/7vhost: Add the cgroup related functiondrivers/vhost/vhost.c+52 -00 replies
6/7vhost: Add kthread support in function vhost_worker_createdrivers/vhost/vhost.c+54 -10 replies
7/7vhost: Add new UAPI to support changing Kthread modedrivers/vhost/vhost.c include/uapi/linux/vhost.h+12 -19 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/7] vhost: Add support of kthread API

In commit 6e890c5d5021 ("vhost: use vhost_tasks for worker threads"), vhost removed the support for the kthread API. However, there are still situations where there is a request to use kthread. In this RFC, the support of kthread is added back. Additionally, a module_param is added to identify which mode we are using, and a new UAPI is introduced to allow the userspace app to set the mode they want to use.

Cindy Lu (7):
vhost: Add a new module_param for enable kthread
vhost: Add kthread support in function vhost_worker_queue()
vhost: Add kthread support in function vhost_workers_free()
vhost: Add the vhost_worker to support kthread
vhost: Add the cgroup related function
vhost: Add kthread support in function vhost_worker_create
vhost: Add new UAPI to support changing Kthread mode

 drivers/vhost/vhost.c      | 241 +++++++++++++++++++++++++++++++++++--
 drivers/vhost/vhost.h      |   1 +
 include/uapi/linux/vhost.h |   2 +
 3 files changed, 235 insertions(+), 9 deletions(-)
Signature · 1 line
2.45.0