On Fri, 15 Jan 2016 13:41:52 +0100 Paolo Bonzini <pbonz...@redhat.com> 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 <pbonz...@redhat.com> > --- > hw/virtio/dataplane/vring.c | 2 +- > hw/virtio/virtio.c | 109 > ++++++++++++++++++++++++++++++++++++++++---- > include/hw/virtio/virtio.h | 9 ++-- > 3 files changed, 105 insertions(+), 15 deletions(-) Reviewed-by: Cornelia Huck <cornelia.h...@de.ibm.com>