Re: [Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation

2010-06-07 Thread Miguel Di Ciurcio Filho
On Mon, Jun 7, 2010 at 12:01 PM, Markus Armbruster wrote: >>          { >>             "device": "user.0", >>             "type": "user", >>             "info": { >>                "net": "10.0.2.0", >>                "netmask": "255.255.255.0" >>             }, >>          }, > > And this one's n

[Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation

2010-06-07 Thread Miguel Di Ciurcio Filho
On Mon, Jun 7, 2010 at 11:48 AM, Anthony Liguori wrote: >> >> 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 r

[Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation

2010-06-07 Thread Avi Kivity
On 06/07/2010 04:48 PM, Anthony Liguori wrote: 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 provi

Re: [Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation

2010-06-07 Thread Markus Armbruster
Miguel Di Ciurcio Filho writes: > On Mon, Jun 7, 2010 at 10:48 AM, Anthony Liguori > 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. >>> >>>

[Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation

2010-06-07 Thread Anthony Liguori
On 06/07/2010 09:41 AM, Miguel Di Ciurcio Filho wrote: On Mon, Jun 7, 2010 at 10:48 AM, Anthony Liguori 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.

[Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation

2010-06-07 Thread Miguel Di Ciurcio Filho
On Mon, Jun 7, 2010 at 10:48 AM, Anthony Liguori 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 p

[Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation

2010-06-07 Thread Anthony Liguori
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 wrote: +Each json-object contain the following: + +- "device": device name (json-string) +- "vlan": only present if the device is attached to a VLAN (jso

[Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation

2010-06-07 Thread Avi Kivity
On 06/07/2010 03:57 PM, Miguel Di Ciurcio Filho wrote: On Sun, Jun 6, 2010 at 12:50 PM, Avi Kivity 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 containin

[Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation

2010-06-07 Thread Miguel Di Ciurcio Filho
On Sun, Jun 6, 2010 at 12:50 PM, Avi Kivity 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

[Qemu-devel] Re: [RFC] QMP: Introduce query-netdevices documentation

2010-06-06 Thread Avi Kivity
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 +++