vhost-user: only set slave channel for first vq
commit67b3965e89f8466fc6a61caa2142dd2c89257383
authorAdrian Moreno <amorenoz@redhat.com>
Tue, 21 Jan 2020 21:45:53 +0000 (21 22:45 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 27 Feb 2020 08:46:10 +0000 (27 03:46 -0500)
tree32815d6577a8e524a5bf95ae27ca4474a574d972
parentfd9b0830b0be0ea89cf30ad846a232e0c442a18a
vhost-user: only set slave channel for first vq

When multiqueue is enabled, a vhost_dev is created for each queue
pair. However, only one slave channel is needed.

Fixes: 4bbeeba023f2 (vhost-user: add slave-req-fd support)
Cc: marcandre.lureau@redhat.com
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Message-Id: <20200121214553.28459-1-amorenoz@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-user.c