vhost-vdpa: prepare for the multiqueue support
commit353244d8b96767659e6c95c0c87dfe4372fe8c12
authorJason Wang <jasowang@redhat.com>
Wed, 20 Oct 2021 04:55:53 +0000 (20 12:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 20 Oct 2021 08:44:05 +0000 (20 04:44 -0400)
tree5257e67195d27bfdcf6b316de780360842dfb065
parent4d191cfdc7de958d06f821173f721c56bc131620
vhost-vdpa: prepare for the multiqueue support

Unlike vhost-kernel, vhost-vdpa adapts a single device multiqueue
model. So we need to simply use virtqueue index as the vhost virtqueue
index. This is a must for multiqueue to work for vhost-vdpa.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20211020045600.16082-4-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-vdpa.c