On Tue, Jun 22, 2010 at 10:06 AM, Luiz Capitulino <lcapitul...@redhat.com> wrote: > On Mon, 21 Jun 2010 17:31:28 -0300 > Miguel Di Ciurcio Filho <miguel.fi...@gmail.com> wrote: > >> These commands show the information about active backend network devices. >> >> Changes from v2 >> --------------- >> - Got rid of vlans, a separate command for them will be created if needed >> - Removed socket as a type (it is used to connect vlans) >> - 'script', 'downscript' and 'vhostfd' are now optional when type is 'tap' >> - Reworded the explanation of 'peer' >> >> Signed-off-by: Miguel Di Ciurcio Filho <miguel.fi...@gmail.com> >> --- >> qemu-monitor.hx | 96 >> +++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> 1 files changed, 96 insertions(+), 0 deletions(-) >> >> diff --git a/qemu-monitor.hx b/qemu-monitor.hx >> index 9f62b94..cffd69e 100644 >> --- a/qemu-monitor.hx >> +++ b/qemu-monitor.hx >> @@ -1674,6 +1674,102 @@ show the various VLANs and the associated devices >> ETEXI >> >> STEXI >> +...@item info netdev >> +show information about the current backend network devices >> +ETEXI >> +SQMP >> +query-netdev >> +------------ >> + >> +Each device is represented by a json-object. The returned value is a >> json-array >> +of all devices. >> + >> +Each json-object contains the following: >> + >> +- "id": the device's ID, must be unique (json-string) >> +- "type": device type (json-string) >> + - Possible values: "tap", "user", "vde" > > What has happened to socket? Looks good otherwise. >
Socket does not support an 1:1 relationship and it is used just to connect vlans, as I explained in the changelog. $ qemu -netdev type=socket,listen=:3000,id=ss -device e1000,netdev=ss qemu: -device e1000,netdev=ss: Property 'e1000.netdev' can't find value 'ss' Regards, Miguel