From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=58592 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLI7Q-0002mJ-OM for qemu-devel@nongnu.org; Sun, 06 Jun 2010 11:50:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLI7P-0007ce-H2 for qemu-devel@nongnu.org; Sun, 06 Jun 2010 11:50:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59425) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLI7P-0007cK-A1 for qemu-devel@nongnu.org; Sun, 06 Jun 2010 11:50:35 -0400 Message-ID: <4C0BC3C4.6010207@redhat.com> Date: Sun, 06 Jun 2010 18:50:28 +0300 From: Avi Kivity MIME-Version: 1.0 References: <1275660360-12137-1-git-send-email-miguel.filho@gmail.com> In-Reply-To: <1275660360-12137-1-git-send-email-miguel.filho@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Miguel Di Ciurcio Filho Cc: lcapitulino@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com On 06/04/2010 05:06 PM, Miguel Di Ciurcio Filho wrote: > This introduces the protocol specification for querying information about > network devices available on a VM and a new monitor command that show the same > information. > > Signed-off-by: Miguel Di Ciurcio Filho > --- > qemu-monitor.hx | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 69 insertions(+), 0 deletions(-) > > diff --git a/qemu-monitor.hx b/qemu-monitor.hx > index f6a94f2..8600129 100644 > --- a/qemu-monitor.hx > +++ b/qemu-monitor.hx > @@ -1674,6 +1674,75 @@ show the various VLANs and the associated devices > ETEXI > > STEXI > +@item info netdevices > +show information about network devices > +ETEXI > +SQMP > +query-netdevices > +---------------- > + > +Each device is represented by a json-object. The returned value is a json-array > +of all devices. > + > +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. -- error compiling committee.c: too many arguments to function