qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] s390x: fix -drive in the absence of aliases
@ 2012-02-03 17:18 Anthony Liguori
  2012-02-03 17:24 ` Anthony Liguori
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony Liguori @ 2012-02-03 17:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Alex Graf

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
---
 blockdev.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

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);
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] s390x: fix -drive in the absence of aliases
  2012-02-03 17:18 [Qemu-devel] [PATCH] s390x: fix -drive in the absence of aliases Anthony Liguori
@ 2012-02-03 17:24 ` Anthony Liguori
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2012-02-03 17:24 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel, Alex Graf

On 02/03/2012 11:18 AM, Anthony Liguori wrote:
> Signed-off-by: Anthony Liguori<aliguori@us.ibm.com>
> ---
>   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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-03 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-03 17:18 [Qemu-devel] [PATCH] s390x: fix -drive in the absence of aliases Anthony Liguori
2012-02-03 17:24 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).