qemu/contrib
Johannes Berg 8726b70b44 libvhost-user: fix SLAVE_SEND_FD handling
It doesn't look like this could possibly work properly since
VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD is defined to 10, but the
dev->protocol_features has a bitmap. I suppose the peer this
was tested with also supported VHOST_USER_PROTOCOL_F_LOG_SHMFD,
in which case the test would always be false, but nevertheless
the code seems wrong.

Use has_feature() to fix this.

Fixes: d84599f56c ("libvhost-user: support host notifier")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Message-Id: <20190903200422.11693-1-johannes@sipsolutions.net>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2019-09-04 07:23:42 -04:00
..
elf2dmp contrib/elf2dmp: Build download.o with CURL_CFLAGS 2019-07-22 14:07:39 +01:00
gitdm contrib: gitdm: add a mapping for Janus Technologies 2019-03-12 19:31:29 +00:00
ivshmem-client Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
ivshmem-server Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
libvhost-user libvhost-user: fix SLAVE_SEND_FD handling 2019-09-04 07:23:42 -04:00
rdmacm-mux rdmacm-mux: fix strcpy string warning 2019-07-15 11:20:42 +02:00
systemd contrib: add systemd unit files 2017-12-20 22:29:26 +01:00
vhost-user-blk libvhost-user: support many virtqueues 2019-07-04 17:00:32 -04:00
vhost-user-gpu libvhost-user: support many virtqueues 2019-07-04 17:00:32 -04:00
vhost-user-input libvhost-user: support many virtqueues 2019-07-04 17:00:32 -04:00
vhost-user-scsi libvhost-user: support many virtqueues 2019-07-04 17:00:32 -04:00