diff options
| author | Yuanhan Liu | 2015-11-13 08:24:09 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2015-11-16 11:02:54 +0100 |
| commit | 923e2d98ede7404882656aeb4364c3964a95db3d (patch) | |
| tree | d232a921d3e2822b615b58df8939e7fbcf12ea31 /hw | |
| parent | Update version for v2.5.0-rc0 release (diff) | |
| download | qemu-923e2d98ede7404882656aeb4364c3964a95db3d.tar.gz qemu-923e2d98ede7404882656aeb4364c3964a95db3d.tar.xz qemu-923e2d98ede7404882656aeb4364c3964a95db3d.zip | |
vhost: let SET_VRING_ENABLE message depends on protocol feature
But not depend on PROTOCOL_F_MQ feature bit. So that we could use
SET_VRING_ENABLE to sign the backend on stop, even if MQ is disabled.
That's reasonable, since we will have one queue pair at least.
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/virtio/vhost-user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c index c44360219f..3404b81eda 100644 --- a/hw/virtio/vhost-user.c +++ b/hw/virtio/vhost-user.c @@ -338,7 +338,7 @@ static int vhost_user_set_vring_enable(struct vhost_dev *dev, int enable) .num = enable, }; - if (!(dev->protocol_features & (1ULL << VHOST_USER_PROTOCOL_F_MQ))) { + if (!virtio_has_feature(dev->features, VHOST_USER_F_PROTOCOL_FEATURES)) { return -1; } |
