Marc-André Lureau c89804d674 vhost-user: wait until backend init is completed
The chardev waits for an initial connection before starting qemu, and
vhost-user should wait for the backend negotiation to be completed
before starting qemu too.

vhost-user is started in the net_vhost_user_event callback, which is
synchronously called after the socket is connected. Use a
VhostUserState.started flag to indicate vhost-user init completed
successfully and qemu can be started.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2016-07-29 00:33:49 +03:00
..
2016-07-19 20:18:02 +02:00
2016-07-19 20:18:02 +02:00
2016-07-19 20:18:02 +02:00
2016-07-19 20:18:02 +02:00
2016-07-19 20:18:27 +02:00
2016-07-19 20:18:02 +02:00
2016-07-19 20:18:02 +02:00
2016-07-19 20:18:02 +02:00
2016-07-19 20:18:02 +02:00