[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH] fixup! dataplane: support non-contigious s/g
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-block] [PATCH] fixup! dataplane: support non-contigious s/g |
Date: |
Wed, 28 Oct 2015 23:18:42 +0200 |
Should fix issues Stefan reported.
---
Built only.
hw/virtio/dataplane/vring.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/virtio/dataplane/vring.c b/hw/virtio/dataplane/vring.c
index 9ae9424..23f667e 100644
--- a/hw/virtio/dataplane/vring.c
+++ b/hw/virtio/dataplane/vring.c
@@ -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;
--
MST
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-block] [PATCH] fixup! dataplane: support non-contigious s/g,
Michael S. Tsirkin <=