Skip to content

Fix leaks reached by make check-qtest

Fabiano Rosas qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tests/qtest: Don't dup machine name in qtest_cb_for_every_machine callbackstests/qtest/cpu-plug-test.c tests/qtest/qom-test.c tests/qtest/test-hmp.c+7 -101 reply
2/4tests/qtest/test-hmp: Free machine optionstests/qtest/test-hmp.c+2 -11 reply
3/4target/riscv: Don't leak general_user_optstarget/riscv/cpu.c+1 -25 replies
4/4hw/riscv: Free resources allocated at riscv_iommu_instance_inithw/riscv/riscv-iommu.c+13 -34 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchDaniel Henrique BarbozaPhilippe Mathieu-Daudé
1/4R-b
2/4R-b
3/4R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/4] Fix leaks reached by make check-qtest
../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/[email protected]

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(-)
Signature · 1 line
2.51.0