mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-30 13:53:54 -06:00
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>
This commit is contained in:
parent
f25e7ab2b0
commit
049f55502a
5 changed files with 33 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue