Return-Path: Date: Thu, 1 Dec 2022 16:49:37 -0500 From: "Michael S. Tsirkin" Message-ID: <20221201164750-mutt-send-email-mst@kernel.org> References: <20221123131630.52020-1-sgarzare@redhat.com> <20221125081243.a3q7ep32o6g4r2vd@sgarzare-redhat> <20221201080250.s3cugnnkf5f4kqvo@sgarzare-redhat> <87k03bctrj.fsf@linaro.org> <20221201052647-mutt-send-email-mst@kernel.org> <874jufcnzi.fsf@linaro.org> MIME-Version: 1.0 In-Reply-To: <874jufcnzi.fsf@linaro.org> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [Virtio-fs] [PATCH for-7.2] vhost: enable vrings in vhost_dev_start() for vhost-user devices List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?iso-8859-1?Q?Benn=E9e?= Cc: Stefano Garzarella , Stefan Hajnoczi , qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , Kevin Wolf , virtio-fs@redhat.com, Mathieu Poirier , Fam Zheng , Viresh Kumar , German Maglione , Jason Wang , Raphael Norwitz , Hanna Reitz , qemu-block@nongnu.org, "Gonglei (Arei)" , Paolo Bonzini On Thu, Dec 01, 2022 at 12:21:21PM +0000, Alex Benn=E9e wrote: >=20 > "Michael S. Tsirkin" writes: >=20 > > On Thu, Dec 01, 2022 at 10:14:39AM +0000, Alex Benn=E9e wrote: > >> Do you think rust-vmm's vhost crates have enough of the state > >> management to manage vhost and vhost-user backends? Maybe it would be a > >> good experiment in replacing a (small well defined) piece of > >> functionality with rust? > >>=20 > >> That said there is a lot of deep magic in the vhost-net stuff which I > >> think is down to the interaction with things like vdpk and other netwo= rk > >> optimisations that might be missing. For the rest of the devices most = of > >> the code is basically boiler plate which has grown variations due to > >> code motion and change. This is the sort of thing that generics solves > >> well. > > > > Not sure what you want to replace with what though, libvhost-user or > > vhost-user bits in qemu? >=20 > The vhost-user bits in the main QEMU binary. We already don't use > libvhost-user for most of our backends anyway ;-) Mixing C and Rust like this is far from trivial. I'd start with something much less ambitious that virtio. --=20 MST