Skip to contentSkip to conversation

Status of query-netdev QMP command

Qemu-devel Roger Pau Monne 2 participants 4 messages Jun 18, 2012 – Jun 19, 2012

lore
Share & tools
lore
#0 lore raw

Hello,

I've read from the GSoC/2010 that some work was being done creating a query-netdev QMP command:

http://wiki.qemu.org/Google_Summer_of_Code_2010/QMP#query-netdev

The status says that "mentor has merged it into his tree", but I cannot see this command anywhere upstream, and it will come really handy for what I'm trying to do, do someone know where this has gone?

Thanks, Roger.

#1 lore raw
Quoted 8 lines · Roger Pau Monne

I've read from the GSoC/2010 that some work was being done creating a query-netdev QMP command:

http://wiki.qemu.org/Google_Summer_of_Code_2010/QMP#query-netdev

The status says that "mentor has merged it into his tree", but I cannot see this command anywhere upstream, and it will come really handy for what I'm trying to do, do someone know where this has gone?

I checked qemu.git/master and don't see it either. The HMP "info net" command lists the net devices but I'm not aware of a QMP equivalent. What are you trying to do?

Stefan

#2 lore raw
Quoted 6 lines · Stefan Hajnoczi
Quoted 5 lines · Roger Pau Monne

I've read from the GSoC/2010 that some work was being done creating a query-netdev QMP command:

http://wiki.qemu.org/Google_Summer_of_Code_2010/QMP#query-netdev

Quoted 7 lines
Quoted 3 lines

The status says that "mentor has merged it into his tree", but I cannot see this command anywhere upstream, and it will come really handy for what I'm trying to do, do someone know where this has gone?

I checked qemu.git/master and don't see it either. The HMP "info net" command lists the net devices but I'm not aware of a QMP equivalent. What are you trying to do?

On Linux you can pass the name of the tap device you wish to create, and Qemu honors that, but on BSD systems you have no way of creating a tap device with a specific name, they are assigned based on the lowest free number (tap2 for example).

I need the query-netdev command in order to get the name of the device that Qemu creates, so I can use it in my scripts afterwards.

Roger.

#3 lore raw
Quoted 22 lines · Roger Pau Monne
Quoted 16 lines · Stefan Hajnoczi
Quoted 11 lines · Roger Pau Monne

I've read from the GSoC/2010 that some work was being done creating a query-netdev QMP command:

http://wiki.qemu.org/Google_Summer_of_Code_2010/QMP#query-netdev

The status says that "mentor has merged it into his tree", but I cannot see
this command anywhere upstream, and it will come really handy for what I'm
trying to do, do someone know where this has gone?

Quoted 3 lines

I checked qemu.git/master and don't see it either.  The HMP "info net" command lists the net devices but I'm not aware of a QMP equivalent. What are you trying to do?

Quoted 7 lines

On Linux you can pass the name of the tap device you wish to create, and Qemu honors that, but on BSD systems you have no way of creating a tap device with a specific name, they are assigned based on the lowest free number (tap2 for example).

I need the query-netdev command in order to get the name of the device that Qemu creates, so I can use it in my scripts afterwards.

Can you use -netdev tap,script=mycallback.sh to do that? It gets passed the interface name as argv[1].

Stefan