Anthony, This pull request contains only the first round of QAPI conversions series. I had to rebase it but the changes are rather simple.
The changes (since d11cf8cc80d946dfc9a23597cd9a0bb1c487cfa7) are available in the following repository: git://repo.or.cz/qemu/qmp-unstable.git queue/qmp Anthony Liguori (6): error: let error_is_type take a NULL error qerror: add qerror_report_err() qapi: add code generation support for middle mode qapi: use middle mode in QMP server qapi: fixup command generation for functions that return list types qapi: convert query-name Luiz Capitulino (15): qapi: Don't use c_var() on enum strings qapi: Automatically generate a _MAX value for enums qapi: Convert query-version qapi: Convert query-kvm vl: Change qemu_vmstop_requested() to return a bool RunState: Drop the RSTATE_NO_STATE value RunState: Rename enum values as generated by the QAPI qapi: Convert query-status qapi: Convert query-uuid qapi: Convert query-chardev qapi: Convert query-commands qapi: Convert quit qapi: Convert stop qapi: Convert system_reset qapi: Convert system_powerdown Michael Roth (5): qapi: dealloc visitor, fix premature free and iteration logic qapi: generate qapi_free_* functions for *List types qapi: add test cases for generated free functions qapi: dealloc visitor, support freeing of nested lists qapi: modify visitor code generation for list iteration Makefile | 12 ++ Makefile.objs | 3 + Makefile.target | 6 +- error.c | 4 + gdbstub.c | 26 ++-- hmp-commands.hx | 11 +- hmp.c | 116 ++++++++++++++++++ hmp.h | 31 +++++ hw/ide/core.c | 2 +- hw/scsi-disk.c | 2 +- hw/virtio-blk.c | 2 +- hw/watchdog.c | 2 +- kvm-all.c | 2 +- migration.c | 6 +- monitor.c | 281 +++++-------------------------------------- qapi-schema.json | 273 +++++++++++++++++++++++++++++++++++++++++ qapi/qapi-dealloc-visitor.c | 34 +++++- qapi/qapi-types-core.h | 3 + qapi/qmp-input-visitor.c | 4 +- qapi/qmp-output-visitor.c | 20 +++- qemu-char.c | 35 ++---- qerror.c | 33 +++++ qerror.h | 2 + qmp-commands.hx | 57 +++++++-- qmp.c | 92 ++++++++++++++ savevm.c | 4 +- scripts/qapi-commands.py | 98 ++++++++++++--- scripts/qapi-types.py | 12 ++- scripts/qapi-visit.py | 4 +- scripts/qapi.py | 4 +- sysemu.h | 20 +--- test-qmp-commands.c | 29 +++++ test-visitor.c | 48 ++++++-- vl.c | 133 ++++++++++----------- 34 files changed, 959 insertions(+), 452 deletions(-)