tests/libqos: embed allocators instead of malloc-ing them separately
commiteb5937bad691ed18a401079a0604aa11fea0ecdd
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Nov 2018 11:37:04 +0000 (29 12:37 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Mar 2019 16:28:07 +0000 (7 17:28 +0100)
treea26310ca140c15230c51cceeebc538f7f55b7888
parent143e6db6fa4ecd2a85de740cc3754aeb86d1e802
tests/libqos: embed allocators instead of malloc-ing them separately

qgraph will embed these objects instead of allocating them in a separate
object.  Expose a new API "generic_alloc_init" and "generic_alloc_destroy"
for that, and rename the existing API with s/init/new/ and s/uninit/free/.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
21 files changed:
tests/ahci-test.c
tests/e1000e-test.c
tests/ide-test.c
tests/libqos/libqos-pc.c
tests/libqos/libqos-spapr.c
tests/libqos/libqos.c
tests/libqos/libqos.h
tests/libqos/malloc-generic.c
tests/libqos/malloc-generic.h
tests/libqos/malloc-pc.c
tests/libqos/malloc-pc.h
tests/libqos/malloc-spapr.c
tests/libqos/malloc-spapr.h
tests/libqos/malloc.c
tests/libqos/malloc.h
tests/rtas-test.c
tests/vhost-user-test.c
tests/virtio-9p-test.c
tests/virtio-blk-test.c
tests/virtio-net-test.c
tests/virtio-scsi-test.c