[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACGkMEv=cQqXeLdsM1ivOFvUcG+-eOOwHE_BVQmF_scbqYxUpg@mail.gmail.com>
Date: Mon, 26 Aug 2024 14:21:52 +0800
From: Jason Wang <jasowang@...hat.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: Cindy Lu <lulu@...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, Aug 21, 2024 at 1:07 PM 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.
I think we need a better name. Probably something like
VHOST_INHERIT_OWNER or others (not a native speaker)
> > 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?
Vhost used to be created by kthreadd but some recent patches change it
to behave like being froked by the owner. So the various attributes
that interhit from the parent has been changed (scheduling and
namespace etc).
Thanks
>
>
Powered by blists - more mailing lists