Received: from [140.186.70.92] (port=48235 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCrTS-0007YP-5q for qemu-devel@nongnu.org; Fri, 14 May 2010 05:46:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCrTQ-0005GX-2n for qemu-devel@nongnu.org; Fri, 14 May 2010 05:46:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7930) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCrTP-0005GE-4F for qemu-devel@nongnu.org; Fri, 14 May 2010 05:46:27 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [RFC] New Monitor command: 'info netdevices' References: <20100513111809.551fdb12@redhat.com> Date: Fri, 14 May 2010 11:46:23 +0200 In-Reply-To: <20100513111809.551fdb12@redhat.com> (Luiz Capitulino's message of "Thu, 13 May 2010 11:18:09 -0300") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: aliguori@us.ibm.com, miguel.filho@gmail.com, qemu-devel@nongnu.org Luiz Capitulino 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.