qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: lcapitulino@redhat.com,
	Miguel Di Ciurcio Filho <miguel.filho@gmail.com>,
	qemu-devel@nongnu.org, armbru@redhat.com
Subject: [Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation
Date: Mon, 07 Jun 2010 08:48:10 -0500	[thread overview]
Message-ID: <4C0CF89A.9030202@codemonkey.ws> (raw)
In-Reply-To: <4C0CF67B.8080601@redhat.com>

On 06/07/2010 08:39 AM, Avi Kivity wrote:
> On 06/07/2010 03:57 PM, Miguel Di Ciurcio Filho wrote:
>> On Sun, Jun 6, 2010 at 12:50 PM, Avi Kivity<avi@redhat.com>  wrote:
>>>> +Each json-object contain the following:
>>>> +
>>>> +- "device": device name (json-string)
>>>> +- "vlan": only present if the device is attached to a VLAN (json-int)
>>>> +- "info": json-object containing the following:
>>>> +          - "model": type of the device (json-string)
>>>> +              - Possible values: "tap", "socket", "xen", "slirp", 
>>>> "dump",
>>>> +                                 "vde", "ne2k_pci", "i82551", 
>>>> "i82557b",
>>>> +                                 "i82559er", "rtl8139", "e1000", 
>>>> "pcnet",
>>>> +                                 "virtio", "dp83932", "lan9118",
>>>> "mcf_fec",
>>>> +                                 "xilinx-ethlite", "lance", 
>>>> "stellaris",
>>>> +                                 "smc91c111", "ne2k_isa", 
>>>> "mv88w8618",
>>>> +                                 "mipsnet", "fseth", "dp83932", "usb"
>>>>
>>> This casts the vlan model into concrete.  I thought we wanted to 
>>> move away
>>> from it?  Instead have separate entries for host and guest devices.
>> The vlan attribute is optional. In this case, it is a vlan inside the
>> context of the VM. I've searched the archives and I've found some
>> references about the confusion about real VLANs (802.1Q) and QEMU's
>> vlans. Correct me if I'm wrong, but I suppose they are completely
>> different animals.
>
> Right.  I'm talking about the qemu internal vlans.
>
>> When you say separate entries for host and guest devices, you mean
>> something like this:
>>
>> $ 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.

Regards,

Anthony Liguori

>> $ qemu -net tap,ifname=tap0 -net nic,model=e1000
>>
>> This glues the two devices into a vlan inside the VM.
>>
>> Do you mean that this second model should be deprecated?
>
> I think it is.  It doesn't play well with acceleration technologies 
> like vhost that want a 1:1 relationship.
>

  reply	other threads:[~2010-06-07 13:48 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 [this message]
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
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=4C0CF89A.9030202@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=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 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).