qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Status of query-netdev QMP command
@ 2012-06-18 14:19 Roger Pau Monne
  2012-06-19 10:39 ` Stefan Hajnoczi
  0 siblings, 1 reply; 4+ messages in thread
From: Roger Pau Monne @ 2012-06-18 14:19 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Status of query-netdev QMP command
  2012-06-18 14:19 [Qemu-devel] Status of query-netdev QMP command Roger Pau Monne
@ 2012-06-19 10:39 ` Stefan Hajnoczi
  2012-06-19 10:53   ` Roger Pau Monne
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Hajnoczi @ 2012-06-19 10:39 UTC (permalink / raw)
  To: Roger Pau Monne; +Cc: qemu-devel@nongnu.org, Luiz Capitulino

On Mon, Jun 18, 2012 at 3:19 PM, Roger Pau Monne <roger.pau@citrix.com> wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Status of query-netdev QMP command
  2012-06-19 10:39 ` Stefan Hajnoczi
@ 2012-06-19 10:53   ` Roger Pau Monne
  2012-06-19 11:03     ` Stefan Hajnoczi
  0 siblings, 1 reply; 4+ messages in thread
From: Roger Pau Monne @ 2012-06-19 10:53 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: qemu-devel@nongnu.org, Luiz Capitulino

Stefan Hajnoczi wrote:
> On Mon, Jun 18, 2012 at 3:19 PM, Roger Pau Monne<roger.pau@citrix.com>  wrote:
>> 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?

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Status of query-netdev QMP command
  2012-06-19 10:53   ` Roger Pau Monne
@ 2012-06-19 11:03     ` Stefan Hajnoczi
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2012-06-19 11:03 UTC (permalink / raw)
  To: Roger Pau Monne; +Cc: qemu-devel@nongnu.org, Luiz Capitulino

On Tue, Jun 19, 2012 at 11:53 AM, Roger Pau Monne <roger.pau@citrix.com> wrote:
> Stefan Hajnoczi wrote:
>>
>> On Mon, Jun 18, 2012 at 3:19 PM, Roger Pau Monne<roger.pau@citrix.com>
>>  wrote:
>>>
>>> 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?
>
>
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-19 11:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18 14:19 [Qemu-devel] Status of query-netdev QMP command Roger Pau Monne
2012-06-19 10:39 ` Stefan Hajnoczi
2012-06-19 10:53   ` Roger Pau Monne
2012-06-19 11:03     ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).