OSDN Git Service

libvhost-user: Fix VHOST_USER_GET_MAX_MEM_SLOTS reply
authorKevin Wolf <kwolf@redhat.com>
Mon, 27 Jun 2022 13:44:59 +0000 (15:44 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Jun 2022 22:53:18 +0000 (18:53 -0400)
commit69a5daec06f423843ce1bb9be5fb049314996f78
treebad1160a7f8b02d73cb2d20c1213c82f26e2357c
parentea0622060073b7bedda4a54312eeb6189983d1e3
libvhost-user: Fix VHOST_USER_GET_MAX_MEM_SLOTS reply

With REPLY_NEEDED, libvhost-user sends both the acutal result and an
additional ACK reply for VHOST_USER_GET_MAX_MEM_SLOTS. This is
incorrect, the spec mandates that it behave the same with and without
REPLY_NEEDED because it always sends a reply.

Fixes: 6fb2e173d20c9bbb5466183d33a3ad7dcd0375fa
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20220627134500.94842-3-kwolf@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
subprojects/libvhost-user/libvhost-user.c