[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 a...@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

[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 Kivitya...@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

[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 anth...@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,

[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 Liguorianth...@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

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

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

[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

[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 anth...@codemonkey.ws 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

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 arm...@redhat.com wrote:          {             device: user.0,             type: user,             info: {                net: 10.0.2.0,                netmask: 255.255.255.0             },          }, And this one's not connected to a

[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 Filhomiguel.fi...@gmail.com ---