qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC] New Monitor command: 'info netdevices'
@ 2010-05-13 14:18 Luiz Capitulino
  2010-05-14  9:46 ` Markus Armbruster
  2010-05-14 13:30 ` [Qemu-devel] " Anthony Liguori
  0 siblings, 2 replies; 5+ messages in thread
From: Luiz Capitulino @ 2010-05-13 14:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori, miguel.filho, armbru


 Hi there,

 Miguel is working on converting 'info network' to QMP, but turns out that it's
been quite difficult to maintain the exact same output.

 The main problem seems to be the usage of the 'info_str' string, which some
drivers (like tap, xen, vde, socket, etc) write arbitrary data into it. Then,
it's difficult to maintain the same output when we store the same data in
a qdict.

 Another problem is wrt to maintaining the same ordering of devices, while
there's a solution for this one, the code gets ugly.

 We have to choices:

1. Convert it, anyway. Try our best not to break the output, even knowing
   this is likely to happen

2. Play it safe and introduce a new 'info netdevices' command, which
   just print one device per line

 I think 2 is better.

PS: As far as I know, 'info network' is not used by libvirt.

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

* Re: [Qemu-devel] [RFC] New Monitor command: 'info netdevices'
  2010-05-13 14:18 [Qemu-devel] [RFC] New Monitor command: 'info netdevices' Luiz Capitulino
@ 2010-05-14  9:46 ` Markus Armbruster
  2010-05-14 12:38   ` Miguel Di Ciurcio Filho
  2010-05-14 13:30 ` [Qemu-devel] " Anthony Liguori
  1 sibling, 1 reply; 5+ messages in thread
From: Markus Armbruster @ 2010-05-14  9:46 UTC (permalink / raw)
  To: Luiz Capitulino; +Cc: aliguori, miguel.filho, qemu-devel

Luiz Capitulino <lcapitulino@redhat.com> writes:

>  Hi there,
>
>  Miguel is working on converting 'info network' to QMP, but turns out that it's
> been quite difficult to maintain the exact same output.
>
>  The main problem seems to be the usage of the 'info_str' string, which some
> drivers (like tap, xen, vde, socket, etc) write arbitrary data into it. Then,
> it's difficult to maintain the same output when we store the same data in
> a qdict.
>
>  Another problem is wrt to maintaining the same ordering of devices, while
> there's a solution for this one, the code gets ugly.
>
>  We have to choices:
>
> 1. Convert it, anyway. Try our best not to break the output, even knowing
>    this is likely to happen
>
> 2. Play it safe and introduce a new 'info netdevices' command, which
>    just print one device per line
>
>  I think 2 is better.

There's also

3. Convert it anyway.  Clean up the mess.  Change the output.

> PS: As far as I know, 'info network' is not used by libvirt.

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

* Re: [Qemu-devel] [RFC] New Monitor command: 'info netdevices'
  2010-05-14  9:46 ` Markus Armbruster
@ 2010-05-14 12:38   ` Miguel Di Ciurcio Filho
  2010-05-14 14:07     ` Luiz Capitulino
  0 siblings, 1 reply; 5+ messages in thread
From: Miguel Di Ciurcio Filho @ 2010-05-14 12:38 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: aliguori, qemu-devel, Luiz Capitulino

On Fri, May 14, 2010 at 6:46 AM, Markus Armbruster <armbru@redhat.com> wrote:
>
> There's also
>
> 3. Convert it anyway.  Clean up the mess.  Change the output.
>

I agree.

It seams to me that no one is concerned with any Monitor output change
with this particular command.

Plus, no one have shown any concerns about the problems I've found in
net/socket.c reported previously either.

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

* [Qemu-devel] Re: [RFC] New Monitor command: 'info netdevices'
  2010-05-13 14:18 [Qemu-devel] [RFC] New Monitor command: 'info netdevices' Luiz Capitulino
  2010-05-14  9:46 ` Markus Armbruster
@ 2010-05-14 13:30 ` Anthony Liguori
  1 sibling, 0 replies; 5+ messages in thread
From: Anthony Liguori @ 2010-05-14 13:30 UTC (permalink / raw)
  To: Luiz Capitulino; +Cc: miguel.filho, qemu-devel, armbru

On 05/13/2010 09:18 AM, Luiz Capitulino wrote:
>   Hi there,
>
>   Miguel is working on converting 'info network' to QMP, but turns out that it's
> been quite difficult to maintain the exact same output.
>
>   The main problem seems to be the usage of the 'info_str' string, which some
> drivers (like tap, xen, vde, socket, etc) write arbitrary data into it. Then,
> it's difficult to maintain the same output when we store the same data in
> a qdict.
>
>   Another problem is wrt to maintaining the same ordering of devices, while
> there's a solution for this one, the code gets ugly.
>
>   We have to choices:
>
> 1. Convert it, anyway. Try our best not to break the output, even knowing
>     this is likely to happen
>
> 2. Play it safe and introduce a new 'info netdevices' command, which
>     just print one device per line
>
>   I think 2 is better.
>
> PS: As far as I know, 'info network' is not used by libvirt.
>    

I'd vote for (2).

Regards,

Anthony Liguori

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

* Re: [Qemu-devel] [RFC] New Monitor command: 'info netdevices'
  2010-05-14 12:38   ` Miguel Di Ciurcio Filho
@ 2010-05-14 14:07     ` Luiz Capitulino
  0 siblings, 0 replies; 5+ messages in thread
From: Luiz Capitulino @ 2010-05-14 14:07 UTC (permalink / raw)
  To: Miguel Di Ciurcio Filho; +Cc: aliguori, Markus Armbruster, qemu-devel

On Fri, 14 May 2010 09:38:58 -0300
Miguel Di Ciurcio Filho <miguel.filho@gmail.com> wrote:

> On Fri, May 14, 2010 at 6:46 AM, Markus Armbruster <armbru@redhat.com> wrote:
> >
> > There's also
> >
> > 3. Convert it anyway.  Clean up the mess.  Change the output.
> >
> 
> I agree.
> 
> It seams to me that no one is concerned with any Monitor output change
> with this particular command.
> 
> Plus, no one have shown any concerns about the problems I've found in
> net/socket.c reported previously either.

 Sending patches increases the chances someone will look into it.

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

end of thread, other threads:[~2010-05-14 14:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13 14:18 [Qemu-devel] [RFC] New Monitor command: 'info netdevices' Luiz Capitulino
2010-05-14  9:46 ` Markus Armbruster
2010-05-14 12:38   ` Miguel Di Ciurcio Filho
2010-05-14 14:07     ` Luiz Capitulino
2010-05-14 13:30 ` [Qemu-devel] " Anthony Liguori

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).