virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] vhost: Add support of kthread API
@ 2024-10-04  1:58 Cindy Lu
  2024-10-04  1:58 ` [PATCH v2 1/7] vhost: Add a new modparam to allow userspace select vhost_task Cindy Lu
                   ` (6 more replies)
  0 siblings, 7 replies; 30+ messages in thread
From: Cindy Lu @ 2024-10-04  1:58 UTC (permalink / raw)
  To: lulu, jasowang, mst, michael.christie, linux-kernel,
	virtualization

In commit 6e890c5d5021 ("vhost: use vhost_tasks for worker threads"),
vhost is now a child of the owner thread. but some old userspace is confused, In these patch we will let userspace to select the mode 

In this PATCH, the support of kthread is added back.
a module_param is added to select which mode we are using, and
a new UAPI is introduced to allow the userspace app to set which
mode they want to use.

Changelog v2: 
 1. Change the module_param's name to enforce_inherit_owner, and the default value is true.
 2. Change the UAPI's name to VHOST_SET_INHERIT_FROM_OWNER.
 
Tested with QEMU.

Cindy Lu (7):
  vhost: Add a new modparam to allow userspace select vhost_task
  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 change to task mode

 drivers/vhost/vhost.c      | 249 +++++++++++++++++++++++++++++++++++--
 drivers/vhost/vhost.h      |   1 +
 include/uapi/linux/vhost.h |   2 +
 3 files changed, 243 insertions(+), 9 deletions(-)

-- 
2.45.0


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

end of thread, other threads:[~2024-10-17  6:54 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-04  1:58 [PATCH v2 0/7] vhost: Add support of kthread API Cindy Lu
2024-10-04  1:58 ` [PATCH v2 1/7] vhost: Add a new modparam to allow userspace select vhost_task Cindy Lu
2024-10-05 15:42   ` kernel test robot
2024-10-07 13:31   ` Stefano Garzarella
2024-10-09  7:28     ` Jason Wang
2024-10-09  7:57       ` Stefano Garzarella
2024-10-09  8:20         ` Jason Wang
2024-10-14  6:47           ` Cindy Lu
2024-10-14  6:46     ` Cindy Lu
2024-10-04  1:58 ` [PATCH v2 2/7] vhost: Add kthread support in function vhost_worker_queue() Cindy Lu
2024-10-04  1:58 ` [PATCH v2 3/7] vhost: Add kthread support in function vhost_workers_free() Cindy Lu
2024-10-07 13:32   ` Stefano Garzarella
2024-10-15  5:54     ` Cindy Lu
2024-10-14 21:05   ` Mike Christie
2024-10-15  6:05     ` Cindy Lu
2024-10-15  6:52       ` Stefano Garzarella
2024-10-15  7:19         ` Cindy Lu
2024-10-04  1:58 ` [PATCH v2 4/7] vhost: Add the vhost_worker to support kthread Cindy Lu
2024-10-14 22:56   ` Mike Christie
2024-10-15  9:03     ` Cindy Lu
2024-10-04  1:58 ` [PATCH v2 5/7] vhost: Add the cgroup related function Cindy Lu
2024-10-04  1:58 ` [PATCH v2 6/7] vhost: Add kthread support in function vhost_worker_create Cindy Lu
2024-10-14 21:02   ` Mike Christie
2024-10-15  6:30     ` Cindy Lu
2024-10-04  1:58 ` [PATCH v2 7/7] vhost: Add new UAPI to support change to task mode Cindy Lu
2024-10-07 13:37   ` Stefano Garzarella
2024-10-14 20:56   ` Mike Christie
2024-10-15  2:35     ` Cindy Lu
2024-10-15 10:19     ` Michael S. Tsirkin
2024-10-17  6:53       ` Jason Wang

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).