From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzmQ2-00028t-Dg for qemu-devel@nongnu.org; Sun, 05 Jan 2014 07:03:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VzmPr-0005Dc-8B for qemu-devel@nongnu.org; Sun, 05 Jan 2014 07:03:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzmPr-0005DU-0C for qemu-devel@nongnu.org; Sun, 05 Jan 2014 07:02:51 -0500 From: Amos Kong Date: Sun, 5 Jan 2014 20:02:28 +0800 Message-Id: <1388923351-10556-1-git-send-email-akong@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/3] QMP full introspection List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mdroth@linux.vnet.ibm.com, qiaonuohan@cn.fujitsu.com, xiawenc@linux.vnet.ibm.com, lcapitulino@redhat.com This is an implement of qmp full-introspection, parse and convert the json string to a dynamical tree, return it to management through QMP command output. The whole output of query-qmp-schema command: https://raw.github.com/kongove/misc/master/txt/qmp-introspection.output.txt Welcome your comments! V2: use 'DataObject' to describe dynamic struct V3: improve the metadata as suggested by eric Amos Kong (3): qapi: cleanup redundant variable qapi: change qapi to convert schema json qmp: full introspection support for QMP Makefile | 5 +- docs/qmp-full-introspection.txt | 97 ++++++++++ qapi-schema.json | 150 ++++++++++++++++ qmp-commands.hx | 43 ++++- qmp.c | 382 ++++++++++++++++++++++++++++++++++++++++ scripts/qapi-commands.py | 2 +- scripts/qapi-types.py | 48 ++++- scripts/qapi-visit.py | 2 +- scripts/qapi.py | 23 ++- 9 files changed, 737 insertions(+), 15 deletions(-) create mode 100644 docs/qmp-full-introspection.txt -- 1.8.4.2