Greg Kurz db8a3772e3 vhost-user: Monitor slave channel in vhost_user_read()
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() based on an event that was already handled
by the nested loop.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <20210312092212.782255-7-groug@kaod.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
2021-03-22 10:17:53 -04:00
..
2021-03-18 19:00:50 +00:00
2021-03-18 09:22:55 +00:00
2021-03-18 09:22:55 +00:00
2021-03-19 18:01:17 +00:00
2021-03-15 21:03:06 +01:00
2021-03-18 09:22:55 +00:00
2021-03-18 09:22:55 +00:00
2021-03-18 09:22:55 +00:00
2021-03-15 17:01:17 +01:00