|
|
586cba |
From 6335431b70dd55c1d52152d726fa462db2e10eb8 Mon Sep 17 00:00:00 2001
|
|
|
586cba |
From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= <eperezma@redhat.com>
|
|
|
586cba |
Date: Thu, 12 May 2022 19:57:45 +0200
|
|
|
586cba |
Subject: [PATCH 09/11] vdpa: Fix index calculus at vhost_vdpa_svqs_start
|
|
|
586cba |
MIME-Version: 1.0
|
|
|
586cba |
Content-Type: text/plain; charset=UTF-8
|
|
|
586cba |
Content-Transfer-Encoding: 8bit
|
|
|
586cba |
|
|
|
586cba |
RH-Author: Eugenio Pérez <eperezma@redhat.com>
|
|
|
586cba |
RH-MergeRequest: 114: vdpa: Fix memory listener deletions of iova tree
|
|
|
586cba |
RH-Commit: [2/4] 9ce732e6bba426f8e00020ee6ad77f972f3e75b5 (eperezmartin/qemu-kvm)
|
|
|
586cba |
RH-Bugzilla: 2116876
|
|
|
586cba |
RH-Acked-by: Jason Wang <jasowang@redhat.com>
|
|
|
586cba |
RH-Acked-by: Cindy Lu <lulu@redhat.com>
|
|
|
586cba |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
586cba |
|
|
|
586cba |
With the introduction of MQ the index of the vq needs to be calculated
|
|
|
586cba |
with the device model vq_index.
|
|
|
586cba |
|
|
|
586cba |
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
|
|
|
586cba |
Acked-by: Jason Wang <jasowang@redhat.com>
|
|
|
586cba |
Message-Id: <20220512175747.142058-5-eperezma@redhat.com>
|
|
|
586cba |
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
586cba |
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
586cba |
(cherry picked from commit 1c82fdfef8a227518ffecae9d419bcada995c202)
|
|
|
586cba |
---
|
|
|
586cba |
hw/virtio/vhost-vdpa.c | 2 +-
|
|
|
586cba |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
586cba |
|
|
|
586cba |
diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c
|
|
|
586cba |
index a7dfac530f..f877b354fa 100644
|
|
|
586cba |
--- a/hw/virtio/vhost-vdpa.c
|
|
|
586cba |
+++ b/hw/virtio/vhost-vdpa.c
|
|
|
586cba |
@@ -1032,7 +1032,7 @@ static bool vhost_vdpa_svqs_start(struct vhost_dev *dev)
|
|
|
586cba |
VirtQueue *vq = virtio_get_queue(dev->vdev, dev->vq_index + i);
|
|
|
586cba |
VhostShadowVirtqueue *svq = g_ptr_array_index(v->shadow_vqs, i);
|
|
|
586cba |
struct vhost_vring_addr addr = {
|
|
|
586cba |
- .index = i,
|
|
|
586cba |
+ .index = dev->vq_index + i,
|
|
|
586cba |
};
|
|
|
586cba |
int r;
|
|
|
586cba |
bool ok = vhost_vdpa_svq_setup(dev, svq, i, &err;;
|
|
|
586cba |
--
|
|
|
586cba |
2.31.1
|
|
|
586cba |
|