On Tue, Nov 5, 2024 at 3:27 PM Cindy Lu <lulu@xxxxxxxxxx> wrote: > > The vhost now uses vhost_task and workers as a child of the owner thread. > While this aligns with containerization principles,it confuses some legacy > userspace app, Therefore, we are reintroducing kthread API support. > > Introduce a new parameter to enable users to choose between > kthread and task mode. This will be exposed by module_param() later. > > Signed-off-by: Cindy Lu <lulu@xxxxxxxxxx> > --- > drivers/vhost/vhost.c | 2 ++ > drivers/vhost/vhost.h | 1 + > 2 files changed, 3 insertions(+) > > diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c > index 9ac25d08f473..eff6acbbb63b 100644 > --- a/drivers/vhost/vhost.c > +++ b/drivers/vhost/vhost.c > @@ -41,6 +41,7 @@ static int max_iotlb_entries = 2048; > module_param(max_iotlb_entries, int, 0444); > MODULE_PARM_DESC(max_iotlb_entries, > "Maximum number of iotlb entries. (default: 2048)"); > +static bool inherit_owner_default = true; I wonder how management can make a decision for this value. Thanks