qemu-e2k/hw/virtio
Paolo Bonzini 5dba97ebdc vring: slim down allocation of VirtQueueElements
Build the addresses and s/g lists on the stack, and then copy them
to a VirtQueueElement that is just as big as required to contain this
particular s/g list.  The cost of the copy is minimal compared to that
of a large malloc.

Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2016-02-06 20:44:08 +02:00
..
dataplane vring: slim down allocation of VirtQueueElements 2016-02-06 20:44:08 +02:00
Makefile.objs
vhost-backend.c
vhost-user.c
vhost.c
virtio-balloon.c
virtio-bus.c
virtio-mmio.c
virtio-pci.c
virtio-pci.h
virtio-rng.c
virtio.c