Re: [PATCH v9 3/4] vhost: add VHOST_FORK_FROM_OWNER ioctl and validate inherit_owner

2025-04-22 Thread Stefano Garzarella
On Mon, Apr 21, 2025 at 10:44:09AM +0800, Cindy Lu wrote: Add a new UAPI to configure the vhost device to use the kthread mode. The userspace application can use IOCTL VHOST_FORK_FROM_OWNER to choose between owner and kthread mode if necessary. This setting must be applied before VHOST_SET_OWNER,

Re: [PATCH v9 3/4] vhost: add VHOST_FORK_FROM_OWNER ioctl and validate inherit_owner

2025-04-20 Thread Jason Wang
On Mon, Apr 21, 2025 at 10:45 AM Cindy Lu wrote: > > Add a new UAPI to configure the vhost device to use the kthread mode. > The userspace application can use IOCTL VHOST_FORK_FROM_OWNER > to choose between owner and kthread mode if necessary. > This setting must be applied before VHOST_SET_OWNER,

[PATCH v9 3/4] vhost: add VHOST_FORK_FROM_OWNER ioctl and validate inherit_owner

2025-04-20 Thread Cindy Lu
Add a new UAPI to configure the vhost device to use the kthread mode. The userspace application can use IOCTL VHOST_FORK_FROM_OWNER to choose between owner and kthread mode if necessary. This setting must be applied before VHOST_SET_OWNER, as the worker will be created in the VHOST_SET_OWNER functi