All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: qemu-devel@nongnu.org, Alex Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH] s390x: fix -drive in the absence of aliases
Date: Fri, 03 Feb 2012 11:24:02 -0600	[thread overview]
Message-ID: <4F2C1832.90101@codemonkey.ws> (raw)
In-Reply-To: <1328289484-7305-1-git-send-email-aliguori@us.ibm.com>

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

      reply	other threads:[~2012-02-03 17:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F2C1832.90101@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=agraf@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.