qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 17/30] virtiofsd: Add main virtio loop


From: Stefan Hajnoczi
Subject: Re: [PATCH 17/30] virtiofsd: Add main virtio loop
Date: Thu, 14 Nov 2019 14:13:01 +0000
User-agent: Mutt/1.12.1 (2019-06-15)

On Tue, Oct 22, 2019 at 12:07:25PM +0100, Dr. David Alan Gilbert wrote:
> * Marc-André Lureau (address@hidden) wrote:
> > On Mon, Oct 21, 2019 at 1:26 PM Dr. David Alan Gilbert (git)
> > <address@hidden> wrote:
> > >
> > > From: "Dr. David Alan Gilbert" <address@hidden>
> > >
> > > Processes incoming requests on the vhost-user fd.
> > 
> > Is there a reason to avoid using glib & its main loop?
> 
> Not particularly;  would it actually work out any easier?
> Is there an easy way to get the glib loop to check something like
> the fuse_session_exited at each iteration.
> 
> I probably didn't originally because I wasn't sure if this code
> was going back into libfuse or staying here; and libfuse doesn't
> use glib.

I tried to convert this to glib a few months ago, but stopped because
libvhost-user-glib.c is difficult to use from multiple threads.  If I
remember correctly we'd need to change it quite a bit to make
multi-threaded vhost-user device backends possible and I gave up.

Stefan

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]