Re: [PATCH v2 4/7] vhost-user: Convert slave channel to QIOChannelSocket

2021-03-15 Thread Stefan Hajnoczi
On Fri, Mar 12, 2021 at 10:22:09AM +0100, Greg Kurz wrote: > The slave channel is implemented with socketpair() : QEMU creates > the pair, passes one of the socket to virtiofsd and monitors the > other one with the main event loop using qemu_set_fd_handler(). > > In order to fix a potential

[PATCH v2 4/7] vhost-user: Convert slave channel to QIOChannelSocket

2021-03-12 Thread Greg Kurz
The slave channel is implemented with socketpair() : QEMU creates the pair, passes one of the socket to virtiofsd and monitors the other one with the main event loop using qemu_set_fd_handler(). In order to fix a potential deadlock between QEMU and a vhost-user external process (e.g. virtiofsd