vdpa: Fix index calculus at vhost_vdpa_svqs_start
commit1c82fdfef8a227518ffecae9d419bcada995c202
authorEugenio Pérez <eperezma@redhat.com>
Thu, 12 May 2022 17:57:45 +0000 (12 19:57 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 13 May 2022 11:57:26 +0000 (13 07:57 -0400)
treeb5678ea4501a835b032931810567f7f8ddd59a82
parent639036477ef890958415967e753ca2cbb348c16c
vdpa: Fix index calculus at vhost_vdpa_svqs_start

With the introduction of MQ the index of the vq needs to be calculated
with the device model vq_index.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220512175747.142058-5-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-vdpa.c