[PATCH v2 1/7] docker: Remove 32-bit MIPS toolchain from debian-all-test image

2025-10-09 Thread Philippe Mathieu-Daudé
In commit d3322023bfe ("configure: unify again the case arms in probe_target_compiler") we lost coverage of 32-bit MIPS with the debian-all-test image. No need to keep installing the toolchain. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- tests/docker/d

Re: [PATCH v7 24/25] tests: add test for double-traps on rv64

2025-10-08 Thread Alistair Francis
On Tue, Oct 7, 2025 at 1:22 AM Julian Ganz wrote: > > We do have a number of test-case for various architectures exercising > their interrupt/exception logic. However, for the recently introduced > trap API we also want to exercise the logic for double traps on at least > o

Re: qemu-system-aarch64 hangs in a cortex-a72 test

2025-10-08 Thread Liviu Ionescu
I fixed the test to run on QEMU 9.2.4. In case others encounter the same issue, here are some details. The problem stemmed from incomplete initialization in the test — specifically, the MMU was disabled. My experience with ARMv8-A is limited, but it appears that unaligned accesses are handled

[PATCH 3/4] tests: add nbd and luks to the I/O test suites

2025-10-08 Thread Daniel P . Berrangé
This introduces new suits for running I/O tests on NBD and LUKS drivers, giving new make targets * make check-block-luks * make check-block-nbd Signed-off-by: Daniel P. Berrangé --- tests/qemu-iotests/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/qem

[PATCH 5/5] test/functional/aarch64: Split the ast2700a1-evb OpenBMC boot test

2025-10-07 Thread Cédric Le Goater
The 'ast2700a1-evb' machine has two functional tests: one loading firmware components into memory and another using a vbootrom image. Both tests perform a full OpenBMC boot and run checks on I2C and PCIe devices, which is redundant and time-consuming. To save CI resources, the vbootr

Re: [PATCH] test/functional/arm: Split the ast2600 tests in two files

2025-10-07 Thread Thomas Huth
On 06/10/2025 19.34, Cédric Le Goater wrote: The ast2600 test file currently includes tests for both the Buildroot and SDK images. Since the SDK image tests can take long to run, split them into a separate file to clearly distinguish the two sets of tests, improve parallelism and allow for

Re: [PULL 12/23] tests/functional/aspeed: Add to test vbootrom for AST2700

2025-10-06 Thread Thomas Huth
On 05/05/2025 11.06, Cédric Le Goater wrote: From: Jamin Lin Add the AST2700 functional test to boot using the vbootrom image instead of manually loading boot components with -device loader. The boot ROM binary is now passed via the -bios option, using the image located in pc-bios

[RFC PATCH v2 2/2] tests/tcg: add test for qemu_plugin_set_pc API

2025-10-06 Thread Florian Hofhammer
The test executes a non-existent syscall, which the syscall plugin intercepts and redirects to a clean exit. Due to architecture-specific quirks, the Makefile requires setting specific compiler and linker flags for some architectures. Signed-off-by: Florian Hofhammer --- tests/tcg/multiarch

[PATCH v7 25/25] tests: add test with interrupted memory accesses on rv64

2025-10-06 Thread Julian Ganz
This test aims at catching API misbehaviour w.r.t. the interaction between interrupts and memory accesses, such as the bug fixed in 27f347e6a1d269c533633c812321cabb249eada8 Because the condition for triggering misbehaviour may not be deterministic and the cross-section between memory

qemu-system-aarch64 hangs in a cortex-a72 test

