Statistics
| Branch: | Revision:

root / scripts / qapi-commands.py @ feature-archipelago

History | View | Annotate | Download (11.5 kB)

# Date Author Comment
56bed413 03/03/2014 06:16 pm Markus Armbruster

qapi: Drop unused code in qapi-commands.py

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Signed-off-by: Luiz Capitulino <>

678e48a2 03/03/2014 06:16 pm Markus Armbruster

qapi: Fix licensing of scripts

The scripts carry this copyright notice:

  1. This work is licensed under the terms of the GNU GPLv2.
  2. See the COPYING.LIB file in the top-level directory.

The sentences contradict each other, as COPYING.LIB contains the LGPL...

8f91ad8a 07/16/2013 04:15 pm Luiz Capitulino

qapi: qapi-commands: fix possible leaks on visitor dealloc

In qmp-marshal.c the dealloc visitor calls use the same errp
pointer of the input visitor calls. This means that if any of
the input visitor calls fails, then the dealloc visitor will
return early, before freeing the object's memory....

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

7b1b5d19 12/19/2012 09:31 am Paolo Bonzini

qapi: move include files to include/qobject/

Signed-off-by: Paolo Bonzini <>

79ee7df8 12/19/2012 09:31 am Paolo Bonzini

qapi: move inclusions of qemu-common.h from headers to .c files

Signed-off-by: Paolo Bonzini <>

4167c42c 12/19/2012 09:31 am Paolo Bonzini

qapi: remove qapi/qapi-types-core.h

The file is only including error.h and qerror.h. Prefer explicit
inclusion of whatever files are needed.
Signed-off-by: Paolo Bonzini <>

08b76b9f 08/13/2012 10:10 pm Luiz Capitulino

scripts: qapi-commands.py: qmp-commands.h: include qdict.h

qmp-commands.h declares several functions that have arguments of
type QDict. However, qdict.h is not included. This will cause a
build breakage when a file includes qmp-commands.h but doesn't
include qdict.h....

d34b867d 05/15/2012 05:15 pm Luiz Capitulino

qapi: add support for command options

Options allow for changes in commands behavior. This commit introduces
the QCO_NO_SUCCESS_RESP option, which causes a command to not emit a
success response.

This is needed by commands such as qemu-ga's guest-shutdown, which...

6d36d7dc 03/27/2012 03:15 pm Paolo Bonzini

qmp: parse commands in strict mode

Signed-off-by: Paolo Bonzini <>
Reviewed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

c9da228b 03/26/2012 09:21 pm Federico Simoncelli

qapi: add c_fun to escape function names

Signed-off-by: Federico Simoncelli <>
Signed-off-by: Anthony Liguori <>

19bf7c87 01/12/2012 06:03 pm Avi Kivity

Fix qapi code generation fix

The fixes to qapi code generation had multiple bugs:
- the Null class used to drop output was missing some methods
- in some scripts it was never instantiated, leading to a None return,
which is missing even more methods
- the --source and --header options were swapped...

8d3bc517 12/27/2011 05:28 pm Avi Kivity

Fix qapi code generation wrt parallel build

Make's multiple output syntax

x.c x.h: x.template
gen < x.template

actually invokes the command once for x.c and once for x.h (with differing $@
in each invocation). During a parallel build, the two commands may be invoked...

5dbee474 12/15/2011 05:20 pm Anthony Liguori

qapi: allow a 'gen' key to suppress code generation

Signed-off-by: Anthony Liguori <>

694a099a 10/27/2011 04:48 pm Luiz Capitulino

qapi-commands.py: Don't call the output marshal on error

Today we generate something like this:

int qmp_marshal_input_query_foo(...)
...
retval = qmp_query_foo(errp);
qmp_marshal_output_query_foo(retval, ret, errp);
......
776574d6 10/04/2011 05:00 pm Anthony Liguori

qapi: add code generation support for middle mode

To get the ball rolling merging QAPI, this patch introduces a "middle mode" to
the code generator. In middle mode, the code generator generates marshalling
functions that are compatible with the current QMP server. We absolutely need...

15e43e64 10/04/2011 05:00 pm Anthony Liguori

qapi: fixup command generation for functions that return list types

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

7534ba01 08/12/2011 04:31 pm Michael Roth

qapi: fix build issue due to missing newline in generated header

Fixes a build issue on RHEL5, and potentially other distros, where gcc
will generate an error due to us not writing a trailing "\n" when
generating *qmp-commands.h

Signed-off-by: Michael Roth <>...

c17d9908 07/21/2011 10:48 pm Michael Roth

qapi: add qapi-commands.py code generator

This is the code generator for qapi command marshaling/dispatch.
Currently only generators for synchronous qapi/qmp functions are
supported. This script generates the following files:

$(prefix)qmp-marshal.c: command marshal/dispatch functions for each...