From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIKYm-0000S3-7B for qemu-devel@nongnu.org; Mon, 24 Oct 2011 09:27:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIKYk-0003XC-56 for qemu-devel@nongnu.org; Mon, 24 Oct 2011 09:27:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIKYj-0003Vf-U3 for qemu-devel@nongnu.org; Mon, 24 Oct 2011 09:27:22 -0400 From: Luiz Capitulino Date: Mon, 24 Oct 2011 11:26:53 -0200 Message-Id: <1319462832-12199-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH v1 00/19]: QAPI conversions round 2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, armbru@redhat.com, aliguori@us.ibm.com, mdroth@linux.vnet.ibm.com, quintela@redhat.com This series completes the conversion of current QMP query commands to the QAPI framework. IOW, with this series applied no single query command will be building QObjects by hand. This series also contains two fixes and some cleanups. One of the fixes solves a problem with the generated code which ignores errors. The other fixes a missing error declaration in QError. There are two important details about this series that should be observed: 1. This is a bit late in the development process. Although there's a lot of code churn involved, query commands are relatively simple: most of them don't return errors and they don't take parameters. I've also tested them as much as I could. I'm not saying it's bug-free, but I believe we have enough time for fixing any outstanding issues. 2. Most query commands makes use of QAPI's list type. Unfortunately, the simplest way to build a list reverses the order of listings in HMP (ie. the "info cpus" command starts at the last CPU). To avoid this, I'm building lists by hand the old way for now. In the short term the QAPI will be changed to use glib's list support. balloon.c | 72 +----- balloon.h | 6 +- block.c | 234 ++++++------------ block.h | 5 - block_int.h | 4 +- console.h | 9 - cpus.c | 45 ++++ error.c | 3 +- hmp-commands.hx | 3 +- hmp.c | 407 ++++++++++++++++++++++++++++++ hmp.h | 10 + hw/pci-stub.c | 15 +- hw/pci.c | 322 +++++++++--------------- hw/pci.h | 4 - hw/virtio-balloon.c | 78 +----- input.c | 64 ++---- migration.c | 82 ++----- monitor.c | 313 ++---------------------- monitor.h | 2 + qapi-schema.json | 616 ++++++++++++++++++++++++++++++++++++++++++++++ qerror.c | 4 + qmp-commands.hx | 60 +++++- qmp.c | 27 ++ scripts/qapi-commands.py | 4 +- ui/spice-core.c | 139 +++++------ ui/vnc.c | 135 +++++++---- vl.c | 2 +- 27 files changed, 1611 insertions(+), 1054 deletions(-)