OSDN Git Service

libvhost-user: Allow vu_message_read to be replaced
authorCoiby Xu <coiby.xu@gmail.com>
Fri, 18 Sep 2020 08:09:06 +0000 (16:09 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 23 Oct 2020 12:42:16 +0000 (13:42 +0100)
commit049f55502a020f2d56dece94164bf8cf901f855d
tree9a30f4f800995a294f4b997571c47cdad862bb8c
parentf25e7ab2b091fae1ae3e9f55b5244ddcdb1653bb
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>
contrib/libvhost-user/libvhost-user-glib.c
contrib/libvhost-user/libvhost-user.c
contrib/libvhost-user/libvhost-user.h
tests/vhost-user-bridge.c
tools/virtiofsd/fuse_virtio.c