From: "Richard W.M. Jones" <rjones@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Using virtio-mmio
Date: Wed, 31 Jul 2013 23:45:10 +0100 [thread overview]
Message-ID: <20130731224510.GD1441@redhat.com> (raw)
In-Reply-To: <CAFEAcA88ZvbByX9=oM49fd+x2bpHv+3i9NFU7NvVg=R-pnZR1g@mail.gmail.com>
On Wed, Jul 31, 2013 at 11:01:11PM +0100, Peter Maydell wrote:
> On 31 July 2013 22:56, Richard W.M. Jones <rjones@redhat.com> wrote:
> > It's quite exciting the virtio-mmio made it into qemu. Are extra
> > guest kernel components needed too? (I'm using 3.9.9-302.fc19.armv7hl
> > but could try a later kernel)
>
> I think you're OK there, the support's been in the kernel for
> much longer than it's been in QEMU.
>
> > Anyway, I tried to get it to work, but can't quite work out the qemu
> > command line. So far I have:
> >
> > $ ~/d/qemu/arm-softmmu/qemu-system-arm -M vexpress-a15 -cpu cortex-a15 \
> > -nographic -kernel kernel -initrd initrd \
> > -drive file=root,if=virtio \
> > -append "root=/dev/vda"
> > qemu-system-arm: -drive file=root,if=virtio: No 'PCI' bus found for device 'virtio-blk-pci'
>
> You need to specify things longhand with the virtio-blk-device etc
> devices, because the shortcuts all assume virtio is PCI. So in
> this case:
>
> -drive if=none,file=root,id=foo \
> -device virtio-blk-device,drive=foo
Thanks. For the record, here is the final command line that boots as
far as the kernel [I'm still working on my initrd ..]:
~/d/qemu/arm-softmmu/qemu-system-arm \
-m 512 -M vexpress-a9 -machine kernel_irqchip=on \
-kernel kernel -initrd initrd \
-drive if=none,file=root,id=foo -device virtio-blk-device,drive=foo \
-append "root=/dev/vda console=ttyAMA0 rootwait earlyprintk debug" \
-serial stdio
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
next prev parent reply other threads:[~2013-07-31 22:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-31 21:56 [Qemu-devel] Using virtio-mmio Richard W.M. Jones
2013-07-31 22:01 ` Peter Maydell
2013-07-31 22:45 ` Richard W.M. Jones [this message]
2013-08-01 9:32 ` Peter Maydell
2013-08-01 10:41 ` Richard W.M. Jones
2013-08-01 10:58 ` Peter Maydell
2013-08-01 11:53 ` Richard W.M. Jones
2013-08-02 17:48 ` Erlon Cruz
2013-08-03 3:21 ` Yao Xingtao
2013-08-03 10:03 ` Peter Maydell
2013-08-07 13:38 ` Erlon Cruz
2013-08-08 14:25 ` Erlon Cruz
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=20130731224510.GD1441@redhat.com \
--to=rjones@redhat.com \
--cc=peter.maydell@linaro.org \
--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 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).