qemu-patch-raspberry4/contrib/libvhost-user
Marc-André Lureau 6079865526 libvhost-user: exit by default on VHOST_USER_NONE
Since commit 2566378d6d, libvhost-user
no longer panics on disconnect (rc == 0), and instead silently ignores
an invalid VHOST_USER_NONE message.

Without extra work from the API user, this will simply busy-loop on
HUP events. The obvious thing to do is to exit(0) instead, while
additional or different work can be done by overriding
iface->process_msg().

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
Message-Id: <20190308140454.32437-5-marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2019-03-12 21:22:31 -04:00
..
libvhost-user-glib.c libvhost-user: add glib source helper 2017-10-10 23:31:09 +02:00
libvhost-user-glib.h libvhost-user: add glib source helper 2017-10-10 23:31:09 +02:00
libvhost-user.c libvhost-user: exit by default on VHOST_USER_NONE 2019-03-12 21:22:31 -04:00
libvhost-user.h libvhost-user: fix clang enum-conversion warning 2019-03-12 21:22:31 -04:00
Makefile.objs libvhost-user: add glib source helper 2017-10-10 23:31:09 +02:00