diff options
author | KONRAD Frederic <fred.konrad@greensocs.com> | 2013-04-30 16:08:51 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-05-03 12:05:15 -0500 |
commit | 6f32a6b47ef4247ad14dad63c6ee231fdce4c5e9 (patch) | |
tree | 8df753bc784568705a858c9736cc11d7215e4cd0 /hw/scsi | |
parent | 80270a19685dd20eda017b0360c743b3e3ed6f57 (diff) | |
download | qemu-6f32a6b47ef4247ad14dad63c6ee231fdce4c5e9.zip qemu-6f32a6b47ef4247ad14dad63c6ee231fdce4c5e9.tar.gz qemu-6f32a6b47ef4247ad14dad63c6ee231fdce4c5e9.tar.bz2 |
virtio-scsi: fix the command line compatibility.
The bus name is wrong since the refactoring.
This keeps the behaviour of the command line.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Message-id: 1367330931-12994-6-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi')
-rw-r--r-- | hw/scsi/virtio-scsi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index f7ce743..08dd3f3 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -624,7 +624,8 @@ static int virtio_scsi_device_init(VirtIODevice *vdev) return ret; } - scsi_bus_new(&s->bus, qdev, &virtio_scsi_scsi_info, NULL); + scsi_bus_new(&s->bus, qdev, &virtio_scsi_scsi_info, vdev->bus_name); + if (!qdev->hotplugged) { scsi_bus_legacy_handle_cmdline(&s->bus); } |