diff options
| author | Johannes Berg | 2019-09-03 22:04:22 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2019-09-04 13:23:42 +0200 |
| commit | 8726b70b449896f1211f869ec4f608904f027207 (patch) | |
| tree | c958227b13d4143cf5f58f1a02f7bcd9355e8b28 /scripts/modules/module_block.py | |
| parent | virtio-pci: Add Function Level Reset support (diff) | |
| download | qemu-8726b70b449896f1211f869ec4f608904f027207.tar.gz qemu-8726b70b449896f1211f869ec4f608904f027207.tar.xz qemu-8726b70b449896f1211f869ec4f608904f027207.zip | |
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: d84599f56c82 ("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>
Diffstat (limited to 'scripts/modules/module_block.py')
0 files changed, 0 insertions, 0 deletions
