From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2Ptw-0003nx-E3 for qemu-devel@nongnu.org; Thu, 15 Apr 2010 10:18:40 -0400 Received: from [140.186.70.92] (port=50644 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2Ptq-0003ah-Tg for qemu-devel@nongnu.org; Thu, 15 Apr 2010 10:18:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2Phu-0007PG-C4 for qemu-devel@nongnu.org; Thu, 15 Apr 2010 10:06:19 -0400 Received: from mail-yw0-f198.google.com ([209.85.211.198]:33867) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2Pht-0007Op-QQ for qemu-devel@nongnu.org; Thu, 15 Apr 2010 10:06:14 -0400 Received: by ywh36 with SMTP id 36so720141ywh.4 for ; Thu, 15 Apr 2010 07:06:11 -0700 (PDT) From: Miguel Di Ciurcio Filho Date: Thu, 15 Apr 2010 11:06:55 -0300 Message-Id: <1271340427-12579-1-git-send-email-miguel.filho@gmail.com> Subject: [Qemu-devel] [PATCH v3 00/12] 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 adds the function qemu_nic_format_info_dict and adds a new QDict member to VLANClientState named info_dict. Patches 03-10 updates all devices to feed information into the new QDict info_dict. Patch 11 converts the 'info network' monitor command to QObject, enabling QMP support. Patch 12 removes info_str from VLANClientState and the function qemu_nic_format_info_str. These series of patches were made on top of the qmp-unstable tree[1]. Regards, Miguel [1] http://repo.or.cz/w/qemu/qmp-unstable.git