mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
s390x: fix -drive in the absence of aliases
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
8b45d447ce
commit
eeb9c1b552
1 changed files with 5 additions and 1 deletions
|
@ -565,7 +565,11 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi)
|
||||||
case IF_VIRTIO:
|
case IF_VIRTIO:
|
||||||
/* add virtio block device */
|
/* add virtio block device */
|
||||||
opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0);
|
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);
|
qemu_opt_set(opts, "drive", dinfo->id);
|
||||||
if (devaddr)
|
if (devaddr)
|
||||||
qemu_opt_set(opts, "addr", devaddr);
|
qemu_opt_set(opts, "addr", devaddr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue