Re: [PATCH v2 6/7] vhost-user: Monitor slave channel in vhost_user_read()

2021-03-15 Thread Stefan Hajnoczi
On Fri, Mar 12, 2021 at 10:22:11AM +0100, Greg Kurz wrote: > Now that everything is in place, have the nested event loop to monitor > the slave channel. The source in the main event loop is destroyed and > recreated to ensure any pending even for the slave channel that was > previously detected is

[PATCH v2 6/7] vhost-user: Monitor slave channel in vhost_user_read()

2021-03-12 Thread Greg Kurz
Now that everything is in place, have the nested event loop to monitor the slave channel. The source in the main event loop is destroyed and recreated to ensure any pending even for the slave channel that was previously detected is purged. This guarantees that the main loop wont invoke slave_read()