[PATCH v1 0/4] Fix leaks reached by make check-qtest

Fabiano Rosas posted 4 patches 3 weeks, 3 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260313182957.28432-1-farosas@suse.de
Maintainers: Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, "Dr. David Alan Gilbert" <dave@treblig.org>
hw/riscv/riscv-iommu.c      | 16 +++++++++++++---
target/riscv/cpu.c          |  3 +--
tests/qtest/cpu-plug-test.c | 11 +++++------
tests/qtest/qom-test.c      |  3 +--
tests/qtest/test-hmp.c      |  6 +++---
5 files changed, 23 insertions(+), 16 deletions(-)
[PATCH v1 0/4] Fix leaks reached by make check-qtest
Posted by Fabiano Rosas 3 weeks, 3 days ago
../configure --enable-asan --enable-ubsan \
	     --target-list=\
	     x86_64-softmmu,i386-softmmu,\
	     aarch64-softmmu,arm-softmmu,\
	     ppc64-softmmu,\
	     s390x-softmmu,\
	     riscv64-softmmu,\
	     loongarch64-softmmu,\
	     sparc-softmmu,sparc64-softmmu

make -j$(nproc) TIMEOUT_MULTIPLIER=2 check-qtest-$TARGET

(running all targets at once triggers timeouts even with 3x
multiplier, bios-tables-test also has it's own timeout of 600s at
qtest/acpi-utils.c)

Tested on top of the migration-test fixes:
https://lore.kernel.org/r/20260311213418.16951-1-farosas@suse.de

CI run on top of master:
https://gitlab.com/farosas/qemu/-/pipelines/2383870717

Fabiano Rosas (4):
  tests/qtest: Don't dup machine name in qtest_cb_for_every_machine
    callbacks
  tests/qtest/test-hmp: Free machine options
  target/riscv: Don't leak general_user_opts
  hw/riscv: Free resources allocated at riscv_iommu_instance_init

 hw/riscv/riscv-iommu.c      | 16 +++++++++++++---
 target/riscv/cpu.c          |  3 +--
 tests/qtest/cpu-plug-test.c | 11 +++++------
 tests/qtest/qom-test.c      |  3 +--
 tests/qtest/test-hmp.c      |  6 +++---
 5 files changed, 23 insertions(+), 16 deletions(-)

-- 
2.51.0