From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1To9Hv-0000JX-71 for qemu-devel@nongnu.org; Thu, 27 Dec 2012 03:58:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1To9Hu-0004gf-2m for qemu-devel@nongnu.org; Thu, 27 Dec 2012 03:58:03 -0500 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:60656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1To9Ht-0004g8-EQ for qemu-devel@nongnu.org; Thu, 27 Dec 2012 03:58:02 -0500 Received: from /spool/local by e28smtp07.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Dec 2012 14:27:03 +0530 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 45AF4125804E for ; Thu, 27 Dec 2012 14:27:58 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qBR8vraL45482186 for ; Thu, 27 Dec 2012 14:27:53 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qBR8vs9E013350 for ; Thu, 27 Dec 2012 08:57:54 GMT From: Wenchao Xia Date: Thu, 27 Dec 2012 16:56:26 +0800 Message-Id: <1356598589-5744-1-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH V2 0/3] HMP: allow parsing for sub command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, armbru@redhat.com, lcapitulino@redhat.com, pbonzini@redhat.com, Wenchao Xia These patches enhance HMP to allow it parse 2nd level of commands, such as info sub command list, which means now foldered command with parameter is possible. V2: Follow the way supposed by Markus, which make the infrastructure knows there is possible a 2nd level of command exist, instead of a hack. In this way extention of command folder level is easy. Moved some code and better doc according to comments. Removed the patch about info snapshots, which will goto another serial. Wenchao Xia (3): HMP: add QDict to info callback handler HMP: add infrastructure for sub command HMP: add sub command table to info hmp-commands.hx | 3 +- hmp.c | 36 ++++++++-------- hmp.h | 36 ++++++++-------- hw/i8259.c | 4 +- hw/lm32_pic.c | 4 +- hw/lm32_pic.h | 4 +- hw/loader.c | 2 +- hw/loader.h | 3 +- hw/pc.h | 4 +- hw/pcmcia.h | 2 +- hw/qdev-monitor.c | 4 +- hw/qdev-monitor.h | 4 +- hw/sun4m.c | 4 +- hw/sun4m.h | 4 +- hw/usb.h | 2 +- hw/usb/bus.c | 2 +- hw/usb/host-bsd.c | 2 +- hw/usb/host-linux.c | 2 +- include/net/net.h | 2 +- include/net/slirp.h | 2 +- include/sysemu/sysemu.h | 4 +- monitor.c | 108 +++++++++++++++++++++------------------------- net/net.c | 2 +- net/slirp.c | 2 +- savevm.c | 2 +- vl.c | 2 +- 26 files changed, 119 insertions(+), 127 deletions(-)