Skip to content

testing/next: functional testing updates for gdb (pre-PR)

Alex Bennée qemu-arm qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest19 patches 21 repliesIn review
  2. v216 patches 25 repliesSuperseded
  3. v113 patches 14 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19tests/functional: test_acpi_bits requires TCGtests/functional/x86_64/test_acpi_bits.py+3 -01 reply
2/19tests/tcg: fix buffer overflow in multiarch/linux/linux-sigrtminmaxtests/tcg/multiarch/linux/linux-sigrtminmax.c+1 -10 replies
3/19.dir-locals: include QEMU code in PYTHONPATH.dir-locals.el+7 -11 reply
4/19meson: move gdb detection into the top level build filemeson.build tests/functional/meson.build tests/tcg/meson.build+9 -160 replies
5/19tests/functional: allow tuxrun tests to be passed "accel"tests/functional/qemu_test/tuxruntest.py tests/functional/sh4/test_tuxrun.py+8 -30 replies
6/19tests/functional: split x86_64 tuxrun into tcg and kvm runtests/functional/x86_64/test_tuxrun.py+16 -10 replies
7/19tests/functional: update x86_64 tuxrun imagestests/functional/x86_64/test_tuxrun.py+4 -40 replies
8/19tests/guest-debug: convert gdb_cmd to an arraytests/guest-debug/run-test.py+15 -113 replies
9/19tests/guest-debug: convert cmd to an qemu_cmd arraytests/guest-debug/run-test.py+18 -133 replies
10/19tests/guest-debug: add --kargs option to run-testtests/guest-debug/run-test.py+8 -02 replies
11/19tests/guest-debug: add --symbols option to run-testtests/guest-debug/run-test.py+5 -02 replies
12/19tests/functional: teach tuxrun about launching gdb teststests/functional/gdb-scripts/kernel_gdb_test.py tests/functional/qemu_test/tuxruntest.py tests/functional/sh4/test_tuxrun.py +1 more+261 -165 replies
13/19tests/functional: add tuxrun kvm gdb test for x86_64tests/functional/x86_64/test_tuxrun.py+19 -10 replies
14/19tests/functional: split aarch64 tuxrun into tcg and kvm runtests/functional/aarch64/test_tuxrun.py+10 -00 replies
15/19tests/functional: update arm64 tuxrun imagestests/functional/aarch64/test_tuxrun.py+4 -40 replies
16/19tests/functional: add tuxrun kvm gdb test for arm64tests/functional/aarch64/test_tuxrun.py+16 -10 replies
17/19tests/functional: split s390x tuxrun into tcg and kvm runtests/functional/s390x/test_tuxrun.py+11 -00 replies
18/19tests/functional: update s390x tuxrun imagestests/functional/s390x/test_tuxrun.py+4 -40 replies
19/19tests/functional: add tuxrun kvm gdb test for s390xtests/functional/gdb-scripts/kernel_gdb_test.py tests/functional/qemu_test/tuxruntest.py tests/functional/s390x/test_tuxrun.py +2 more+34 -74 replies

Reviews trailers per patch

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

PatchMarc-André LureauThomas HuthPhilippe Mathieu-DaudéAlex BennéeRichard HendersonIlya LeoshkevichDaniel P. BerrangéPierrick Bouvier
1/19R-b R-b R-b R-b
2/19R-b R-b R-b R-b R-b
3/19R-b R-b
4/19R-b R-b
5/19R-b R-b
6/19R-b
7/19R-b
8/19R-b R-b R-b
9/19R-b R-b R-b
10/19R-b R-b R-b
11/19R-b R-b R-b
12/19R-b
13/19R-b
14/19R-b
15/19R-b
16/19R-b
17/19R-b R-b
18/19R-b R-b
19/19R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/19] testing/next: functional testing updates for gdb (pre-PR)

Hi,

This is the current state of my testing/next tree. There a are a few minor tweaks and fixes that I've picked up. The majority of the new code adds testing for the gdb stub when used via KVM.

As a result I spoke to Anders who handles the tuxrun images and he was able to turn on debugging symbols and provide a vmlinux alongside the bootable image. With these updates I was able to resurrect the old test script I was running by hand and then plumb it into a functional test.

So far I've done x86_64, aarch64 and s390x. I can't test ppc because our CI machines don't support nested KVM. I don't have access to any riscv kvm capable hardware.

The reason I went on the side-quest is because when working on cleaning up QEMU's internal KVM api I realised that quite a large chunk of it is not exercised by our functional tests. This would ensure that at least:

kvm_arch_update_guest_debug
kvm_arch_get_registers
kvm_arch_set_registers

is exercised and I'm less likely to break things in my re-factor ;-)

v3
- address review comments
- convert run-test to use arrays for gdb and qemu cmd lines
- fix errors on s390x and aarch64 hosts

v2

- fixed up the sh4 direct call
- dropped the fw tracing test case as tuxrun images cover it all
- added aarch64 and s390x cases
- worked around s390x watchpoint issues

The following still need review:

tests/functional: teach tuxrun about launching gdb tests tests/guest-debug: convert cmd to an qemu_cmd array tests/guest-debug: convert gdb_cmd to an array

Alex.

Alex Bennée (18):
tests/functional: test_acpi_bits requires TCG .dir-locals: include QEMU code in PYTHONPATH
meson: move gdb detection into the top level build file tests/functional: allow tuxrun tests to be passed "accel" tests/functional: split x86_64 tuxrun into tcg and kvm run tests/functional: update x86_64 tuxrun images tests/guest-debug: convert gdb_cmd to an array tests/guest-debug: convert cmd to an qemu_cmd array tests/guest-debug: add --kargs option to run-test tests/guest-debug: add --symbols option to run-test tests/functional: teach tuxrun about launching gdb tests tests/functional: add tuxrun kvm gdb test for x86_64 tests/functional: split aarch64 tuxrun into tcg and kvm run tests/functional: update arm64 tuxrun images tests/functional: add tuxrun kvm gdb test for arm64 tests/functional: split s390x tuxrun into tcg and kvm run tests/functional: update s390x tuxrun images tests/functional: add tuxrun kvm gdb test for s390x

Max Filippov (1):
tests/tcg: fix buffer overflow in multiarch/linux/linux-sigrtminmax

 meson.build                                   |  15 +-
 tests/tcg/multiarch/linux/linux-sigrtminmax.c |   2 +-
 .dir-locals.el                                |   8 +-
 tests/functional/aarch64/test_tuxrun.py       |  35 +++-
 .../functional/gdb-scripts/kernel_gdb_test.py | 164 ++++++++++++++++++
 tests/functional/meson.build                  |   5 +-
 tests/functional/qemu_test/tuxruntest.py      | 108 ++++++++++--
 tests/functional/s390x/test_tuxrun.py         |  37 +++-
 tests/functional/sh4/test_tuxrun.py           |   6 +-
 tests/functional/x86_64/test_acpi_bits.py     |   3 +
 tests/functional/x86_64/test_tuxrun.py        |  45 ++++-
 tests/guest-debug/run-test.py                 |  83 ++++++---
 tests/lcitool/libvirt-ci                      |   2 +-
 tests/tcg/meson.build                         |   5 -
 14 files changed, 444 insertions(+), 74 deletions(-)
 create mode 100644 tests/functional/gdb-scripts/kernel_gdb_test.py
Signature · 1 line
2.47.3