mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 21:42:06 -06:00
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>
This commit is contained in:
parent
4d191cfdc7
commit
353244d8b9
1 changed files with 2 additions and 2 deletions
|
@ -546,8 +546,8 @@ static int vhost_vdpa_get_vq_index(struct vhost_dev *dev, int idx)
|
||||||
{
|
{
|
||||||
assert(idx >= dev->vq_index && idx < dev->vq_index + dev->nvqs);
|
assert(idx >= dev->vq_index && idx < dev->vq_index + dev->nvqs);
|
||||||
|
|
||||||
trace_vhost_vdpa_get_vq_index(dev, idx, idx - dev->vq_index);
|
trace_vhost_vdpa_get_vq_index(dev, idx, idx);
|
||||||
return idx - dev->vq_index;
|
return idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int vhost_vdpa_set_vring_ready(struct vhost_dev *dev)
|
static int vhost_vdpa_set_vring_ready(struct vhost_dev *dev)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue