Statistics
| Branch: | Revision:

root / scripts @ d131c897

Latest revisions

# Date Author Comment
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 <>

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

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

qapi.py: Avoid code duplication

The code that interprets the read JSON expression and appends types to
the respective global variables was duplicated. We can avoid that by
splitting off the part that reads from the file.

Signed-off-by: Kevin Wolf <>...

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

2e59915d 06/14/2013 05:33 pm Paolo Bonzini

main: use TARGET_ARCH only for the target-specific #define

Everything else needs to match the executable name, which is
TARGET_NAME.

Before:
$ sh4eb-linux-user/qemu-sh4eb --help
usage: qemu-sh4 [options] program [arguments...]
Linux CPU emulator (compiled for sh4 emulation)...

c1799a84 06/14/2013 05:33 pm Paolo Bonzini

build: rename TARGET_ARCH2 to TARGET_NAME

Do not introduce any new use yet.

Signed-off-by: Paolo Bonzini <>
Message-id:
Signed-off-by: Peter Maydell <>

b9a7b74f 06/14/2013 05:33 pm Paolo Bonzini

build: do not use TARGET_ARCH

TARGET_ARCH is generally wrong to use, there are better variables
provided in config-target.mak. The right one is usually TARGET_NAME
(previously TARGET_ARCH2), but for bsd-user we can also use TARGET_ABI_DIR
for consistency with linux-user....

View revisions

Also available in: Atom