Allocate the arrays for in_addr/out_addr/in_sg/out_sg outside the
VirtQueueElement. For now, virtqueue_pop and vring_pop keep
allocating a very large VirtQueueElement.
Reviewed-by: Cornelia Huck
Signed-off-by: Paolo Bonzini
---
v1->v2: add assertions on sz [Conny]
hw/virtio/dataplane/
On Fri, 15 Jan 2016 13:41:52 +0100
Paolo Bonzini wrote:
> Allocate the arrays for in_addr/out_addr/in_sg/out_sg outside the
> VirtQueueElement. For now, virtqueue_pop and vring_pop keep
> allocating a very large VirtQueueElement.
>
> Signed-off-by: Paolo Bonzini
> ---
> hw/virtio/dataplane/vr
Allocate the arrays for in_addr/out_addr/in_sg/out_sg outside the
VirtQueueElement. For now, virtqueue_pop and vring_pop keep
allocating a very large VirtQueueElement.
Signed-off-by: Paolo Bonzini
---
hw/virtio/dataplane/vring.c | 2 +-
hw/virtio/virtio.c | 109 ++