qemu-e2k/subprojects/libvhost-user
Kevin Wolf 5ebfdeb212 libvhost-user: Fix extra vu_add/rem_mem_reg reply
Outside of postcopy mode, neither VHOST_USER_ADD_MEM_REG nor
VHOST_USER_REM_MEM_REG are supposed to send a reply unless explicitly
requested with the need_reply flag. Their current implementation always
sends a reply, even if it isn't requested. This confuses the master
because it will interpret the reply as a reply for the next message for
which it actually expects a reply.

need_reply is already handled correctly by vu_dispatch(), so just don't
send a reply in the non-postcopy part of the message handler for these
two commands.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20220407133657.155281-3-kwolf@redhat.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2022-05-04 15:55:23 +02:00
..
include Use QEMU_SANITIZE_THREAD 2022-05-03 15:16:21 +04:00
standard-headers meson: fix meson 0.58 warning with libvhost-user subproject 2021-07-29 10:15:52 +02:00
libvhost-user-glib.c libvhost-user: make it a meson subproject 2020-12-08 13:48:58 -05:00
libvhost-user-glib.h libvhost-user: make it a meson subproject 2020-12-08 13:48:58 -05:00
libvhost-user.c libvhost-user: Fix extra vu_add/rem_mem_reg reply 2022-05-04 15:55:23 +02:00
libvhost-user.h libvhost-user: Add vu_rem_mem_reg input validation 2022-02-04 09:07:43 -05:00
link-test.c libvhost-user: add a simple link test without glib 2020-12-09 13:04:17 -05:00
meson.build meson: fix meson 0.58 warning with libvhost-user subproject 2021-07-29 10:15:52 +02:00