From: Fam Zheng <famz@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
benoit.canet@irqsave.net, qemu-devel@nongnu.org,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2] block: Introduce "null" driver
Date: Thu, 28 Aug 2014 17:39:47 +0800 [thread overview]
Message-ID: <20140828093947.GA11352@T430.redhat.com> (raw)
In-Reply-To: <877g1t3tx9.fsf@blackfin.pond.sub.org>
On Thu, 08/28 10:22, Markus Armbruster wrote:
> Fam Zheng <famz@redhat.com> writes:
>
> > This is an analogue to Linux null_blk. It can be used for testing block
> > device emulation and general block layer functionalities such as
> > coroutines and throttling, where disk IO is not necessary or wanted.
> >
> > Use null:// for AIO version, and null-co:// for coroutine version.
> >
> > Signed-off-by: Fam Zheng <famz@redhat.com>
> >
> > ---
> > V2: Don't #ifdef code, add two drivers. (Benoit)
> > Add to QAPI BlockdevOptions. (Eric)
> > Add "file.size" option to override backend size. (What is a better
> > way to associate /dev/vd{a,b,c} with command line devices, if sizes
> > are the same?)
>
> Is this a request for advice? If yes, please explain the problem in
> more detail, because I'm too dense to get it :)
>
Yes :)
I have more than one virtio-blk:
-drive file=/dev/ram0,id=d0,if=none -device virtio-blk-pci,drive=d0,x-datap-plane=on \
-drive file=/dev/ram1,id=d0,if=none -device virtio-blk-pci,drive=d1
Then I get /dev/vda and /dev/vdb in guest. They are in the same size.
The question is how do I tell which is /dev/ram0 and which is /dev/ram1,
without bothering peaking PCI addr, etc.?
Fam
next prev parent reply other threads:[~2014-08-28 9:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-28 4:02 [Qemu-devel] [PATCH v2] block: Introduce "null" driver Fam Zheng
2014-08-28 4:44 ` Benoît Canet
2014-08-28 8:22 ` Markus Armbruster
2014-08-28 9:39 ` Fam Zheng [this message]
2014-08-28 9:52 ` Markus Armbruster
2014-08-28 10:10 ` Fam Zheng
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=20140828093947.GA11352@T430.redhat.com \
--to=famz@redhat.com \
--cc=armbru@redhat.com \
--cc=benoit.canet@irqsave.net \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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.