Skip to content

qtest: Fix some memory issues

Fabiano Rosas qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tests/qtest/migration: Do proper cleanup in the dirty_limit testtests/qtest/migration-test.c+5 -01 reply
2/6tests/qtest/migration: Initialize buffer in probe_o_direct_supporttests/qtest/migration-helpers.c+1 -02 replies
3/6tests/qtest/bios-tables-test: Free tables at dump_aml_filestests/qtest/bios-tables-test.c+1 -01 reply
4/6tests/qtest/virtio-iommu-test: Don't pass uninitialized data into qtest_memwritetests/qtest/virtio-iommu-test.c+2 -21 reply
5/6tests/qtest/qos-test: Plug a couple of leakstests/qtest/qos-test.c+25 -100 replies
6/6tests/qtest/test-x86-cpuid-compat: Free allocated memorytests/qtest/test-x86-cpuid-compat.c+4 -00 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéPeter Xu
1/6R-b
2/6R-b R-b
3/6R-b
4/6R-b
5/6
6/6

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 0/6] qtest: Fix some memory issues

I'm trying to get the qtests to run with asan/valgrind without any warnings so I can run a test before every PR. Here are a few fixes.

CI run: https://gitlab.com/farosas/qemu/-/pipelines/1580782506

Fabiano Rosas (6):
tests/qtest/migration: Do proper cleanup in the dirty_limit test tests/qtest/migration: Initialize buffer in probe_o_direct_support tests/qtest/bios-tables-test: Free tables at dump_aml_files tests/qtest/virtio-iommu-test: Don't pass uninitialized data into
qtest_memwrite
tests/qtest/qos-test: Plug a couple of leaks tests/qtest/test-x86-cpuid-compat: Free allocated memory

 tests/qtest/bios-tables-test.c      |  1 +
 tests/qtest/migration-helpers.c     |  1 +
 tests/qtest/migration-test.c        |  5 +++++
 tests/qtest/qos-test.c              | 35 ++++++++++++++++++++---------
 tests/qtest/test-x86-cpuid-compat.c |  4 ++++
 tests/qtest/virtio-iommu-test.c     |  4 ++--
 6 files changed, 38 insertions(+), 12 deletions(-)
Signature · 1 line
2.35.3