diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-03 11:13:30 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-03 11:13:30 -0600 |
commit | eeb9c1b552c7e30d6fc10e8c5ccab4b0ea4826c0 (patch) | |
tree | 87d791dbfb2fe2790c4f5def4ef98a97f4402ba3 /blockdev.c | |
parent | 8b45d447ce5cce07cbdf0f42b969137430284d5c (diff) |
s390x: fix -drive in the absence of aliases
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r-- | blockdev.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c index 7e4c548426..7d7ac31677 100644 --- a/blockdev.c +++ b/blockdev.c @@ -565,7 +565,11 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi) case IF_VIRTIO: /* add virtio block device */ opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0); - qemu_opt_set(opts, "driver", "virtio-blk"); + if (arch_type == QEMU_ARCH_S390X) { + qemu_opt_set(opts, "driver", "virtio-blk-s390"); + } else { + qemu_opt_set(opts, "driver", "virtio-blk-pci"); + } qemu_opt_set(opts, "drive", dinfo->id); if (devaddr) qemu_opt_set(opts, "addr", devaddr); |