qemu/include/hw/virtio
Stefan Hajnoczi abd764250f dataplane: do not free VirtQueueElement in vring_push()
VirtQueueElement is allocated in vring_pop() so it seems to make sense
that vring_push() should free it.  Alas, virtio-blk frees
VirtQueueElement itself in virtio_blk_free_request().

This patch solves a double-free assertion in glib's g_slice_free().

Rename vring_free_element() to vring_unmap_element() since it no longer
frees the VirtQueueElement.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-07-14 12:03:20 +02:00
..
dataplane dataplane: do not free VirtQueueElement in vring_push() 2014-07-14 12:03:20 +02:00
vhost-backend.h Add vhost-backend and VhostBackendType 2014-06-19 16:41:56 +03:00
vhost-scsi.h vhost-scsi: new device supporting the tcm_vhost Linux kernel module 2013-04-19 16:18:11 +02:00
vhost.h vhost: block migration if backend does not log memory 2014-06-23 17:37:59 +03:00
virtio-9p.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-access.h virtio: memory accessors for endian-ambivalent targets 2014-06-29 19:39:42 +03:00
virtio-balloon.h virtio: fix broken aliases. 2013-04-15 10:22:04 -05:00
virtio-blk.h virtio: move common virtio properties to bus class device 2014-07-06 09:13:54 +03:00
virtio-bus.h virtio-bus: cleanup plug/unplug interface 2013-12-09 21:46:48 +01:00
virtio-net.h virtio: move common virtio properties to bus class device 2014-07-06 09:13:54 +03:00
virtio-rng.h virtio-rng: Convert to QOM realize 2013-12-09 21:46:49 +01:00
virtio-scsi.h virtio: move common virtio properties to bus class device 2014-07-06 09:13:54 +03:00
virtio-serial.h virtio-serial-port: Convert to QOM realize/unrealize 2014-03-13 01:21:57 +01:00
virtio.h virtio: add endian-ambivalent support to VirtIODevice 2014-06-29 19:39:42 +03:00