On 4/7/25 3:17 AM, Michael S. Tsirkin wrote: > On Fri, Mar 28, 2025 at 06:02:48PM +0800, Cindy Lu wrote: >> Abstract vhost worker operations (create/stop/wakeup) into an ops >> structure to prepare for kthread mode support. >> >> Signed-off-by: Cindy Lu <l...@redhat.com> > > I worry about the overhead of indirect calls here. > > We have the wrappers, and only two options, > why did you decide to add it like this, > with ops? > That was from my review comment. Originally, I thought we could share more code. For example I thought vhost_run_work_kthread_list from patch 2 in this thread and kernel/vhost_task.c:vhost_task_fn could be merged.
- [PATCH v8 7/8] vhost: Add check for inherit_owner statu... Cindy Lu
- Re: [PATCH v8 7/8] vhost: Add check for inherit_ow... Stefano Garzarella
- [PATCH v8 4/8] vhost: Introduce vhost_worker_ops in vho... Cindy Lu
- Re: [PATCH v8 4/8] vhost: Introduce vhost_worker_o... Stefano Garzarella
- Re: [PATCH v8 4/8] vhost: Introduce vhost_work... Cindy Lu
- Re: [PATCH v8 4/8] vhost: Introduce vhost_... Stefano Garzarella
- Re: [PATCH v8 4/8] vhost: Introduce vhost_worker_o... Michael S. Tsirkin
- Re: [PATCH v8 4/8] vhost: Introduce vhost_work... Mike Christie
- Re: [PATCH v8 4/8] vhost: Introduce vhost_... Cindy Lu
- Re: [PATCH v8 4/8] vhost: Introduce vh... Mike Christie
- Re: [PATCH v8 0/8] vhost: Add support of kthread API Lei Yang