2025-10-05 Thread Liviu Ionescu
Hi! I have a small semihosted test that I use to test the xPack QEMU releases. The test worked just fine up to 8.2.9, but hangs with 9.0.0 or later, including 10.0.0. The test is invoked with: ``` $ qemu-system-aarch64 --machine virt --cpu cortex-a72 --kernel hello-world-cortex-a72.elf

[PULL 3/8] vhost-user-test: remove trailing newlines in g_test_message() calls

2025-10-04 Thread Michael Tokarev
Fixes: c9a1ea9c52 Revert "tests/qtest: use qos_printf instead of g_test_message" Reviewed-by: Laurent Vivier Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- tests/qtest/vhost-user-test.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/q

[PULL 45/45] migration-test: test cpr-exec

2025-10-03 Thread Peter Xu
From: Steve Sistare Add a test for the cpr-exec migration mode. Signed-off-by: Steve Sistare Link: https://lore.kernel.org/r/1759332851-370353-20-git-send-email-steven.sist...@oracle.com Signed-off-by: Peter Xu --- tests/qtest/migration/cpr-tests.c | 133 ++ 1

[PATCH v6 7/9] tests/functional: Add decorator to skip test on missing env vars

2025-10-03 Thread Gustavo Romero
Add a decorator to skip tests on missing env variable(s). Multiple variable names can be provided and if one or more of them are not set in the test environment the test is skipped and the missing vars are printed out. Reviewed-by: Thomas Huth Reviewed-by: Daniel P. Berrangé Signed-off-by

[PATCH v10 13/13] test/functional: Add test for boston-aia board

2025-10-03 Thread Djordje Todorovic
Add functional test for Boston AIA board. The P8700 RISC-V based CPU by MIPS supports it at the moment. Signed-off-by: Chao-ying Fu Signed-off-by: Djordje Todorovic --- tests/functional/riscv64/meson.build | 2 + .../functional/riscv64/test_riscv64_boston.py | 124

Re: [PATCH v9 13/13] test/functional: Add test for boston-aia board

2025-10-03 Thread Djordje Todorovic
> > >  Hi! > > On 01/10/2025 11.49, Djordje Todorovic wrote: >> Add functional test for Boston AIA board. The P8700 RISC-V based >> CPU by MIPS supports it at the moment. >> >> Signed-off-by: Chao-ying Fu >> Signed-off-by: Djordje Todorovic >>

Re: [SPAM] [PATCH v1 0/5] Update to test ASPEED SDK v09.08

2025-10-03 Thread Cédric Le Goater
On 10/3/25 09:21, Jamin Lin wrote: v1 1. Update to test ASPEED SDK v09.08 for AST2500, AST2600 and AST2700 A1 2. Update to test ASPEED SDK v03.03 for AST1030 Dependencies Based on https://github.com/legoater/qemu at the aspeed-next branch. Jamin Lin (5): tests/functional/arm

RE: [PATCH v4 3/3] tests/functional/aarch64/test_aspeed_ast2700fc: Add vbootrom test

2025-10-03 Thread Jamin Lin
Hi Cédric > Subject: Re: [PATCH v4 3/3] tests/functional/aarch64/test_aspeed_ast2700fc: > Add vbootrom test > > Hello Jamin, > > >> Could we update all tests to use the latest SDK v09.08 [1] which was > released ? > >> > > > > I’ll update AST

[PATCH v1 0/5] Update to test ASPEED SDK v09.08

2025-10-03 Thread Jamin Lin via
v1 1. Update to test ASPEED SDK v09.08 for AST2500, AST2600 and AST2700 A1 2. Update to test ASPEED SDK v03.03 for AST1030 Dependencies Based on https://github.com/legoater/qemu at the aspeed-next branch. Jamin Lin (5): tests/functional/arm/test_aspeed_ast1030: Update test ASPEED SDK

[PATCH v1 4/5] tests/functional/aarch64/test_aspeed_ast2700: Update test ASPEED SDK v09.08 for A1

2025-10-03 Thread Jamin Lin via
Support for AST2700 A0 was dropped starting from SDK v09.07. The new SDK v09.08 only updates support for AST2700 A1. Signed-off-by: Jamin Lin --- .../functional/aarch64/test_aspeed_ast2700.py | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/tests/functiona

[PATCH v1 2/5] tests/functional/arm/test_aspeed_ast2500: Update test ASPEED SDK v09.08

2025-10-03 Thread Jamin Lin via
Signed-off-by: Jamin Lin --- tests/functional/arm/test_aspeed_ast2500.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/functional/arm/test_aspeed_ast2500.py b/tests/functional/arm/test_aspeed_ast2500.py index 4fdd81e2f9..5efd104c2b 100755 --- a/tests/functiona

[PATCH v1 3/5] tests/functional/arm/test_aspeed_ast2600: Update test ASPEED SDK v09.08

2025-10-03 Thread Jamin Lin via
2600-evb') self.require_netdev('user') -self.archive_extract(self.ASSET_SDK_V907_AST2600) +self.archive_extract(self.ASSET_SDK_V908_AST2600) self.vm.add_args('-device', 'tmp105,bus=aspeed.i2c.bus.5,address=0x4d,id=tmp-test') @@ -160,7 +160,7 @@ d

[PATCH v1 1/5] tests/functional/arm/test_aspeed_ast1030: Update test ASPEED SDK v03.03

2025-10-03 Thread Jamin Lin via
Signed-off-by: Jamin Lin --- tests/functional/arm/test_aspeed_ast1030.py | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/functional/arm/test_aspeed_ast1030.py b/tests/functional/arm/test_aspeed_ast1030.py index e47b597d0b..60e2b0251c 100755 --- a/tests

[PULL 08/27] tests/powernv: Add PowerNV test for Power11

2025-10-02 Thread Harsh Prateek Bora
From: Aditya Gupta With all Power11 support in place, add Power11 PowerNV test. Reviewed-by: Cédric Le Goater Signed-off-by: Aditya Gupta Tested-by: Amit Machhiwal Tested-by: Cédric Le Goater Signed-off-by: Harsh Prateek Bora Link: https://lore.kernel.org/r/20250925173049.891406-9-adit

[PATCH 3/3] iotests: add Linux loop device image creation test

2025-10-02 Thread Stefan Hajnoczi
This qemu-iotests test case is based on the reproducer that Jean-Louis Dupond shared in https://gitlab.com/qemu-project/qemu/-/issues/3127. Signed-off-by: Stefan Hajnoczi --- tests/qemu-iotests/tests/loop-create-file | 59 +++ tests/qemu-iotests/tests/loop-create-file.out

Re: [PATCH v5 7/9] tests/functional: Add decorator to skip test on missing env vars

2025-10-02 Thread Daniel P . Berrangé
On Thu, Oct 02, 2025 at 02:04:30AM +, Gustavo Romero wrote: > Add a decorator to skip tests on missing env variable(s). Multiple > variable names can be provided and if one or more of them are not set in > the test environment the test is skipped and the missing vars are >

[PATCH 09/17] test/qtest: add riscv-trace-test.c

2025-10-02 Thread Daniel Henrique Barboza
Add a simple smoke test for the trace encoder/trace ram sink integration with the RISC-V 'virt' machine. Signed-off-by: Daniel Henrique Barboza --- hw/riscv/virt.c| 2 +- tests/qtest/meson.build| 2 +- tests/qtest/riscv-trace-te

[PULL 13/13] migration-test: strv parameter

2025-10-01 Thread Fabiano Rosas
From: Steve Sistare Define migrate_set_parameter_strv. Signed-off-by: Steve Sistare Reviewed-by: Fabiano Rosas Link: https://lore.kernel.org/qemu-devel/1759332851-370353-19-git-send-email-steven.sist...@oracle.com Signed-off-by: Fabiano Rosas --- tests/qtest/migration/migration-qmp.c | 16 +

Re: [PATCH] migration-test: fix migrate_args

2025-10-01 Thread Fabiano Rosas
Steve Sistare writes: > migrate_args calls g_test_skip, but that does not end the test. > It must also return an error code. This fixes the queued patch > "migration-test: migrate_args". > > Suggested-by: Fabiano Rosas > Signed-off-by: Steve Sistare > --- >

[PATCH v5 7/9] tests/functional: Add decorator to skip test on missing env vars

2025-10-01 Thread Gustavo Romero
Add a decorator to skip tests on missing env variable(s). Multiple variable names can be provided and if one or more of them are not set in the test environment the test is skipped and the missing vars are printed out. Reviewed-by: Thomas Huth Signed-off-by: Gustavo Romero --- tests/functional

[PULL 12/13] migration-test: migrate_args

2025-10-01 Thread Fabiano Rosas
From: Steve Sistare Define the subroutine migrate_args to return the arguments that are used to exec the source or target qemu process. Signed-off-by: Steve Sistare Reviewed-by: Fabiano Rosas Link: https://lore.kernel.org/qemu-devel/1759332851-370353-18-git-send-email-steven.sist...@oracle.co

[PULL 09/13] migration-test: only_source option

2025-10-01 Thread Fabiano Rosas
+qtest_qmp_set_event_callback(*to, + migrate_watch_for_events, + &dst_state); +} /* * Remove shmem file immediately to avoid memory leak in test failed case. @@ -424,7 +428,9 @@ int migrate_start(QTestState **from, QTestState **to

[PULL 11/13] migration-test: misc exports

2025-10-01 Thread Fabiano Rosas
From: Steve Sistare Export misc definitions needed by the cpr-exec test. Signed-off-by: Steve Sistare Reviewed-by: Fabiano Rosas Link: https://lore.kernel.org/qemu-devel/1759332851-370353-17-git-send-email-steven.sist...@oracle.com Signed-off-by: Fabiano Rosas --- tests/qtest/migration

[PULL 10/13] migration-test: shm path accessor

2025-10-01 Thread Fabiano Rosas
From: Steve Sistare Define an accessor for the shm path. It will be referenced from multiple sites in a subsequent patch. Signed-off-by: Steve Sistare Reviewed-by: Fabiano Rosas Link: https://lore.kernel.org/qemu-devel/1759332851-370353-16-git-send-email-steven.sist...@oracle.com Signed-off-

[PATCH V5 15/19] migration-test: shm path accessor

2025-10-01 Thread Steve Sistare
Define an accessor for the shm path. It will be referenced from multiple sites in a subsequent patch. Signed-off-by: Steve Sistare Reviewed-by: Fabiano Rosas --- tests/qtest/migration/framework.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/qtest/migration/fr

[PATCH V5 17/19] migration-test: migrate_args

2025-10-01 Thread Steve Sistare
Define the subroutine migrate_args to return the arguments that are used to exec the source or target qemu process. Signed-off-by: Steve Sistare Reviewed-by: Fabiano Rosas --- tests/qtest/migration/framework.h | 2 ++ tests/qtest/migration/framework.c | 65 -

[PATCH V5 14/19] migration-test: only_source option

2025-10-01 Thread Steve Sistare
+qtest_qmp_set_event_callback(*to, + migrate_watch_for_events, + &dst_state); +} /* * Remove shmem file immediately to avoid memory leak in test failed case. @@ -424,7 +428,9 @@ int migrate_start(QTestState **from, QTes

[PATCH V5 18/19] migration-test: strv parameter

2025-10-01 Thread Steve Sistare
Define migrate_set_parameter_strv. Signed-off-by: Steve Sistare Reviewed-by: Fabiano Rosas --- tests/qtest/migration/migration-qmp.h | 2 ++ tests/qtest/migration/migration-qmp.c | 16 2 files changed, 18 insertions(+) diff --git a/tests/qtest/migration/migration-qmp.h b/tes

[PATCH V5 19/19] migration-test: test cpr-exec

2025-10-01 Thread Steve Sistare
Add a test for the cpr-exec migration mode. Signed-off-by: Steve Sistare --- tests/qtest/migration/cpr-tests.c | 133 ++ 1 file changed, 133 insertions(+) diff --git a/tests/qtest/migration/cpr-tests.c b/tests/qtest/migration/cpr-tests.c index 5e764a6

[PATCH V5 16/19] migration-test: misc exports

2025-10-01 Thread Steve Sistare
Export misc definitions needed by the cpr-exec test. Signed-off-by: Steve Sistare Reviewed-by: Fabiano Rosas --- tests/qtest/migration/bootfile.h | 1 + tests/qtest/migration/framework.h | 1 + tests/qtest/migration/bootfile.c | 5 + tests/qtest/migration/framework.c | 5 + 4 files

[PATCH v9 13/13] test/functional: Add test for boston-aia board

2025-10-01 Thread Djordje Todorovic
Add functional test for Boston AIA board. The P8700 RISC-V based CPU by MIPS supports it at the moment. Signed-off-by: Chao-ying Fu Signed-off-by: Djordje Todorovic --- tests/functional/riscv64/meson.build | 1 + .../functional/riscv64/test_riscv64_boston.py | 164

[PATCH v4 3/3] tests/functional/aarch64/test_aspeed_ast2700fc: Add vbootrom test

2025-09-30 Thread Jamin Lin via
. Add test_aarch64_ast2700fc_sdk_vbootrom_v09_06() to test the vbootrom with ast2700fc machine. Signed-off-by: Jamin Lin --- .../aarch64/test_aspeed_ast2700fc.py | 37 ++- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/tests/functional/aarch64

Re: [PATCH V1 00/11] cpr-exec test

2025-09-30 Thread Fabiano Rosas
Steve Sistare writes: > Add a migration test for cpr-exec mode. > Depends on the patch series "Live update: cpr-exec". > > Steve Sistare (11): > tests/qtest: export qtest_qemu_binary > tests/qtest: qtest_qemu_args > tests/qtest: qtest_cr

Re: [PATCH V1 09/11] migration-test: migrate_args

2025-09-30 Thread Fabiano Rosas
rom, QTestState **to, > const char *uri, > if (!qtest_has_machine(machine_alias)) { > g_autofree char *msg = g_strdup_printf("machine %s not supported", > machine_alias); > g_test_skip(msg); > -return -1; > +return; A common pi

Test email

2025-09-30 Thread Salil Mehta via
Test email. sorry for the noise!

test email

2025-09-30 Thread Salil Mehta
test email (sorry for the noise)

Re: [PATCH V1 11/11] migration-test: test cpr-exec

2025-09-30 Thread Steven Sistare
On 9/30/2025 3:02 PM, Peter Xu wrote: On Tue, Sep 30, 2025 at 02:23:49PM -0400, Steven Sistare wrote: On 9/30/2025 1:08 PM, Peter Xu wrote: On Fri, Sep 19, 2025 at 07:12:33AM -0700, Steve Sistare wrote: Add a test for the cpr-exec migration mode. Signed-off-by: Steve Sistare Looks good

Re: [PATCH V1 11/11] migration-test: test cpr-exec

2025-09-30 Thread Steven Sistare
On 9/30/2025 1:08 PM, Peter Xu wrote: On Fri, Sep 19, 2025 at 07:12:33AM -0700, Steve Sistare wrote: Add a test for the cpr-exec migration mode. Signed-off-by: Steve Sistare Looks good, only some nitpicks or pure questions below. --- tests/qtest/migration/cpr-tests.c | 120

Re: [PATCH V1 11/11] migration-test: test cpr-exec

2025-09-30 Thread Peter Xu
On Fri, Sep 19, 2025 at 07:12:33AM -0700, Steve Sistare wrote: > Add a test for the cpr-exec migration mode. > > Signed-off-by: Steve Sistare Looks good, only some nitpicks or pure questions below. > --- > tests/qtest/migration/cpr-tests.c | 120 > +

[RFC v2 1/2] hw/misc/smmu-testdev: introduce minimal SMMUv3 test device

2025-09-30 Thread tangtao1634
From: Tao Tang Add a tiny, test-only DMA source dedicated to exercising the SMMUv3 model. The device purposefully avoids a realistic PCIe/platform implementation and instead routes DMA requests straight into the SMMU, so that qtests can populate STE/CD/PTE with known values and observe

[PULL 16/27] hw/ppc: Add a test machine for the IBM PPE42 CPU

2025-09-28 Thread Harsh Prateek Bora
From: Glenn Miles Adds a test machine for the IBM PPE42 processor, including a DEC, FIT, WDT and 512 KiB of ram. The purpose of this machine is only to provide a generic platform for testing instructions of the recently added PPE42 processor model which is used extensively in the IBM Power9

Re: [PATCH 1/3] bios-tables-test-allowed-diff.h: Allow LoongArch DSDT.*

2025-09-27 Thread Bibo Mao
Reviewed-by: On 2025/9/23 下午10:35, Huacai Chen wrote: Signed-off-by: Huacai Chen --- tests/qtest/bios-tables-test-allowed-diff.h | 4 1 file changed, 4 insertions(+) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h index

[Stable-7.2.21 16/16] tests/tcg/multiarch: Add tb-link test

2025-09-27 Thread Michael Tokarev
+ # We define the runner for test-mmap after the individual # architectures have defined their supported pages sizes. If no # additional page sizes are defined we only run the default test. diff --git a/tests/tcg/multiarch/tb-link.c b/tests/tcg/multiarch/tb-link.c new file mode 100644 index 00

[Stable-7.2.21 04/16] vhost-user-test: no set non-blocking for cal fd less than 0.

2025-09-27 Thread Michael Tokarev
case. Calling g_unix_set_fd_nonblocking at this point will cause the test to interrupt. When vhost_user_write sets the call fd to -1, it sets the number of fds to 0, so the fds obtained by qemu_chr_fe_get_msgfds will also be 0. Signed-off-by: Yuxue Liu Message-Id: <20240411073555.1357-1-yu

[Stable-7.2.21 06/16] tests/qtest: Do not run lsi53c895a test if device is not present

2025-09-27 Thread Michael Tokarev
From: Fabiano Rosas The tests are built once for all the targets, so as long as one QEMU binary is built with CONFIG_LSI_SCSI_PCI=y, this test will run. However some binaries might not include the device. So check this again in runtime. Signed-off-by: Fabiano Rosas Message-Id

Re: [PATCH v2 22/27] RFC: tests/docker: add rust to debian-legacy-test-cross

2025-09-26 Thread Alex Bennée
st version of any of their device backends. > > Linking is still failing with -lrt, despite it being present in the link > arguments... > > Signed-off-by: Marc-André Lureau > --- > .gitlab-ci.d/buildtest.yml | 2 +- > tests/docker/docker

[PATCH v2 29/32] hw: mark test/demo devices as insecure

2025-09-26 Thread Daniel P . Berrangé
These devices are either intended for use by the test suite, or as a demonstration for how to write devices. None of them should be used for real guest workload deployments. Signed-off-by: Daniel P. Berrangé --- hw/hyperv/hyperv_testdev.c | 1 + hw/misc/edu.c | 1 + hw/misc/pc

[Stable-10.0.5 38/38] tests/tcg/multiarch: Add tb-link test

2025-09-26 Thread Michael Tokarev
From: Richard Henderson Signed-off-by: Richard Henderson (cherry picked from commit e13e1195db8af18e149065a59351ea85215645bb) Signed-off-by: Michael Tokarev diff --git a/tests/tcg/multiarch/Makefile.target b/tests/tcg/multiarch/Makefile.target index 45c9cfe18c..cfecf65c2d 100644 --- a/tests/t

[Stable-10.1.1 60/60] tests/tcg/multiarch: Add tb-link test

2025-09-26 Thread Michael Tokarev
From: Richard Henderson Signed-off-by: Richard Henderson (cherry picked from commit e13e1195db8af18e149065a59351ea85215645bb) Signed-off-by: Michael Tokarev diff --git a/tests/tcg/multiarch/Makefile.target b/tests/tcg/multiarch/Makefile.target index 8dc65d7a06..f5b4d2b813 100644 --- a/tests/t

Re: [PATCH v4 7/9] tests/functional: Add decorator to skip test on missing env vars

2025-09-26 Thread Thomas Huth
On 26/09/2025 07.15, Gustavo Romero wrote: Add a decorator to skip tests on missing env variable(s). Multiple variable names can be provided and if one or more of them are not set in the test environment the test is skipped and the missing vars are printed out. Signed-off-by: Gustavo Romero

[PATCH v6 47/47] tests/functional/test_aarch64_xlnx_versal: test the versal2 machine

2025-09-26 Thread Luc Michel
Add a test for the amd-versal2-virt machine using the same command line, kernel, initrd than the ones used for amd-versal-virt. Signed-off-by: Luc Michel Reviewed-by: Francisco Iglesias Reviewed-by: Edgar E. Iglesias --- tests/functional/aarch64/test_xlnx_versal.py | 10 -- 1 file

[PULL 01/29] tests/functional: add a vfio-user smoke test

2025-09-25 Thread Cédric Le Goater
From: Mark Cave-Ayland Add a basic test of the vfio-user PCI client implementation. Co-authored-by: John Levon Signed-off-by: Mark Cave-Ayland Signed-off-by: John Levon Reviewed-by: Thomas Huth Link: https://lore.kernel.org/qemu-devel/20250911210905.2070474-1-john.le...@nutanix.com Signed

[PATCH v4 7/9] tests/functional: Add decorator to skip test on missing env vars

2025-09-25 Thread Gustavo Romero
Add a decorator to skip tests on missing env variable(s). Multiple variable names can be provided and if one or more of them are not set in the test environment the test is skipped and the missing vars are printed out. Signed-off-by: Gustavo Romero --- tests/functional/qemu_test/__init__.py

Re: [PATCH 14/24] tests: move mips to debian-legacy-test-cross

2025-09-25 Thread Daniel P . Berrangé
> > > > > We are updating debian which dropped support for it: > > > > > https://www.debian.org/releases/trixie/release-notes/issues.html#mips-architectures-removed > > > > If Debian 13 has dropped it, why aren't we just keeping the mips > >

[PATCH 01/10] target/arm: Add isar feature test for FEAT_RME_GPC2

2025-09-25 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/cpu-features.h | 5 + 1 file changed, 5 insertions(+) diff --git a/target/arm/cpu-features.h b/target/arm/cpu-features.h index 512eeaf551..2214b0ee08 100644 --- a/target/arm/cpu-features.h +++ b/target/arm/cpu-features.h @@ -676,6 +676,11 @@ st

[PATCH v6 9/9] tests/functional: Add test for IBM PPE42 instructions

2025-09-25 Thread Glenn Miles
Adds a functional test for the IBM PPE42 instructions which downloads a test image from a public github repo and then loads and executes the image. (see https://github.com/milesg-github/ppe42-tests for details) Test status is checked by periodically issuing 'info register' commands an

[PATCH v6 8/9] hw/ppc: Add a test machine for the IBM PPE42 CPU

2025-09-25 Thread Glenn Miles
Adds a test machine for the IBM PPE42 processor, including a DEC, FIT, WDT and 512 KiB of ram. The purpose of this machine is only to provide a generic platform for testing instructions of the recently added PPE42 processor model which is used extensively in the IBM Power9, Power10 and future

Re: [PATCH v6] tests/functional: add a vfio-user smoke test

2025-09-25 Thread Cédric Le Goater
On 9/11/25 23:09, John Levon wrote: From: Mark Cave-Ayland Add a basic test of the vfio-user PCI client implementation. Co-authored-by: John Levon Signed-off-by: Mark Cave-Ayland Signed-off-by: John Levon --- MAINTAINERS | 1 + tests/functional/x86_64

[RFC 2/2] tests/qtest: add SMMUv3 smoke test using smmu-testdev DMA source

2025-09-25 Thread Tao Tang
Introduce a bare-metal qtest that drives the new smmu-testdev to exercise the SMMUv3 emulation without guest firmware or drivers. The test programs a minimal Non-Secure context (STE/CD/PTE), triggers a DMA, and asserts translation results. Motivation -- SMMU testing in emulation often

[RFC 0/2] Introduce a new SMMUv3 test framework

2025-09-25 Thread Tao Tang
Hi all, This patch series introduces a new test framework designed to validate the QEMU SMMUv3 emulation in a "bare-metal" environment, free from the complexities of guest firmware and drivers. Motivation -- Currently, thoroughly testing the SMMUv3 emulation requires a s

[RFC 1/2] hw/misc/smmu-testdev: introduce minimal SMMUv3 test device

2025-09-25 Thread Tao Tang
Add a tiny, test-only DMA source dedicated to exercising the SMMUv3 model. The device purposefully avoids a realistic PCIe/platform implementation and instead routes DMA requests straight into the SMMU, so that qtests can populate STE/CD/PTE with known values and observe translation and data

Re: [PATCH 2/2] qtest/am53c974-test: add additional test for cmdfifo overflow

2025-09-25 Thread Philippe Mathieu-Daudé
On 25/9/25 14:28, Mark Cave-Ayland wrote: Based upon the qtest reproducer posted to Gitlab issue #3082 at https://gitlab.com/qemu-project/qemu/-/issues/3082. Signed-off-by: Mark Cave-Ayland --- tests/qtest/am53c974-test.c | 40 + 1 file changed, 40 inserti

[PATCH 2/2] qtest/am53c974-test: add additional test for cmdfifo overflow

2025-09-25 Thread Mark Cave-Ayland
Based upon the qtest reproducer posted to Gitlab issue #3082 at https://gitlab.com/qemu-project/qemu/-/issues/3082. Signed-off-by: Mark Cave-Ayland --- tests/qtest/am53c974-test.c | 40 + 1 file changed, 40 insertions(+) diff --git a/tests/qtest/am53c974-test

[PATCH v1 0/5] Add Aspeed GPIO test and Support Nuvoton Serial GPIO Expansion (SGPIO) device

2025-09-24 Thread Coco Li
GPIO series: Added 32 bits property for ASPEED GPIO with updated qtests. SGPIO series: Implemented SGPIO device according for npcm8xx. Two notable implementations left undone in these patches are: 1. Reading the data from the host controlled SIOX via register IOXDATR 2. On-demand with polling re

[PATCH v2 22/27] RFC: tests/docker: add rust to debian-legacy-test-cross

2025-09-24 Thread marcandre . lureau
| 2 +- tests/docker/dockerfiles/debian-legacy-test-cross.docker | 9 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index c3467200f4..34d8c1a496 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab

[PATCH v8 14/14] test/functional: Add test for boston-aia board

2025-09-24 Thread Djordje Todorovic
Add functional test for Boston AIA board. The P8700 RISC-V based CPU by MIPS supports it at the moment. Signed-off-by: Chao-ying Fu Signed-off-by: Djordje Todorovic --- tests/functional/riscv64/meson.build | 1 + .../functional/riscv64/test_riscv64_boston.py | 164

[PULL 06/12] tests/functional: Use vmstate-static-checker.py to test data from v7.2

2025-09-23 Thread Thomas Huth
From: Thomas Huth We've got this nice vmstate-static-checker.py script that can help to detect screw-ups in the migration states. Unfortunately, it's currently only run manually, which can be cumbersome. Let's run it from a functional test automatically with the reference data fr

[PULL 01/12] tests/functional/m68k: Use proper polling in the next-cube test

2025-09-23 Thread Thomas Huth
From: Thomas Huth The next-cube tests currently sleep for 2 seconds to wait for the guest's display to come up with the expected results. That's bad since there is still a theoretical race left here, and since there are two subtests, the whole test takes more than 4 seconds this way.

[PULL 00/12] Functional test patches

2025-09-23 Thread Thomas Huth
IPTION for htags Thomas Huth (8): tests/functional/m68k: Use proper polling in the next-cube test tests/functional/s390x/test_pxelinux: Fix warnings from pylint tests: Move the old vmstate-static-checker files to tests/data/ tests/functional: Test whether the vmstate-stat

Re: [PATCH] tests/functional/hppa: Add a CD-ROM boot test for qemu-system-hppa

2025-09-23 Thread Philippe Mathieu-Daudé
On 18/9/25 14:24, Thomas Huth wrote: From: Thomas Huth Add a test which boots a HP-UX firmware upgrade CD-ROM. It exercise the PCI LSI53C895A SCSI controller. The ISO image comes from: https://web.archive.org/web/20101204061612/http://ftp.parisc-linux.org/kernels/712/PF_C7120023 The test is

Re: [PATCH v5 8/8] tracetool-test: allow to run in parallel

2025-09-23 Thread Philippe Mathieu-Daudé
On 16/9/25 10:16, Daniel P. Berrangé wrote: From: Marc-André Lureau Create a temporary build subdirectory, to avoid conflicting with other running tests. This fixes "meson test" with tracetool-test which is parallel default. Signed-off-by: Marc-André Lureau

[PATCH 5/5] tests/virtio-scsi: add a virtio_error() IOThread test

2025-09-22 Thread Stefan Hajnoczi
Now that virtio_error() calls should work in an IOThread, add a virtio-scsi IOThread test cases that triggers virtio_error(). Signed-off-by: Stefan Hajnoczi --- tests/qtest/virtio-scsi-test.c | 32 1 file changed, 32 insertions(+) diff --git a/tests/qtest

[PATCH v5 01/76] target/arm: Add isar feature test for FEAT_S1PIE, FEAT_S2PIE

2025-09-22 Thread Richard Henderson
Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- target/arm/cpu-features.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/target/arm/cpu-features.h b/target/arm/cpu-features.h index 512eeaf551..30226814bb 100644 --- a/target/arm/cpu-features.h +++ b/target/arm/

Re: [PATCH 14/24] tests: move mips to debian-legacy-test-cross

2025-09-22 Thread Daniel P . Berrangé
On Mon, Sep 22, 2025 at 05:10:56PM +0200, Paolo Bonzini wrote: > On 9/22/25 11:06, Daniel P. Berrangé wrote: > > On Mon, Sep 22, 2025 at 12:38:09PM +0400, Marc-André Lureau wrote: > > > debian-legacy-test-cross is for tests/tcg. Debian 11 supports more > > >

Re: [PATCH 14/24] tests: move mips to debian-legacy-test-cross

2025-09-22 Thread Paolo Bonzini
On 9/22/25 11:06, Daniel P. Berrangé wrote: On Mon, Sep 22, 2025 at 12:38:09PM +0400, Marc-André Lureau wrote: debian-legacy-test-cross is for tests/tcg. Debian 11 supports more architecture than 12 or 13.. If there are architectures in 11 that can't be tested in 12, then from QEMU'

Re: [PATCH] tests/functional/m68k: Use proper polling in the next-cube test

2025-09-22 Thread Philippe Mathieu-Daudé
On 9/9/25 09:48, Thomas Huth wrote: From: Thomas Huth The next-cube tests currently sleep for 2 seconds to wait for the guest's display to come up with the expected results. That's bad since there is still a theoretical race left here, and since there are two subtests, the whole

[PATCH 2/6] tests/functional: convert reverse debug test to local gdb module

2025-09-20 Thread Daniel P . Berrangé
This replaces the use of Avocado for the GDBRemote class with our in-tree copy. Signed-off-by: Daniel P. Berrangé --- tests/functional/reverse_debugging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/reverse_debugging.py b/tests/functional/reverse_de

[PATCH 5/6] tests/functional: close GDB socket in reverse debugging test

2025-09-20 Thread Daniel P . Berrangé
The GDB socket FD is leaked currently resulting in a warning from python about the unclosed resource. Signed-off-by: Daniel P. Berrangé --- tests/functional/qemu_test/gdb.py | 4 tests/functional/reverse_debugging.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tests/functiona

[PATCH v3 9/9] tests/functional: Add test for IBM PPE42 instructions

2025-09-20 Thread Glenn Miles
Adds a functional test for the IBM PPE42 instructions which downloads a test image from a public github repo and then loads and executes the image. (see https://github.com/milesg-github/ppe42-tests for details) Test status is checked by periodically issuing 'info register' commands an

[PATCH] tests/functional/m68k: Use proper polling in the next-cube test

2025-09-20 Thread Thomas Huth
From: Thomas Huth The next-cube tests currently sleep for 2 seconds to wait for the guest's display to come up with the expected results. That's bad since there is still a theoretical race left here, and since there are two subtests, the whole test takes more than 4 seconds this way.

[PULL 23/23] tests/functional: purge scratch dir on test startup

2025-09-20 Thread Thomas Huth
From: Daniel P. Berrangé The test suite purges the scratch dir in the tearDown method, but if python crashes (or is non-gracefully killed) this won't get run. Also the user can set QEMU_TEST_KEEP_SCRATCH to disable cleanup. Purging the scratch dir on startup ensures that tests always run f

Re: [PATCH 22/24] WIP: tests/docker: add rust to debian-legacy-test-cross

2025-09-20 Thread Daniel P . Berrangé
only support at most 2 releases, which means 12 & 13 now. So this dockerfile is overdue removal and/or update. > > Signed-off-by: Marc-André Lureau > --- > .gitlab-ci.d/buildtest.yml | 2 +- > tests/docker/dockerfiles/debian-legacy-test-cross.docke

[PATCH v2 09/12] rust/qdev: Test bit property for #property

2025-09-20 Thread Zhao Liu
rence does not break user habits and should be acceptable. Therefore, the test cases also cover this scenario. Signed-off-by: Zhao Liu --- rust/qemu-macros/src/tests.rs | 99 +++ 1 file changed, 99 insertions(+) diff --git a/rust/qemu-macros/src/tests.rs b/rust/qemu-

[PATCH V1 00/11] cpr-exec test

2025-09-19 Thread Steve Sistare
Add a migration test for cpr-exec mode. Depends on the patch series "Live update: cpr-exec". Steve Sistare (11): tests/qtest: export qtest_qemu_binary tests/qtest: qtest_qemu_args tests/qtest: qtest_create_test_state tests/qtest: qtest_qemu_spawn_func tests/qtest: qtest_init_

Re: [PATCH 14/24] tests: move mips to debian-legacy-test-cross

2025-09-19 Thread Daniel P . Berrangé
, why aren't we just keeping the mips dockerfiles on 12 ? The debian-legacy-test-cross a manually written dockerfile that has almost none of our deps installed, and is still on 11 which is outside our support matrix now. So I don't think we should be expanding use of debian-legacy-test-cros

[PATCH V1 06/11] migration-test: only_source option

2025-09-19 Thread Steve Sistare
migrate_watch_for_events, + &dst_state); +} /* * Remove shmem file immediately to avoid memory leak in test failed case. @@ -424,7 +428,9 @@ int migrate_start(QTestState **from, QTestState **to

[PATCH V1 08/11] migration-test: misc exports

2025-09-19 Thread Steve Sistare
Export misc definitions needed by the cpr-exec test. Signed-off-by: Steve Sistare --- tests/qtest/migration/bootfile.h | 1 + tests/qtest/migration/framework.h | 4 tests/qtest/migration/bootfile.c | 5 + tests/qtest/migration/framework.c | 7 +-- 4 files changed, 15 insertions

[PATCH V1 09/11] migration-test: migrate_args

2025-09-19 Thread Steve Sistare
Define the subroutine migrate_args to return the arguments that are used to exec the source or target qemu process. Signed-off-by: Steve Sistare --- tests/qtest/migration/framework.h | 2 ++ tests/qtest/migration/framework.c | 64 --- 2 files changed, 41 inse

[PATCH V1 11/11] migration-test: test cpr-exec

2025-09-19 Thread Steve Sistare
Add a test for the cpr-exec migration mode. Signed-off-by: Steve Sistare --- tests/qtest/migration/cpr-tests.c | 120 ++ 1 file changed, 120 insertions(+) diff --git a/tests/qtest/migration/cpr-tests.c b/tests/qtest/migration/cpr-tests.c index 5e764a6

[PATCH V1 07/11] migration-test: shm path accessor

2025-09-19 Thread Steve Sistare
Define an accessor for the shm path. It will be referenced from multiple sites in a subsequent patch. Signed-off-by: Steve Sistare --- tests/qtest/migration/framework.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/qtest/migration/framework.c b/tests/qtest/mig

[PATCH V1 10/11] migration-test: strv parameter

2025-09-19 Thread Steve Sistare
Define migrate_set_parameter_strv. Signed-off-by: Steve Sistare --- tests/qtest/migration/migration-qmp.h | 2 ++ tests/qtest/migration/migration-qmp.c | 16 2 files changed, 18 insertions(+) diff --git a/tests/qtest/migration/migration-qmp.h b/tests/qtest/migration/migration

  1   2   3   4   5   6   7   8   9   10   >