From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nzy6t-0007FU-K7 for qemu-devel@nongnu.org; Thu, 08 Apr 2010 16:13:55 -0400 Received: from [140.186.70.92] (port=43905 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nzy6q-0007Ez-Jr for qemu-devel@nongnu.org; Thu, 08 Apr 2010 16:13:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nzy6o-0003wp-KM for qemu-devel@nongnu.org; Thu, 08 Apr 2010 16:13:52 -0400 Received: from qw-out-1920.google.com ([74.125.92.149]:41188) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nzy6n-0003w3-OU for qemu-devel@nongnu.org; Thu, 08 Apr 2010 16:13:50 -0400 Received: by qw-out-1920.google.com with SMTP id 5so845875qwc.4 for ; Thu, 08 Apr 2010 13:13:47 -0700 (PDT) From: Miguel Di Ciurcio Filho Date: Thu, 8 Apr 2010 17:16:17 -0300 Message-Id: <1270757799-31891-1-git-send-email-miguel.filho@gmail.com> Subject: [Qemu-devel] [PATCH 0/22] Convert do_info_network() to QObject/QMP List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: armbru@redhat.com, lcapitulino@redhat.com The VLANClientState structure has the member info_str, a simple string that is filled with information about NIC devices and used on monitor calls. There is no coherent formatting of this string by all the NIC devices, making it difficult to parse and represent this information over QMP. Patch 01 adds a new function qdict_to_qstring(). Patch 02 replaces the function qemu_nic_format_info_str by qemu_nic_format_info_dict, adds a new QDict member to VLANClientState named info_dict. Patches 03-21 updates all devices to feed information into the new QDict. Patch 22 converts the 'info network' monitor command to QObject, enabling QMP support. Regards, Miguel