diff options
| author | Coiby Xu <coiby.xu@gmail.com> | 2020-09-18 16:09:06 +0800 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2020-10-23 13:42:16 +0100 |
| commit | 049f55502a020f2d56dece94164bf8cf901f855d (patch) | |
| tree | 9a30f4f800995a294f4b997571c47cdad862bb8c /contrib/libvhost-user/libvhost-user-glib.c | |
| parent | f25e7ab2b091fae1ae3e9f55b5244ddcdb1653bb (diff) | |
| download | focaccia-qemu-049f55502a020f2d56dece94164bf8cf901f855d.tar.gz focaccia-qemu-049f55502a020f2d56dece94164bf8cf901f855d.zip | |
libvhost-user: Allow vu_message_read to be replaced
Allow vu_message_read to be replaced by one which will make use of the QIOChannel functions. Thus reading vhost-user message won't stall the guest. For slave channel, we still use the default vu_message_read. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Coiby Xu <coiby.xu@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20200918080912.321299-2-coiby.xu@gmail.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'contrib/libvhost-user/libvhost-user-glib.c')
| -rw-r--r-- | contrib/libvhost-user/libvhost-user-glib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libvhost-user/libvhost-user-glib.c b/contrib/libvhost-user/libvhost-user-glib.c index 53f1ca4cdd..0df2ec9271 100644 --- a/contrib/libvhost-user/libvhost-user-glib.c +++ b/contrib/libvhost-user/libvhost-user-glib.c @@ -147,7 +147,7 @@ vug_init(VugDev *dev, uint16_t max_queues, int socket, g_assert(dev); g_assert(iface); - if (!vu_init(&dev->parent, max_queues, socket, panic, set_watch, + if (!vu_init(&dev->parent, max_queues, socket, panic, NULL, set_watch, remove_watch, iface)) { return false; } |