diff options
author | KONRAD Frederic <fred.konrad@greensocs.com> | 2013-03-21 15:15:12 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-03-26 09:26:34 -0500 |
commit | 22219527f4272f5199a581bbd3950e9ba96bbc75 (patch) | |
tree | c2cfe83ff4d04744e3fc7b8c7818b868ce4ec4f5 /hw/virtio-scsi.h | |
parent | 394e2e4c59294f2c5da58d2970693667218c7cf3 (diff) |
virtio-scsi: allocate cmd_vqs array separately.
Allocate/Free the cmd_vqs array separately to have a fixed size device.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Message-id: 1363875320-7985-3-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio-scsi.h')
-rw-r--r-- | hw/virtio-scsi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio-scsi.h b/hw/virtio-scsi.h index 6a0a95e07b..fb83b67cf7 100644 --- a/hw/virtio-scsi.h +++ b/hw/virtio-scsi.h @@ -44,7 +44,7 @@ typedef struct VirtIOSCSI { bool events_dropped; VirtQueue *ctrl_vq; VirtQueue *event_vq; - VirtQueue *cmd_vqs[0]; + VirtQueue **cmd_vqs; } VirtIOSCSI; #define DEFINE_VIRTIO_SCSI_PROPERTIES(_state, _features_field, _conf_field) \ |