qemu/hw/scsi
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
..
Makefile.objs virtio-scsi-dataplane: Code to run virtio-scsi on iothread 2014-09-30 11:11:20 +02:00
esp-pci.c hw/scsi: Clean up includes 2016-01-29 15:07:24 +00:00
esp.c hw/scsi: Clean up includes 2016-01-29 15:07:24 +00:00
lsi53c895a.c hw/scsi: Clean up includes 2016-01-29 15:07:24 +00:00
megasas.c hw/scsi: Clean up includes 2016-01-29 15:07:24 +00:00
mfi.h megasas: add MegaRAID SAS 2108 emulation 2014-10-31 11:29:00 +01:00
scsi-bus.c hw/scsi: Clean up includes 2016-01-29 15:07:24 +00:00
scsi-disk.c hw/scsi: Clean up includes 2016-01-29 15:07:24 +00:00
scsi-generic.c hw/scsi: Clean up includes 2016-01-29 15:07:24 +00:00
spapr_vscsi.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
srp.h spapr-vscsi: add task management 2013-09-12 08:46:21 +02:00
vhost-scsi.c hw/scsi: Clean up includes 2016-01-29 15:07:24 +00:00
viosrp.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
virtio-scsi-dataplane.c virtio: Clean up includes 2016-01-29 15:07:23 +00:00
virtio-scsi.c virtio: move VirtQueueElement at the beginning of the structs 2016-02-04 19:53:02 +02:00
vmw_pvscsi.c hw/scsi: Clean up includes 2016-01-29 15:07:24 +00:00
vmw_pvscsi.h scsi: VMWare PVSCSI paravirtual device implementation 2013-04-19 10:44:17 +02:00