History | View | Annotate | Download (4.3 kB)
misc: move include files to include/qemu/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qapi: move include files to include/qobject/
qapi: remove qapi/qapi-types-core.h
The file is only including error.h and qerror.h. Prefer explicitinclusion of whatever files are needed.Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qapi: fix qapi_dealloc_type_size parameter type
The second parameter to qapi_dealloc_type_size should be a uint64_t *,not a size_t *. This was causing our 32 bit x86 build to fail, sincewarnings are treated as errors.
Signed-off-by: Bruce Rogers <brogers@suse.com>...
qapi: handle visitor->type_size() in QapiDeallocVisitor
visit_type_size() requires either visitor->type_size() orvisitor_uint64() to be implemented, otherwise a NULL function pointer isinvoked.
It is possible to trigger this crash as follows:
$ qemu-system-x86_64 -netdev tap,sndbuf=0,id=netdev0 \...
qapi: dealloc visitor, fix premature free and iteration logic
Currently we do 3 things wrong:
1) The list iterator, in practice, is used in a manner where the pointerwe pass in is the same as the pointer we assign the output to fromvisit_next_list(). This causes an infinite loop where we keep freeing...
qapi: dealloc visitor, support freeing of nested lists
Previously our logic for keeping track of when we're visiting the headof a list was done via a global bool. This can be overwritten if dealingwith nested lists, so use stack entries to track this instead....
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qapi: add QAPI dealloc visitor
Type of Visitor class that can be passed into a qapi-generated Ctype's visitor function to free() any heap-allocated data types.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>