From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38689 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEQRh-0005o8-JB for qemu-devel@nongnu.org; Tue, 18 May 2010 13:19:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEQH4-0005Qa-1U for qemu-devel@nongnu.org; Tue, 18 May 2010 13:08:15 -0400 Received: from mail-yw0-f184.google.com ([209.85.211.184]:51679) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEQH3-0005QE-VP for qemu-devel@nongnu.org; Tue, 18 May 2010 13:08:10 -0400 Received: by ywh14 with SMTP id 14so3433770ywh.25 for ; Tue, 18 May 2010 10:08:08 -0700 (PDT) From: Miguel Di Ciurcio Filho Date: Tue, 18 May 2010 14:07:39 -0300 Message-Id: <1274202469-9332-1-git-send-email-miguel.filho@gmail.com> Subject: [Qemu-devel] [PATCH v4 0/10] Introduce 'info netdevices' with QMP support 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. To make the transition to QMP safe, we leave the current 'info network' command as is, and introduce a new one: 'info netdevices'. 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-09 updates all devices to feed information into the new QDict info_dict. Patch 10 introduces 'info netdevices'. 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