qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH v7 10/25] vdpa: Fix index calculus at vhost_vdpa_svqs_sta


From: Jason Wang
Subject: Re: [RFC PATCH v7 10/25] vdpa: Fix index calculus at vhost_vdpa_svqs_start
Date: Thu, 14 Apr 2022 13:59:02 +0800
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.0


在 2022/4/14 00:31, Eugenio Pérez 写道:
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
---


Acked-by: Jason Wang <jasowang@redhat.com>

(Need some changelog anyhow).

Thanks


  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 27ee678dc9..6b370c918c 100644
--- a/hw/virtio/vhost-vdpa.c
+++ b/hw/virtio/vhost-vdpa.c
@@ -1019,7 +1019,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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]