Statistics
| Branch: | Revision:

root / scripts @ f53ec699

Latest revisions

# Date Author Comment
ea66c6d8 07/26/2013 10:10 pm Kevin Wolf

qapi.py: Maintain a list of union types

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>

69dd62df 07/26/2013 10:10 pm Kevin Wolf

qapi: Anonymous unions

The discriminator for anonymous unions is the data type. This allows to
have a union type that allows both of these:

{ 'file': 'my_existing_block_device_id' }
{ 'file': { 'filename': '/tmp/mydisk.qcow2', 'read-only': true } }...
50f2bdc7 07/26/2013 10:09 pm Kevin Wolf

qapi: Flat unions with arbitrary discriminator

Instead of the rather verbose syntax that distinguishes base and
subclass fields...

{ "type": "file",
"read-only": true,
"data": {
"filename": "test"
} }

...we can now have both in the same namespace, allowing a more direct...

e2503f5e 07/26/2013 09:17 pm Kevin Wolf

qapi-types.py: Implement 'base' for unions

The new 'base' key in a union definition refers to a struct type, which
is inlined into the union definition and can represent fields common to
all kinds.

For example the following schema definition...

{ 'type': 'BlockOptionsBase', 'data': { 'read-only': 'bool' } }...
d131c897 07/26/2013 09:17 pm Kevin Wolf

qapi-visit.py: Split off generate_visit_struct_fields()

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>

0aef92b9 07/26/2013 09:17 pm Kevin Wolf

qapi-visit.py: Implement 'base' for unions

This implements the visitor part of base types for unions. Parsed into
QMP, this example schema definition...

{ 'type': 'BlockOptionsBase', 'data': { 'read-only': 'bool' } }
{ 'type': 'BlockOptionsQcow2, 'data': { 'lazy-refcounts': 'bool' } }...
90c66f58 07/22/2013 06:13 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/tracing' into staging

  1. By Markus Armbruster
  2. Via Stefan Hajnoczi
    • stefanha/tracing:
      trace-events: Fix up source file comments
      trace-events: Drop unused events
      milkymist-minimac2: Fix minimac2_read/_write tracepoints...
f0c03c8c 07/18/2013 06:44 am Markus Armbruster

cleanup-trace-events.pl: New

Simple script to drop unused events and fix up source file comments.
The next few commits put it to use.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Stefan Hajnoczi <>

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....

b35284ea 07/10/2013 08:39 pm Kevin Wolf

qapi.py: Allow top-level type reference for command definitions

If 'data' for a command definition isn't a dict, but a string, it is
taken as a (struct) type name and the fields of this struct are directly
used as parameters.

This is useful for transactionable commands that can use the same type...

View revisions

Also available in: Atom