Skip to contentSkip to conversation

fixup! dataplane: support non-contigious s/g

PATCH Applied Michael S. Tsirkin 2 participants 2 messages Oct 28, 2015 – Nov 2, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixup! dataplane: support non-contigious s/g

Should fix issues Stefan reported.

---

Built only.

 hw/virtio/dataplane/vring.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/virtio/dataplane/vring.c +2 -2
index 9ae9424..23f667e 100644
@@ -261,8 +261,8 @@ static int get_desc(Vring *vring, VirtQueueElement *elem,
 
         /* The MemoryRegion is looked up again and unref'ed later, leave the
          * ref in place.  */
-        iov->iov_len = len;
-        *addr = desc->addr;
+        (iov++)->iov_len = len;
+        *addr++ = desc->addr;
         desc->len -= len;
         desc->addr += len;
         *num += 1;
Signature · 1 line
MST
#1 lore raw
Quoted 8 lines · Michael S. Tsirkin

Should fix issues Stefan reported.

---

Built only.

 hw/virtio/dataplane/vring.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Squashed in to the previous commit.

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan