[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACLfguX6-q3=ydUsCcaPsS42NiOph6j0zNHVrmpMk2zcMgwQrA@mail.gmail.com>
Date: Sun, 25 Aug 2024 21:51:13 +0800
From: Cindy Lu <lulu@...hat.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: jasowang@...hat.com, mst@...hat.com, linux-kernel@...r.kernel.org,
virtualization@...ts.linux-foundation.org
Subject: Re: [RFC 7/7] vhost: Add new UAPI to support changing Kthread mode
On Wed, 21 Aug 2024 at 13:07, Christoph Hellwig <hch@...radead.org> wrote:
>
> On Mon, Aug 19, 2024 at 05:27:33PM +0800, Cindy Lu wrote:
> > Add a new UAPI to support setting the vhost device to
> > use kthread mode. The user space application needs to use
> > VHOST_SET_USE_KTHREAD to set the mode. This setting must
> > be set before VHOST_SET_OWNER is set.
>
> Usage of an API is a complete kernel internal detail that has absolutely
> no business being exposed to applications.
>
> What is the application visible behavior that the API use is the proxy
> for?
>
The userspace application may need to know the details of the kernel.
For example, some userspaces may use a script to track threads. If
they use task mode, the script may not work properly. In that case,
they can choose Kthread mode.
Thanks
Cindy
>
Powered by blists - more mailing lists