diff options
| author | Coiby Xu | 2020-09-18 10:09:06 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2020-10-23 14:42:16 +0200 |
| commit | 049f55502a020f2d56dece94164bf8cf901f855d (patch) | |
| tree | 9a30f4f800995a294f4b997571c47cdad862bb8c /tools/virtiofsd/fuse_virtio.c | |
| parent | block/nvme: Add driver statistics for access alignment and hw errors (diff) | |
| download | qemu-049f55502a020f2d56dece94164bf8cf901f855d.tar.gz qemu-049f55502a020f2d56dece94164bf8cf901f855d.tar.xz 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 'tools/virtiofsd/fuse_virtio.c')
| -rw-r--r-- | tools/virtiofsd/fuse_virtio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/virtiofsd/fuse_virtio.c b/tools/virtiofsd/fuse_virtio.c index 89f537f79b..324936948d 100644 --- a/tools/virtiofsd/fuse_virtio.c +++ b/tools/virtiofsd/fuse_virtio.c @@ -1013,8 +1013,8 @@ int virtio_session_mount(struct fuse_session *se) se->vu_socketfd = data_sock; se->virtio_dev->se = se; pthread_rwlock_init(&se->virtio_dev->vu_dispatch_rwlock, NULL); - vu_init(&se->virtio_dev->dev, 2, se->vu_socketfd, fv_panic, fv_set_watch, - fv_remove_watch, &fv_iface); + vu_init(&se->virtio_dev->dev, 2, se->vu_socketfd, fv_panic, NULL, + fv_set_watch, fv_remove_watch, &fv_iface); return 0; } |
