]> git.proxmox.com Git - mirror_qemu.git/commitdiff
s390x: fix -drive in the absence of aliases
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 3 Feb 2012 17:13:30 +0000 (11:13 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 3 Feb 2012 17:13:30 +0000 (11:13 -0600)
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
blockdev.c

index 7e4c548426c5ff6dc6ec890b814714b04a3522e6..7d7ac31677bd807da449ce442bf322f197e0cffb 100644 (file)
@@ -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);