From: "Alex Bennée" <alex.bennee@linaro.org>
To: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: qemu-devel@nongnu.org,
"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>,
"Zhao Liu" <zhao1.liu@intel.com>,
"Kyle Evans" <kevans@freebsd.org>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Brian Cain" <brian.cain@oss.qualcomm.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Brad Smith" <brad@comstyle.com>,
"Ani Sinha" <anisinha@redhat.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>,
"Thomas Huth" <th.huth+qemu@posteo.eu>,
"Keith Busch" <kbusch@kernel.org>,
"Matthew Rosato" <mjrosato@linux.ibm.com>,
"Cornelia Huck" <cohuck@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Halil Pasic" <pasic@linux.ibm.com>,
"John Snow" <jsnow@redhat.com>,
"Eric Farman" <farman@linux.ibm.com>,
"Pierrick Bouvier" <pierrick.bouvier@oss.qualcomm.com>,
"Anders Roxell" <anders.roxell@linaro.org>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Warner Losh" <imp@bsdimp.com>,
qemu-arm@nongnu.org, "Peter Maydell" <peter.maydell@linaro.org>,
"Yoshinori Sato" <yoshinori.sato@nifty.com>,
"Peter Xu" <peterx@redhat.com>,
"Klaus Jensen" <its@irrelevant.dk>,
"Song Gao" <gaosong@loongson.cn>,
qemu-s390x@nongnu.org, "Laurent Vivier" <laurent@vivier.eu>
Subject: Re: [PATCH v2 16/16] tests/functional: add tuxrun kvm gdb test for s390x
Date: Thu, 15 Oct 2026 11:34:17 +0100 [thread overview]
Message-ID: <87ecdrfe1i.fsf@draig.linaro.org> (raw)
In-Reply-To: <9898cc36-2438-473c-aed5-eb1a5671c2d0@linux.ibm.com> (Ilya Leoshkevich's message of "Tue, 13 Oct 2026 21:42:03 +0200")
Ilya Leoshkevich <iii@linux.ibm.com> writes:
> On 10/12/26 19:03, Alex Bennée wrote:
>> As with x86_64 we now have the bits to add a KVM gdb test. One minor
>> wrinkle is the s390x only supports WP_WRITE watch points so we skip
>> the other watch point tests lest we get confusing messages about
>> failing to insert HW breakpoints.
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>> ---
>> tests/functional/gdb-scripts/kernel_gdb_test.py | 10 ++++++----
>> tests/functional/s390x/test_tuxrun.py | 14 ++++++++++++++
>> 2 files changed, 20 insertions(+), 4 deletions(-)
>> diff --git a/tests/functional/gdb-scripts/kernel_gdb_test.py
>> b/tests/functional/gdb-scripts/kernel_gdb_test.py
>> index 2d62fe01f10..56f0514c943 100644
>> --- a/tests/functional/gdb-scripts/kernel_gdb_test.py
>> +++ b/tests/functional/gdb-scripts/kernel_gdb_test.py
>> @@ -107,11 +107,13 @@ def do_one_watch(sym, wtype, text):
>> def check_watches(sym_name):
>> "Watch a symbol for any access."
>> - # Should hit for any read
>> - do_one_watch(sym_name, gdb.WP_ACCESS, "awatch")
>> + # s390 only supports write watchpoints
>> + if "s390" not in gdb.selected_frame().architecture().name():
>> + # Should hit for any read
>> + do_one_watch(sym_name, gdb.WP_ACCESS, "awatch")
>> - # Again should hit for reads
>> - do_one_watch(sym_name, gdb.WP_READ, "rwatch")
>> + # Again should hit for reads
>> + do_one_watch(sym_name, gdb.WP_READ, "rwatch")
>> # Finally when it is written
>> do_one_watch(sym_name, gdb.WP_WRITE, "watch")
>> diff --git a/tests/functional/s390x/test_tuxrun.py b/tests/functional/s390x/test_tuxrun.py
>> index 8e0261e2b7f..528af3c08ff 100755
>> --- a/tests/functional/s390x/test_tuxrun.py
>> +++ b/tests/functional/s390x/test_tuxrun.py
>> @@ -19,6 +19,9 @@ class TuxRunS390xTest(TuxRunBaselineTest):
>> ASSET_S390X_KERNEL = Asset(
>> 'https://storage.tuxboot.com/kernels/6.18.54/s390/bzImage',
>> '5efeb31754b211440e1595ab11355bb006fe78a2c0604ed0a8c55c4598b71aec')
>> + ASSET_S390X_VMLINUX = Asset(
>> + 'https://storage.tuxboot.com/kernels/6.18.54/s390/vmlinux.xz',
>> + '5bbd4d34e0950f88053a9bfd16078896df4b1ee1696fc2ad62488e681a6bdd8e')
>> ASSET_S390X_ROOTFS = Asset(
>> 'https://storage.tuxboot.com/buildroot/20260924/s390/rootfs.ext4.zst',
>> '5ba18c4d18831c50a0c743990f7bdee1d3b520629d423c55b668d8fbbac9c6f5')
>> @@ -42,5 +45,16 @@ def test_s390_kvm(self):
>> haltmsg="Requesting system halt",
>> accel="kvm")
>> + def test_s390_kvm_gdb(self):
>> + self.set_machine('s390-ccw-virtio')
>> + self.require_accelerator('kvm')
>> + self.wait_for_shutdown=False
>> + self.common_tuxrun_gdb(kernel_asset=self.ASSET_S390X_KERNEL,
>> + vmlinux_asset=self.ASSET_S390X_VMLINUX,
>> + rootfs_asset=self.ASSET_S390X_ROOTFS,
>> + drive="virtio-blk-ccw",
>> + haltmsg="Requesting system halt",
>> + accel="kvm")
>> +
>> if __name__ == '__main__':
>> TuxRunBaselineTest.main()
>
> This hangs unfortunately.
> You need something like the following to compensate for the difference
> between vmlinux ELF addresses and the actual nokaslr load address:
I realise now I had it working on my s390x image and forgot to fold the
changes from that tree into my local git. Fixed in v3
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
prev parent reply other threads:[~2026-10-15 10:36 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-12 17:03 [PATCH v2 00/16] testing/next: functional testing updates for gdb Alex Bennée
2026-10-12 17:03 ` [PATCH v2 01/16] tests/functional: test_acpi_bits requires TCG Alex Bennée
2026-10-12 17:03 ` [PATCH v2 02/16] tests/tcg: fix buffer overflow in multiarch/linux/linux-sigrtminmax Alex Bennée
2026-10-12 17:03 ` [PATCH v2 03/16] meson: move gdb detection into the top level build file Alex Bennée
2026-10-12 17:03 ` [PATCH v2 04/16] tests/functional: allow tuxrun tests to be passed "accel" Alex Bennée
2026-10-12 21:52 ` marcandre.lureau
2026-10-13 19:19 ` Ilya Leoshkevich
2026-10-12 17:03 ` [PATCH v2 05/16] tests/functional: split x86_64 tuxrun into tcg and kvm run Alex Bennée
2026-10-12 17:03 ` [PATCH v2 06/16] tests/functional: update x86_64 tuxrun images Alex Bennée
2026-10-13 8:05 ` Daniel P. Berrangé
2026-10-13 9:35 ` Alex Bennée
2026-10-13 9:53 ` Daniel P. Berrangé
2026-10-13 10:11 ` Alex Bennée
2026-10-13 10:22 ` Daniel P. Berrangé
2026-10-12 17:03 ` [PATCH v2 07/16] tests/guest-debug: add --kargs option to run-test Alex Bennée
2026-10-13 19:20 ` Ilya Leoshkevich
2026-10-12 17:03 ` [PATCH v2 08/16] tests/guest-debug: add --symbols " Alex Bennée
2026-10-13 19:23 ` Ilya Leoshkevich
2026-10-19 16:09 ` Alex Bennée
2026-10-12 17:03 ` [PATCH v2 09/16] tests/functional: teach tuxrun about launching gdb tests Alex Bennée
2026-10-12 21:52 ` marcandre.lureau
2026-10-13 18:56 ` Ilya Leoshkevich
2026-10-12 17:03 ` [PATCH v2 10/16] tests/functional: add tuxrun kvm gdb test for x86_64 Alex Bennée
2026-10-12 17:03 ` [PATCH v2 11/16] tests/functional: split aarch64 tuxrun into tcg and kvm run Alex Bennée
2026-10-12 21:52 ` marcandre.lureau
2026-10-12 17:03 ` [PATCH v2 12/16] tests/functional: update arm64 tuxrun images Alex Bennée
2026-10-12 21:52 ` marcandre.lureau
2026-10-13 8:09 ` Daniel P. Berrangé
2026-10-13 9:36 ` Alex Bennée
2026-10-12 17:03 ` [PATCH v2 13/16] tests/functional: add tuxrun kvm gdb test for arm64 Alex Bennée
2026-10-12 21:52 ` marcandre.lureau
2026-10-12 17:03 ` [PATCH v2 14/16] tests/functional: split s390x tuxrun into tcg and kvm run Alex Bennée
2026-10-12 21:52 ` marcandre.lureau
2026-10-13 19:29 ` Ilya Leoshkevich
2026-10-12 17:03 ` [PATCH v2 15/16] tests/functional: update s390x tuxrun images Alex Bennée
2026-10-12 21:52 ` marcandre.lureau
2026-10-13 8:08 ` Daniel P. Berrangé
2026-10-13 19:31 ` Ilya Leoshkevich
2026-10-12 17:03 ` [PATCH v2 16/16] tests/functional: add tuxrun kvm gdb test for s390x Alex Bennée
2026-10-12 21:52 ` marcandre.lureau
2026-10-13 19:42 ` Ilya Leoshkevich
2026-10-15 10:34 ` Alex Bennée [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ecdrfe1i.fsf@draig.linaro.org \
--to=alex.bennee@linaro.org \
--cc=anders.roxell@linaro.org \
--cc=anisinha@redhat.com \
--cc=berrange@redhat.com \
--cc=borntraeger@linux.ibm.com \
--cc=brad@comstyle.com \
--cc=brian.cain@oss.qualcomm.com \
--cc=cohuck@redhat.com \
--cc=farman@linux.ibm.com \
--cc=gaosong@loongson.cn \
--cc=iii@linux.ibm.com \
--cc=imp@bsdimp.com \
--cc=its@irrelevant.dk \
--cc=jsnow@redhat.com \
--cc=kbusch@kernel.org \
--cc=kevans@freebsd.org \
--cc=laurent@vivier.eu \
--cc=marcandre.lureau@redhat.com \
--cc=mjrosato@linux.ibm.com \
--cc=mst@redhat.com \
--cc=pasic@linux.ibm.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=peterx@redhat.com \
--cc=philmd@oss.qualcomm.com \
--cc=pierrick.bouvier@oss.qualcomm.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=th.huth+qemu@posteo.eu \
--cc=yoshinori.sato@nifty.com \
--cc=zhao1.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox