[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v2 03/18] vdpa: Fix index calculus at vhost_vdpa_svqs_start
|
From: |
Eugenio Pérez |
|
Subject: |
[RFC PATCH v2 03/18] vdpa: Fix index calculus at vhost_vdpa_svqs_start |
|
Date: |
Thu, 17 Mar 2022 19:23:44 +0100 |
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
---
hw/virtio/vhost-vdpa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c
index c5ed7a3779..9eeac8fa8e 100644
--- a/hw/virtio/vhost-vdpa.c
+++ b/hw/virtio/vhost-vdpa.c
@@ -1016,7 +1016,7 @@ static bool vhost_vdpa_svqs_start(struct vhost_dev *dev)
VirtQueue *vq = virtio_get_queue(dev->vdev, dev->vq_index + i);
VhostShadowVirtqueue *svq = g_ptr_array_index(v->shadow_vqs, i);
struct vhost_vring_addr addr = {
- .index = i,
+ .index = dev->vq_index + i,
};
int r;
bool ok = vhost_vdpa_svq_setup(dev, svq, i, &err);
--
2.27.0
- [RFC PATCH v2 00/18] Net Control VQ support with asid in vDPA SVQ, Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 01/18] vdpa: Add x-svq to NetdevVhostVDPAOptions, Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 05/18] virtio-net: Expose ctrl virtqueue logic, Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 02/18] vhost: move descriptor translation to vhost_svq_vring_write_descs, Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 03/18] vdpa: Fix index calculus at vhost_vdpa_svqs_start,
Eugenio Pérez <=
- [RFC PATCH v2 04/18] virtio-net: use g_memdup2() instead of unsafe g_memdup(), Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 06/18] vdpa: Extract get geatures part from vhost_vdpa_get_max_queue_pairs, Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 07/18] virtio: Make virtqueue_alloc_element non-static, Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 08/18] vhost: Add SVQElement, Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 09/18] vhost: Add custom used buffer callback, Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 10/18] vdpa: control virtqueue support on shadow virtqueue, Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 11/18] vhost: Add vhost_iova_tree_find, Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 12/18] vdpa: Add map/unmap operation callback to SVQ, Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 13/18] vhost: Add vhost_svq_inject, Eugenio Pérez, 2022/03/17
- [RFC PATCH v2 14/18] vdpa: add NetClientState->start() callback, Eugenio Pérez, 2022/03/17