|
| From: | Anthony Liguori |
| Subject: | Re: [Qemu-devel] [PATCH] s390x: fix -drive in the absence of aliases |
| Date: | Fri, 03 Feb 2012 11:24:02 -0600 |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b2 Thunderbird/3.1.15 |
On 02/03/2012 11:18 AM, Anthony Liguori wrote:
Signed-off-by: Anthony Liguori<address@hidden> --- blockdev.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
*sigh* my work directory was dirty. This needs a #include "arch_init.h" too. Regards, Anthony Liguori
diff --git a/blockdev.c b/blockdev.c
index 7e4c548..7d7ac31 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);
| [Prev in Thread] | Current Thread | [Next in Thread] |