qemu/include/hw/virtio
Paolo Bonzini 6aa46d8ff1 virtio: move VirtQueueElement at the beginning of the structs
The next patch will make virtqueue_pop/vring_pop allocate memory for
the VirtQueueElement. In some cases (blk, scsi, gpu) the device wants
to extend VirtQueueElement with device-specific fields and, until now,
the place of the VirtQueueElement within the containing struct didn't
matter. When allocating the entire block in virtqueue_pop/vring_pop,
however, the containing struct must basically be a "subclass" of
VirtQueueElement, with the VirtQueueElement as the first field. Make
that the case for blk and scsi; gpu is already doing it.

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>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2016-02-04 19:53:02 +02:00
..
dataplane virtio dataplane: adapt dataplane for virtio Version 1 2015-10-12 11:16:45 +01:00
vhost-backend.h vhost user: add rarp sending after live migration for legacy guest 2015-10-22 14:34:49 +03:00
vhost-scsi.h vhost-scsi: include linux/vhost.h 2015-09-25 12:04:41 +02:00
vhost.h vhost: drop dead code 2015-12-02 17:59:13 +02:00
virtio-access.h virtio: avoid leading underscores for helpers 2015-09-10 11:06:05 +03:00
virtio-balloon.h balloon: add a feature bit to let Guest OS deflate balloon on oom 2015-06-23 17:08:21 +02:00
virtio-blk.h virtio: move VirtQueueElement at the beginning of the structs 2016-02-04 19:53:02 +02:00
virtio-bus.h virtio: handle non-virtio-1-capable backend for ccw 2015-12-02 19:34:11 +02:00
virtio-gpu.h virtio-gpu: block any rendering until client (ui) is done 2016-02-03 10:41:36 +01:00
virtio-input.h virtio-input: add input routing support 2015-07-03 12:21:11 +02:00
virtio-net.h virtio-net: remove useless codes 2015-08-13 14:08:29 +03:00
virtio-rng.h virtio-rng: trigger timer only when guest requests for entropy 2015-07-17 19:05:16 +05:30
virtio-scsi.h virtio: move VirtQueueElement at the beginning of the structs 2016-02-04 19:53:02 +02:00
virtio-serial.h virtio-serial-bus: move qdev properties into virtio-serial-bus.c 2015-06-10 18:15:34 +02:00
virtio.h virtio: drop virtqueue_map_sg 2015-10-29 11:05:24 +02:00