From: Markus Armbruster <armbru@redhat.com>
To: Miguel Di Ciurcio Filho <miguel.filho@gmail.com>
Cc: qemu-devel@nongnu.org, Avi Kivity <avi@redhat.com>,
lcapitulino@redhat.com
Subject: Re: [Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation
Date: Mon, 07 Jun 2010 17:01:45 +0200 [thread overview]
Message-ID: <m3ocfm7up2.fsf@blackfin.pond.sub.org> (raw)
In-Reply-To: <AANLkTinsn7VfL1GHYmihjmWc9Vx8mJdxLWwh3P3qZt_o@mail.gmail.com> (Miguel Di Ciurcio Filho's message of "Mon, 7 Jun 2010 11:41:16 -0300")
Miguel Di Ciurcio Filho <miguel.filho@gmail.com> writes:
> On Mon, Jun 7, 2010 at 10:48 AM, Anthony Liguori <anthony@codemonkey.ws> wrote:
>>>>
>>>> $ qemu -netdev tap,id=tap0 -device e1000,netdev=tap0
>>>>
>>>> This makes a 1:1 relation. So clearly tap0 is a host device, e1000.0
>>>> will be a guest device, and they are connected.
>>>
>>> Yes. I'd want separate queries for each, or perhaps a single query that
>>> returns
>>>
>>> { 'hostdev': some-object-with-host-device-properties-only, 'nic':
>>> some-object-that-describes-the-guest-nic }
>>
>> We need a query-netdev and then info qdm already provides the guest nic
>> properties. Just filter out devices that have a netdev property.
>>
>
> How about this small draft:
>
> Possible values for "type": tap, user, vde and socket. The 'info'
> object contains all the parameters available via -netdev type,args.
>
> Notice: vlan is still there, unless the support for it is removed, IMHO.
Agreed. As long as we have VLANs, we better cover them here.
> -> { "execute": "query-netdev" }
> <- {
> "return": [
> {
> "device": "tap.0",
> "vlan": 0,
> "type": "tap",
> "info": {
> "script": "/etc/qemu-ifup",
> "downscript": "/etc/qemu-ifdown",
> "ifname": "tap0",
> },
This one's connected to a VLAN, namely #0. Any guest device on the same
VLAN has a "vlan" property with the value 0.
> {
> "device": "user.0",
> "type": "user",
> "info": {
> "net": "10.0.2.0",
> "netmask": "255.255.255.0"
> },
> },
And this one's not connected to a VLAN. It may or may not be connected
to a single guest device. If it is, then that device has a "netdev"
property pointing to it.
For what it's worth, "info network" shows that device as "peer=ID".
next prev parent reply other threads:[~2010-06-07 15:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-04 14:06 [Qemu-devel] [RFC] QMP: Introduce query-netdevices documentation Miguel Di Ciurcio Filho
2010-06-06 15:50 ` [Qemu-devel] " Avi Kivity
2010-06-07 12:57 ` Miguel Di Ciurcio Filho
2010-06-07 13:39 ` Avi Kivity
2010-06-07 13:48 ` Anthony Liguori
2010-06-07 14:41 ` Miguel Di Ciurcio Filho
2010-06-07 14:48 ` Anthony Liguori
2010-06-07 19:39 ` Miguel Di Ciurcio Filho
2010-06-07 15:01 ` Markus Armbruster [this message]
2010-06-07 19:48 ` Miguel Di Ciurcio Filho
2010-06-07 15:54 ` Avi Kivity
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=m3ocfm7up2.fsf@blackfin.pond.sub.org \
--to=armbru@redhat.com \
--cc=avi@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=miguel.filho@gmail.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.