Statistics
| Branch: | Revision:

root / qapi @ feature-archipelago

Latest revisions

# Date Author Comment
25a70175 03/03/2014 06:17 pm Markus Armbruster

qapi: Clean up superfluous null check in qapi_dealloc_type_str()

Argument can't be null. No other Visitor method type_str() checks for
null.

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

b7745397 03/03/2014 06:17 pm Markus Armbruster

qapi: Add missing null check to opts_start_struct()

Argument is null when visiting an unboxed struct. I can't see such a
visit in the current code. Fix it anyway.

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

e41b509d 02/14/2014 10:12 pm Paolo Bonzini

qapi: Refine human printing of sizes

This fixes several bugs or shortcomings of the previous pretty-printer.
In particular:

  • use PRIu64 instead of casting to long long
  • the exact value is included too
  • the correct unit of measure (MiB, GiB, etc.) is used. PiB and EiB...
0b7593e0 02/14/2014 10:12 pm Paolo Bonzini

qapi: Add human mode to StringOutputVisitor

This will be used by "info qtree". For numbers it prints both the
decimal and hex values. For sizes it rounds to the nearest power
of 2^10. For strings, it puts quotes around the string and separates
NULL and empty string....

a5829ccf 02/14/2014 10:12 pm Paolo Bonzini

qapi: Add size parser to StringInputVisitor

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Eric Blake <>
Reviewed-by: Igor Mammedov <>
Signed-off-by: Andreas Färber <>

3dce9cad 11/06/2013 05:58 am Wenchao Xia

qapi: fix memleak by adding implict struct functions in dealloc visitor

Otherwise member "base" is leaked in a qapi_free_STRUCTURE() call.

Signed-off-by: Wenchao Xia <>
Reviewed-by: Eric Blake <>
Message-id: ...

8dc4d915 10/10/2013 10:52 pm Mark Wu

qemu-ga: Add interface to traverse the qmp command list by QmpCommand

In the original code, qmp_get_command_list is used to construct
a list of all commands' name. To get the information of all qga
commands, it traverses the name list and search the command info...

0106dc4f 10/10/2013 10:52 pm Mark Wu

qemu-ga: Extend 'guest-info' command to expose flag 'success-response'

Now we have several qemu-ga commands not returning response on success.
It has been documented in qga/qapi-schema.json already. This patch exposes
the 'success-response' flag by extending 'guest-info' command. With this...

15a849be 08/20/2013 06:52 pm Laszlo Ersek

OptsVisitor: don't try to flatten overlong integer ranges

Prevent mistyped command line options from incurring high memory and CPU
usage at startup. 64K elements in a range should be enough for everyone
(TM).

The OPTS_VISITOR_RANGE_MAX macro is public so that unit tests can...

581a8a80 08/20/2013 06:51 pm Laszlo Ersek

OptsVisitor: opts_type_uint64(): recognize intervals when LM_IN_PROGRESS

When a well-formed range value, bounded by unsigned integers, is
encountered while processing a repeated option, enter LM_UNSIGNED_INTERVAL
and return the low bound.

Signed-off-by: Laszlo Ersek <>...

View revisions

Also available in: Atom