[PATCH v3 03/12] tests/unit: skip test-nested-aio-poll with io_uring

2025-07-21 Thread Stefan Hajnoczi
test-nested-aio-poll relies on internal details of how fdmon-poll.c handles AioContext polling. Skip it when other fdmon implementations are in use. Note that this test is only built on POSIX systems so it is safe to include "util/aio-posix.h". Signed-off-by: Stefan Hajnoczi Reviewe

Re: [RFC PATCH 0/6] Fix building of sparc/sparc32plus test cases

2025-07-21 Thread Mark Cave-Ayland
On 16/07/2025 11:54, Alex Bennée wrote: We didn't have any reliable way to build sparc test cases. I have found someone who ships a compiler but the binaries still don't run due to the need for CASA. I'm posting mainly for those who actually care who might want to fix up the

Re: [RFC PATCH] tests/functional: add hypervisor test for aarch64

2025-07-21 Thread Manos Pitsidianakis
On Mon, Jul 21, 2025 at 6:34 PM Alex Bennée wrote: > > This is a simple test case that runs an image with kvmtool and > kvm-unit-tests which can validate virtualisation works. This is useful > for exercising TCG but can also be applied to any nested virt setup > which is why it doe

[RFC PATCH] tests/functional: add hypervisor test for aarch64

2025-07-21 Thread Alex Bennée
This is a simple test case that runs an image with kvmtool and kvm-unit-tests which can validate virtualisation works. This is useful for exercising TCG but can also be applied to any nested virt setup which is why it doesn't specify an accelerator. Signed-off-by: Alex Bennée Cc: Phi

Re: [PULL 0/5] Functional test patches and 32-bit arm Linux header removal

2025-07-21 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes. signature.asc Description: PGP signature

[PULL 14/20] target/arm: Correct sense of FPCR.AH test for FMAXQV and FMINQV

2025-07-21 Thread Peter Maydell
When we implemented the FMAXQV and FMINQV insns we accidentally inverted the sense of the FPCR.AH test, so we gave the AH=1 behaviour when FPCR.AH was zero, and vice-versa. (The difference is limited to handling of negative zero and NaN inputs.) Fixes: 1de7ecfc12d05 ("target/arm: Impl

Re: [PATCH for-10.1 07/10] target/arm: Correct sense of FPCR.AH test for FMAXQV and FMINQV

2025-07-21 Thread Philippe Mathieu-Daudé
On 18/7/25 19:30, Peter Maydell wrote: When we implemented the FMAXQV and FMINQV insns we accidentally inverted the sense of the FPCR.AH test, so we gave the AH=1 behaviour when FPCR.AH was zero, and vice-versa. (The difference is limited to hadling of negative zero and NaN inputs.) Typo

[PULL 0/5] Functional test patches and 32-bit arm Linux header removal

2025-07-21 Thread Thomas Huth
The following changes since commit e82989544e38062beeeaad88c175afbeed0400f8: Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2025-07-18 14:10:02 -0400) are available in the Git repository at: https://gitlab.com/thuth/qemu.git tags/pull-request-2025-07-21 for you t

[PULL 05/12] hw/net/npcm_gmac.c: Correct test for when to reallocate packet buffer

2025-07-20 Thread Jason Wang
is always 8 bytes, and the condition will almost always be true, so we will reallocate the buffer more often than we need to. Correct the condition to test against tx_buffer_size, which is where we track how big the allocated buffer is. Signed-off-by: Peter Maydell Signed-off-by: Jason

Re: [PATCH 0/2] aarch64: update test images with new trusted firmware

2025-07-18 Thread Pierrick Bouvier
On 7/15/25 2:23 PM, Pierrick Bouvier wrote: The FEAT_MEC series [1] introduces FEAT_TCR2 and FEAT_SCTLR2. TF-A needs to be aware of that change to allow accesses to those registers, and thus must be patched [2] to enable this for QEMU platforms. Concerned test images need to be updated to allow

Re: [PATCH v2 0/2] aarch64: update test images with new trusted firmware

2025-07-18 Thread Pierrick Bouvier
Hi Richard, On 7/18/25 8:58 PM, Pierrick Bouvier wrote: The FEAT_MEC series [1] introduces FEAT_TCR2 and FEAT_SCTLR2. TF-A needs to be aware of that change to allow accesses to those registers, and thus must be patched [2] to enable this for QEMU platforms. Concerned test images need to be

[PATCH v2 0/2] aarch64: update test images with new trusted firmware

2025-07-18 Thread Pierrick Bouvier
The FEAT_MEC series [1] introduces FEAT_TCR2 and FEAT_SCTLR2. TF-A needs to be aware of that change to allow accesses to those registers, and thus must be patched [2] to enable this for QEMU platforms. Concerned test images need to be updated to allow them to boot. [1] https://lore.kernel.org

Re: [PATCH for-10.1 07/10] target/arm: Correct sense of FPCR.AH test for FMAXQV and FMINQV

2025-07-18 Thread Richard Henderson
On 7/18/25 10:30, Peter Maydell wrote: When we implemented the FMAXQV and FMINQV insns we accidentally inverted the sense of the FPCR.AH test, so we gave the AH=1 behaviour when FPCR.AH was zero, and vice-versa. (The difference is limited to hadling of negative zero and NaN inputs.) Fixes

[PATCH for-10.1 07/10] target/arm: Correct sense of FPCR.AH test for FMAXQV and FMINQV

2025-07-18 Thread Peter Maydell
When we implemented the FMAXQV and FMINQV insns we accidentally inverted the sense of the FPCR.AH test, so we gave the AH=1 behaviour when FPCR.AH was zero, and vice-versa. (The difference is limited to hadling of negative zero and NaN inputs.) Fixes: 1de7ecfc12d05 ("target/arm: Implement F

Re: [RFC PATCH 0/6] Fix building of sparc/sparc32plus test cases

2025-07-17 Thread Richard Henderson
On 7/17/25 05:32, Mark Cave-Ayland wrote: I think the basic Debian toolchain for 32-bit SPARC is working because it is currently used to build OpenBIOS, so I don't think we're quite at deprecation point yet. Bear in mind that a cross-compiler for firmware may not have all of the runtime librari

Re: [RFC PATCH 0/6] Fix building of sparc/sparc32plus test cases

2025-07-17 Thread Alex Bennée
Mark Cave-Ayland writes: > On 16/07/2025 11:54, Alex Bennée wrote: > >> We didn't have any reliable way to build sparc test cases. I have >> found someone who ships a compiler but the binaries still don't run >> due to the need for CASA. >> I'm p

Re: [RFC PATCH 0/6] Fix building of sparc/sparc32plus test cases

2025-07-17 Thread Mark Cave-Ayland
On 16/07/2025 11:54, Alex Bennée wrote: We didn't have any reliable way to build sparc test cases. I have found someone who ships a compiler but the binaries still don't run due to the need for CASA. I'm posting mainly for those who actually care who might want to fix up the

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

2025-07-17 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/meson.build| 1 + tests/functional/test_riscv64_boston.py | 78 + 2

[PATCH v1 20/21] tests/function/aspeed: Replace manual loader with vbootrom for ast2700fc test

2025-07-16 Thread Jamin Lin via
SSP and TSP now boot in a powered-off state by default. Enabling them requires the PSP (Cortex-A35) to explicitly set SCU control registers at runtime. This behavior aligns with real hardware. However, the current functional test framework design does not support switching the active VM console

Re: [PATCH 0/2] aarch64: update test images with new trusted firmware

2025-07-16 Thread Pierrick Bouvier
On 7/16/25 11:13 AM, Richard Henderson wrote: On Wed, 16 July 2025, 10:50 Pierrick Bouvier, mailto:pierrick.bouv...@linaro.org>> wrote: Do you plan to merge FEAT_MEC for 10.1, or prefer to wait for 10.2? We have missed the soft freeze window. It must wait for 10.2 now. Oh right, I thou

Re: [PATCH 0/2] aarch64: update test images with new trusted firmware

2025-07-16 Thread Richard Henderson
On Wed, 16 July 2025, 10:50 Pierrick Bouvier, wrote: > Do you plan to merge FEAT_MEC for 10.1, or prefer to wait for 10.2? > We have missed the soft freeze window. It must wait for 10.2 now. r~ >

[PULL 3/6] tests/qtest/qom-test: unit test for qom-list-get

2025-07-16 Thread Markus Armbruster
From: Steve Sistare Add a unit test for qom-list-get. Signed-off-by: Steve Sistare Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Markus Armbruster Message-ID: <1752248703-217318-4-git-send-email-steven.sist...@oracle.com> Signed-off-by: Markus Armbruster --- tests/qtest/qom-test.c

Re: [PATCH 0/2] aarch64: update test images with new trusted firmware

2025-07-16 Thread Pierrick Bouvier
. Concerned test images need to be updated to allow them to boot. [1] https://lore.kernel.org/qemu-devel/20250714155836.1514748-1-richard.hender...@linaro.org/ [2] https://git.codelinaro.org/linaro/dcap/tf-a/trusted-firmware-a/-/commit/c8836cec14213bf92dae79d353bc345254a0a31e Note: [2] will be

Re: [PATCH 0/2] aarch64: update test images with new trusted firmware

2025-07-16 Thread Richard Henderson
On 7/15/25 15:23, Pierrick Bouvier wrote: The FEAT_MEC series [1] introduces FEAT_TCR2 and FEAT_SCTLR2. TF-A needs to be aware of that change to allow accesses to those registers, and thus must be patched [2] to enable this for QEMU platforms. Concerned test images need to be updated to allow

[PATCH 1/3] bios-tables-test-allowed-diff.h: Allow RISC-V FADT and MADT changes

2025-07-16 Thread Sunil V L
Signed-off-by: Sunil V L --- tests/qtest/bios-tables-test-allowed-diff.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h index dfb8523c8b..0c3f7a6cac 100644 --- a/tests/qtest/bios-tables-test-allowed

[PATCH v5 3/4] tests/qtest/bios-tables-test: Add test for disabling SPCR on RISC-V

2025-07-16 Thread Li Chen
From: Li Chen Add ACPI SPCR table test case for RISC-V when SPCR was off. Signed-off-by: Li Chen Reviewed-by: Sunil V L --- Notes: Changes since v3: Add Reviewed-by from Sunil V L tests/qtest/bios-tables-test.c | 22 ++ 1 file changed, 22 insertions(+) diff --git

[PATCH v5 2/4] tests/qtest/bios-tables-test: Add test for disabling SPCR on AArch64

2025-07-16 Thread Li Chen
From: Li Chen Add ACPI SPCR table test case for ARM when SPCR was off. Signed-off-by: Li Chen --- tests/qtest/bios-tables-test.c | 20 1 file changed, 20 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 4dbc07ec5e

[RFC PATCH 1/6] tests/tcg: special case sparc test cases

2025-07-16 Thread Alex Bennée
ed by these tests need -latomic +signals: LDFLAGS+=-lrt -lpthread -latomic +vma-pthread: CFLAGS+=-pthread +vma-pthread: LDFLAGS+=-pthread -latomic + +# all tests currently broken due to broken CASA +run-%: + $(call skip-test, $*, "CASA is broken (see bug #1771)") + +# we can

[RFC PATCH 0/6] Fix building of sparc/sparc32plus test cases

2025-07-16 Thread Alex Bennée
We didn't have any reliable way to build sparc test cases. I have found someone who ships a compiler but the binaries still don't run due to the need for CASA. I'm posting mainly for those who actually care who might want to fix up the remaining cases. Alex. Alex Bennée (

[RFC PATCH 2/6] tests/tcg: special case sparc32plus test cases

2025-07-16 Thread Alex Bennée
We can re-use the sparc Makefile to ensure we build but don't run the tests. Signed-off-by: Alex Bennée --- tests/tcg/Makefile.target | 2 +- tests/tcg/sparc32plus | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 12 tests/tcg/sparc32plus diff --git a/tests/tcg/Makefil

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

2025-07-16 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 --- tests/functional/test_aarch64_xlnx_versal.py | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests

Re: [PATCH 3/4] hw/net/npcm_gmac.c: Correct test for when to reallocate packet buffer

2025-07-15 Thread Hao Wu
ver, the > > condition it uses is > >if ((prev_buf_size + tx_buf_len) > sizeof(buf)) > > where buf is a uint8_t *. > > > > This means that sizeof(buf) is always 8 bytes, and the condition will > > almost always be true, so we will reallocate the buffer

[PATCH 0/2] aarch64: update test images with new trusted firmware

2025-07-15 Thread Pierrick Bouvier
The FEAT_MEC series [1] introduces FEAT_TCR2 and FEAT_SCTLR2. TF-A needs to be aware of that change to allow accesses to those registers, and thus must be patched [2] to enable this for QEMU platforms. Concerned test images need to be updated to allow them to boot. [1] https://lore.kernel.org

[PULL 30/57] iotests: add test for changing the 'drive' property via 'qom-set'

2025-07-15 Thread Kevin Wolf
w file mode 100755 index 00..ec8ddac4fd --- /dev/null +++ b/tests/qemu-iotests/tests/qom-set-drive @@ -0,0 +1,75 @@ +#!/usr/bin/env python3 +# group: quick +# +# Test how changing the 'drive' property via 'qom-set' behaves. +# +# Copyright (C) Proxmox Server Solutions GmbH

[PULL 86/97] tests: virt: Update expected ACPI tables for virt test

2025-07-14 Thread Michael S. Tsirkin
From: Alireza Sanaee Update the ACPI tables according to the acpi aml_build change, also empty bios-tables-test-allowed-diff.h. The disassembled differences between actual and expected PPTT shows below. Only about the root node adding and identification flag set as expected. Diff regarding

[PULL 83/97] tests: virt: Allow changes to PPTT test table

2025-07-14 Thread Michael S. Tsirkin
From: Yicong Yang Allow changes to PPTT test table, preparing for adding identical implementation flags support and for adding a root node for all the system. This is related to both loongarch64 and aarch64. Signed-off-by: Yicong Yang Reviewed-by: Jonathan Cameron Reviewed-by: Zhao Liu

[PULL 12/97] tests/qtest/bios-tables-test: Add basic testing for LoongArch

2025-07-14 Thread Michael S. Tsirkin
From: Bibo Mao Add basic ACPI table test case for LoongArch, including cpu topology, numa memory, memory hotplug and oem-id test cases. Signed-off-by: Bibo Mao Message-Id: <20250612090321.3416594-3-maob...@loongson.cn> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. T

[PULL 64/97] qtest/bios-tables-test: Add a variant to the aarch64 viot test

2025-07-14 Thread Michael S. Tsirkin
From: Eric Auger Signed-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov Message-Id: <20250714080639.2525563-19-eric.au...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test.c | 1 + 1 file changed, 1 ins

[PULL 80/97] tests/qtest/bios-tables-test: Add aarch64 ACPI PCI hotplug test

2025-07-14 Thread Michael S. Tsirkin
From: Gustavo Romero Add 2 new tests: - test_acpi_aarch64_virt_acpi_pci_hotplug tests the acpi pci hotplug using -global acpi-ged.acpi-pci-hotplug-with-bridge-support=on - test_acpi_aarch64_virt_pcie_root_port_hpoff tests static-acpi index on a root port with disabled hotplug Signed-off-by:

[PULL 68/97] tests/qtest/bios-tables-test: Update ARM DSDT reference blobs

2025-07-14 Thread Michael S. Tsirkin
} } Signed-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov Message-Id: <20250714080639.2525563-23-eric.au...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 6 -- test

[PULL 81/97] qtest/bios-tables-test: Generate reference blob for DSDT.hpoffacpiindex

2025-07-14 Thread Michael S. Tsirkin
ge (0x01) { 0x0C } Return (EDSM (Arg0, Arg1, Arg2, Arg3, Local0)) } } } } } Signed-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov Messag

[PULL 63/97] qtest/bios-tables-test: Prepare for fixing the aarch64 viot test

2025-07-14 Thread Michael S. Tsirkin
From: Eric Auger The test misses a variant and this puts the mess on subsequent rebuild-expected-aml.sh where a first DSDT reference blob is overriden by another one. Signed-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov Message-Id: <20250714080639.2525563

[PULL 82/97] qtest/bios-tables-test: Generate reference blob for DSDT.acpipcihp

2025-07-14 Thread Michael S. Tsirkin
ne DVNT (PCIU, One) DVNT (PCID, 0x03) } } Method (PCNT, 0, NotSerialized) { BNUM = Zero DVNT (PCIU, One) DVNT (PCID, 0x03) ^S38.PCNT () } } } Signed-off-by: Eric Auger Revi

[PULL 66/97] tests/qtest/bios-tables-test: Prepare for changes in the arm virt DSDT table

2025-07-14 Thread Michael S. Tsirkin
.au...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h index dfb8

[PULL 27/97] tests/qtest/bios-tables-test: Add test for disabling SPCR on RISC-V

2025-07-14 Thread Michael S. Tsirkin
From: Li Chen Add ACPI SPCR table test case for RISC-V when SPCR was off. Signed-off-by: Li Chen Reviewed-by: Sunil V L Message-Id: <20250528105404.457729-4-me@linux.beauty> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test.

[PULL 79/97] tests/qtest/bios-tables-test: Prepare for addition of acpi pci hp tests

2025-07-14 Thread Michael S. Tsirkin
-by: Jonathan Cameron Reviewed-by: Igor Mammedov Message-Id: <20250714080639.2525563-34-eric.au...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 2 ++ tests/data/acpi/aarch64/virt/DSDT.acpipcihp | 0

[PULL 56/97] tests/qtest/bios-tables-test: Update DSDT blobs after GPEX _OSC change

2025-07-14 Thread Michael S. Tsirkin
Signed-off-by: Eric Auger Signed-off-by: Gustavo Romero Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov Message-Id: <20250714080639.2525563-11-eric.au...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff

[PULL 65/97] qtest/bios-tables-test: Generate DSDT.viot

2025-07-14 Thread Michael S. Tsirkin
wed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 1 - tests/data/acpi/aarch64/virt/DSDT.viot | Bin 0 -> 5158 bytes 2 files changed, 1 deletion(-) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-ta

[PULL 50/97] tests/qtest/bios-tables-test: Prepare for changes in the DSDT table

2025-07-14 Thread Michael S. Tsirkin
.au...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h index dfb8

[PULL 26/97] tests/qtest/bios-tables-test: Add test for disabling SPCR on AArch64

2025-07-14 Thread Michael S. Tsirkin
From: Li Chen Add ACPI SPCR table test case for ARM when SPCR was off. Signed-off-by: Li Chen Message-Id: <20250528105404.457729-3-me@linux.beauty> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test.c | 20 1 file c

Re: [PATCH 3/4] hw/net/npcm_gmac.c: Correct test for when to reallocate packet buffer

2025-07-14 Thread Philippe Mathieu-Daudé
ns that sizeof(buf) is always 8 bytes, and the condition will almost always be true, so we will reallocate the buffer more often than we need to. Correct the condition to test against tx_buffer_size, which is where we track how big the allocated buffer is. Signed-off-by: Peter Maydell --- hw/n

[PATCH v7 4/4] tests: virt: Update expected ACPI tables for virt test

2025-07-14 Thread Alireza Sanaee via
Update the ACPI tables according to the acpi aml_build change, also empty bios-tables-test-allowed-diff.h. The disassembled differences between actual and expected PPTT shows below. Only about the root node adding and identification flag set as expected. Diff regarding Loongarch64

[PATCH v7 1/4] tests: virt: Allow changes to PPTT test table

2025-07-14 Thread Alireza Sanaee via
From: Yicong Yang Allow changes to PPTT test table, preparing for adding identical implementation flags support and for adding a root node for all the system. This is related to both loongarch64 and aarch64. Signed-off-by: Yicong Yang Reviewed-by: Jonathan Cameron Reviewed-by: Zhao Liu

[PATCH 3/4] hw/net/npcm_gmac.c: Correct test for when to reallocate packet buffer

2025-07-14 Thread Peter Maydell
and the condition will almost always be true, so we will reallocate the buffer more often than we need to. Correct the condition to test against tx_buffer_size, which is where we track how big the allocated buffer is. Signed-off-by: Peter Maydell --- hw/net/npcm_gmac.c | 4 ++-- 1 file changed,

Re: [PATCH] iotests: add test for changing the 'drive' property via 'qom-set'

2025-07-14 Thread Kevin Wolf
Am 05.06.2025 um 12:09 hat Fiona Ebner geschrieben: > Signed-off-by: Fiona Ebner Thanks, applied to the block branch. Kevin

[PULL 32/32] tests/qtest/qom-test: unit test for qom-list-get

2025-07-14 Thread Markus Armbruster
From: Steve Sistare Add a unit test for qom-list-get. Signed-off-by: Steve Sistare Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Markus Armbruster Message-ID: <1752248703-217318-4-git-send-email-steven.sist...@oracle.com> Signed-off-by: Markus Armbruster --- tests/qtest/qom-test.c

Re: [PATCH v6 34/36] tests/qtest/bios-tables-test: Add aarch64 ACPI PCI hotplug test

2025-07-14 Thread Eric Auger
acpi-pci-hotplug-with-bridge-support=on >> - test_acpi_aarch64_virt_pcie_root_port_hpoff tests static-acpi index >> on a root port with disabled hotplug > tests a bit simple, I wonder if we could reuse related x86 variants > for that (as those test a bit more corner cases with

[PATCH v7 36/36] qtest/bios-tables-test: Generate reference blob for DSDT.acpipcihp

2025-07-14 Thread Eric Auger
DVNT (PCIU, One) DVNT (PCID, 0x03) } } Method (PCNT, 0, NotSerialized) { BNUM = Zero DVNT (PCIU, One) DVNT (PCID, 0x03) ^S38.PCNT () } } } Signed-off-by: Eric Auger Reviewed-by: Jonathan

[PATCH v7 35/36] qtest/bios-tables-test: Generate reference blob for DSDT.hpoffacpiindex

2025-07-14 Thread Eric Auger
{ 0x0C } Return (EDSM (Arg0, Arg1, Arg2, Arg3, Local0)) } } } } } Signed-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- v5 -> v6: cro

[PATCH v7 34/36] tests/qtest/bios-tables-test: Add aarch64 ACPI PCI hotplug test

2025-07-14 Thread Eric Auger
: Gustavo Romero Signed-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- v3 -> v4: - add -device pci-testdev for the first test case - fix the chassis - add a test for static acpi-index --- tests/qtest/bios-tables-test.c | 52 ++

[PATCH v7 33/36] tests/qtest/bios-tables-test: Prepare for addition of acpi pci hp tests

2025-07-14 Thread Eric Auger
-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- v3 -> v4: - switch Sign-off's (Jonathan) --- tests/qtest/bios-tables-test-allowed-diff.h | 2 ++ tests/data/acpi/aarch64/virt/DSDT.acpipcihp | 0 tests/data/acpi/aarch64/virt/DSDT.hpoffacpiindex | 0 3 files changed, 2 in

[PATCH v7 17/36] qtest/bios-tables-test: Prepare for fixing the aarch64 viot test

2025-07-14 Thread Eric Auger
The test misses a variant and this puts the mess on subsequent rebuild-expected-aml.sh where a first DSDT reference blob is overriden by another one. Signed-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- tests/qtest/bios-tables-test-allowed-diff.h | 1 + tests

[PATCH v7 10/36] tests/qtest/bios-tables-test: Update DSDT blobs after GPEX _OSC change

2025-07-14 Thread Eric Auger
Signed-off-by: Eric Auger Signed-off-by: Gustavo Romero Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- v3 -> v4 - fix the commit msg: dsl reverse diff (Jonathan) --- tests/qtest/bios-tables-test-allowed-diff.h | 7 --- tests/data/acpi/aarch64/virt/DSDT |

[PATCH v7 20/36] tests/qtest/bios-tables-test: Prepare for changes in the arm virt DSDT table

2025-07-14 Thread Eric Auger
From: Gustavo Romero This commit adds DSDT blobs to the whilelist in the prospect to allow changes in the arm virt DSDT method. Signed-off-by: Gustavo Romero Signed-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- --- tests/qtest/bios-tables-test-allowed

[PATCH v7 04/36] tests/qtest/bios-tables-test: Prepare for changes in the DSDT table

2025-07-14 Thread Eric Auger
irt/DSDT v2 -> v3: - fix for microvm --- tests/qtest/bios-tables-test-allowed-diff.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h index dfb8523c8b..333e5acf63 100644 --- a/tests/qtest/bios-

[PATCH v7 22/36] tests/qtest/bios-tables-test: Update ARM DSDT reference blobs

2025-07-14 Thread Eric Auger
gned-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- tests/qtest/bios-tables-test-allowed-diff.h | 6 -- tests/data/acpi/aarch64/virt/DSDT | Bin 5158 -> 5293 bytes .../data/acpi/aarch64/virt/DSDT.acpihmatvirt | Bin 5244 -> 5379 bytes tests/data

[PATCH v7 18/36] qtest/bios-tables-test: Add a variant to the aarch64 viot test

2025-07-14 Thread Eric Auger
Signed-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- tests/qtest/bios-tables-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 4dbc07ec5e..357bcefd37 100644 --- a/tests/qtest/bios-ta

[PATCH v7 19/36] qtest/bios-tables-test: Generate DSDT.viot

2025-07-14 Thread Eric Auger
Use a specific DSDT.viot reference blob instead of relying on the default DSDT blob. The content is unchanged. Signed-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- tests/qtest/bios-tables-test-allowed-diff.h | 1 - tests/data/acpi/aarch64/virt/DSDT.viot

Re: [PATCH v6 18/36] qtest/bios-tables-test: Add a variant to the aarch64 viot test

2025-07-14 Thread Eric Auger
Hi Igor, On 7/11/25 2:00 PM, Igor Mammedov wrote: > On Tue, 8 Jul 2025 16:23:00 +0200 > Eric Auger wrote: > >> Signed-off-by: Eric Auger >> Reviewed-by: Jonathan Cameron > I'd merge this with previous patch checkpatch complains if I do that: ERROR: Do not add expected files together with test

[PATCH V5 3/3] tests/qtest/qom-test: unit test for qom-list-get

2025-07-11 Thread Steve Sistare
Add a unit test for qom-list-get. Signed-off-by: Steve Sistare Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Markus Armbruster --- tests/qtest/qom-test.c | 116 - 1 file changed, 115 insertions(+), 1 deletion(-) diff --git a/tests/qtest/qom

Re: [PATCH V4 3/3] tests/qtest/qom-test: unit test for qom-list-getv

2025-07-11 Thread Steven Sistare
On 7/11/2025 11:02 AM, Markus Armbruster wrote: Steve Sistare writes: Add a unit test for qom-list-getv. qom-list-get here and in subject. Could scratch this line, subject suffices. Doh, I missed it. Will fix. (re)names are hard :) Signed-off-by: Steve Sistare Reviewed-by: Philippe

Re: [PATCH V4 3/3] tests/qtest/qom-test: unit test for qom-list-getv

2025-07-11 Thread Markus Armbruster
Steve Sistare writes: > Add a unit test for qom-list-getv. qom-list-get here and in subject. Could scratch this line, subject suffices. > > Signed-off-by: Steve Sistare > Reviewed-by: Philippe Mathieu-Daudé > --- > tests/qtes

Re: [PATCH v6 34/36] tests/qtest/bios-tables-test: Add aarch64 ACPI PCI hotplug test

2025-07-11 Thread Igor Mammedov
t_port_hpoff tests static-acpi index > on a root port with disabled hotplug tests a bit simple, I wonder if we could reuse related x86 variants for that (as those test a bit more corner cases with a more complicated topology). It's not a blocker and doing this of cause can be done on top. &

[PULL 16/36] qtest/cxl: Add aarch64 virt test for CXL

2025-07-11 Thread Peter Maydell
From: Jonathan Cameron Add a single complex case for aarch64 virt machine. Given existing much more comprehensive tests for x86 cover the common functionality, a single test should be enough to verify that the aarch64 part continues to work. Tested-by: Itaru Kitayama Reviewed-by: Eric Auger

[PULL 36/36] tests/functional: Add a test for the MAX78000 arm machine

2025-07-11 Thread Peter Maydell
onal/test_arm_max78000fthr.py @@ -0,0 +1,48 @@ +#!/usr/bin/env python3 +# +# Functional test that checks the max78000fthr machine. +# Tests ICC, GCR, TRNG, AES, and UART +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import QemuSystemTest, Asset, exec_command_and_wait_

Re: [PATCH v2 0/2] MAX78000: documentation and test

2025-07-11 Thread Peter Maydell
On Fri, 11 Jul 2025 at 12:06, Jackson Donaldson wrote: > > v2: > Docs now build. Sorry about that > > v1: > Adds .rST documentation and a functional test for the MAX78000FTHR machine > as requested by Peter Maydell. > > Jackson Donaldson (2): > docs/system: arm:

Re: [PATCH v6 18/36] qtest/bios-tables-test: Add a variant to the aarch64 viot test

2025-07-11 Thread Igor Mammedov
On Tue, 8 Jul 2025 16:23:00 +0200 Eric Auger wrote: > Signed-off-by: Eric Auger > Reviewed-by: Jonathan Cameron I'd merge this with previous patch > --- > tests/qtest/bios-tables-test.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/b

[PATCH v2 2/2] tests/functional: Add a test for the MAX78000 arm machine

2025-07-11 Thread Jackson Donaldson
#x27;, diff --git a/tests/functional/test_arm_max78000fthr.py b/tests/functional/test_arm_max78000fthr.py new file mode 100755 index 00..a82980b0f7 --- /dev/null +++ b/tests/functional/test_arm_max78000fthr.py @@ -0,0 +1,48 @@ +#!/usr/bin/env python3 +# +# Functional test that checks the m

[PATCH v2 0/2] MAX78000: documentation and test

2025-07-11 Thread Jackson Donaldson
v2: Docs now build. Sorry about that v1: Adds .rST documentation and a functional test for the MAX78000FTHR machine as requested by Peter Maydell. Jackson Donaldson (2): docs/system: arm: Add max78000 board description tests/functional: Add a test for the MAX78000 arm machine docs/system

[PULL 08/15] tests/functional: Add a test for s390x pxelinux.cfg network booting

2025-07-11 Thread Thomas Huth
;s390x_tuxrun', diff --git a/tests/functional/test_s390x_pxelinux.py b/tests/functional/test_s390x_pxelinux.py new file mode 100755 index 000..4fc33b8c46d --- /dev/null +++ b/tests/functional/test_s390x_pxelinux.py @@ -0,0 +1,119 @@ +#!/usr/bin/env python3 +# +# SPDX-License-Identifier:

[PATCH v8 12/12] qtest/bios-tables-test: Update tables for smmuv3 tests

2025-07-11 Thread Shameer Kolothum via
For the legacy smmuv3 test case, generated IORT has a single SMMUv3 node, a Root Complex(RC) node and 1 ITS node. RC node features 4 ID mappings, of which 2 points to SMMU node and the remaining ones points to ITS. pcie.0 -> {SMMU0} -> {ITS} {RC} pcie.1 -> {SMMU0} -> {ITS}

[PATCH v8 11/12] qtest/bios-tables-test: Add tests for legacy smmuv3 and smmuv3 device

2025-07-11 Thread Shameer Kolothum via
For the legacy SMMUv3 test, the setup includes three PCIe Root Complexes, one of which has bypass_iommu enabled. The generated IORT table contains a single SMMUv3 node, a Root Complex(RC) node and 1 ITS node. RC node features 4 ID mappings, of which 2 points to SMMU node and the remaining ones

[PATCH v8 10/12] bios-tables-test: Allow for smmuv3 test data.

2025-07-11 Thread Shameer Kolothum via
/DSDT.smmuv3-legacy | 0 tests/data/acpi/aarch64/virt/IORT.smmuv3-dev| 0 tests/data/acpi/aarch64/virt/IORT.smmuv3-legacy | 0 tests/qtest/bios-tables-test-allowed-diff.h | 4 5 files changed, 4 insertions(+) create mode 100644 tests/data/acpi/aarch64/virt/DSDT.smmuv3-dev create mode

Re: [PATCH 2/2] tests/functional: Add a test for the MAX78000 arm machine

2025-07-11 Thread Thomas Huth
On 11/07/2025 04.03, Jackson Donaldson wrote: Runs a binary from the max78000test repo used in developing the qemu implementation of the max78000 to verify that the machine and implemented devices generally still work. Signed-off-by: Jackson Donaldson --- tests/functional/meson.build

[PATCH 0/2] MAX78000: documentation and test

2025-07-10 Thread Jackson Donaldson
Adds .rST documentation and a functional test for the MAX78000FTHR machine as requested by Peter Maydell. Jackson Donaldson (2): docs/system: arm: Add max78000 board description tests/functional: Add a test for the MAX78000 arm machine docs/system/arm/max78000.rst | 35

[PATCH 2/2] tests/functional: Add a test for the MAX78000 arm machine

2025-07-10 Thread Jackson Donaldson
--git a/tests/functional/test_arm_max78000fthr.py b/tests/functional/test_arm_max78000fthr.py new file mode 100755 index 00..a82980b0f7 --- /dev/null +++ b/tests/functional/test_arm_max78000fthr.py @@ -0,0 +1,48 @@ +#!/usr/bin/env python3 +# +# Functional test that checks the max78000fthr machine. +#

[PATCH V4 3/3] tests/qtest/qom-test: unit test for qom-list-getv

2025-07-10 Thread Steve Sistare
Add a unit test for qom-list-getv. Signed-off-by: Steve Sistare Reviewed-by: Philippe Mathieu-Daudé --- tests/qtest/qom-test.c | 116 - 1 file changed, 115 insertions(+), 1 deletion(-) diff --git a/tests/qtest/qom-test.c b/tests/qtest/qom-test.c

Re: [PATCH V3 3/3] tests/qtest/qom-test: unit test for qom-list-getv

2025-07-10 Thread Steven Sistare
On 7/10/2025 4:54 AM, Markus Armbruster wrote: Steven Sistare writes: On 7/8/2025 6:02 PM, Philippe Mathieu-Daudé wrote: Hi Steve, On 8/7/25 19:24, Steve Sistare wrote: Add a unit test for qom-list-getv. Signed-off-by: Steve Sistare ---   tests/qtest/qom-test.c | 64

Re: [PULL 7/9] tests/9p: add 'Tsetattr' request to test client

2025-07-10 Thread Peter Maydell
On Thu, 10 Jul 2025 at 15:11, Christian Schoenebeck wrote: > > On Thursday, July 10, 2025 3:30:22 PM CEST Peter Maydell wrote: > > On Mon, 5 May 2025 at 10:54, Christian Schoenebeck > > wrote: > > > > > > Add and implement functions to 9pfs test client fo

Re: [PULL 7/9] tests/9p: add 'Tsetattr' request to test client

2025-07-10 Thread Christian Schoenebeck
On Thursday, July 10, 2025 3:30:22 PM CEST Peter Maydell wrote: > On Mon, 5 May 2025 at 10:54, Christian Schoenebeck > wrote: > > > > Add and implement functions to 9pfs test client for sending a 9p2000.L > > 'Tsetattr' request and receiving its 'Rsetattr&#x

Re: [PULL 7/9] tests/9p: add 'Tsetattr' request to test client

2025-07-10 Thread Peter Maydell
On Mon, 5 May 2025 at 10:54, Christian Schoenebeck wrote: > > Add and implement functions to 9pfs test client for sending a 9p2000.L > 'Tsetattr' request and receiving its 'Rsetattr' response counterpart. > > Signed-off-by: Christian Schoenebeck >

Re: [PATCH V3 3/3] tests/qtest/qom-test: unit test for qom-list-getv

2025-07-10 Thread Markus Armbruster
Steven Sistare writes: > On 7/8/2025 6:02 PM, Philippe Mathieu-Daudé wrote: >> Hi Steve, >> On 8/7/25 19:24, Steve Sistare wrote: >>> Add a unit test for qom-list-getv. >>> >>> Signed-off-by: Steve Sistare

Re: [PATCH V3 3/3] tests/qtest/qom-test: unit test for qom-list-getv

2025-07-10 Thread Philippe Mathieu-Daudé
On 9/7/25 17:17, Steven Sistare wrote: On 7/8/2025 6:02 PM, Philippe Mathieu-Daudé wrote: Hi Steve, On 8/7/25 19:24, Steve Sistare wrote: Add a unit test for qom-list-getv. Signed-off-by: Steve Sistare ---   tests/qtest/qom-test.c | 64

Re: [PATCH v2 5/5] tests/functional: Add a test for s390x pxelinux.cfg network booting

2025-07-09 Thread Jared Rossi
90x_tuxrun', diff --git a/tests/functional/test_s390x_pxelinux.py b/tests/functional/test_s390x_pxelinux.py new file mode 100755 index 000..4fc33b8c46d --- /dev/null +++ b/tests/functional/test_s390x_pxelinux.py @@ -0,0 +1,119 @@ +#!/usr/bin/env python3 +# +# SPDX-License-Identifie

Re: [PATCH V3 3/3] tests/qtest/qom-test: unit test for qom-list-getv

2025-07-09 Thread Steven Sistare
On 7/8/2025 6:02 PM, Philippe Mathieu-Daudé wrote: Hi Steve, On 8/7/25 19:24, Steve Sistare wrote: Add a unit test for qom-list-getv. Signed-off-by: Steve Sistare ---   tests/qtest/qom-test.c | 64 ++   1 file changed, 64 insertions(+) diff

[PATCH v2 5/5] tests/functional: Add a test for s390x pxelinux.cfg network booting

2025-07-09 Thread Thomas Huth
nctional/test_s390x_pxelinux.py new file mode 100755 index 000..4fc33b8c46d --- /dev/null +++ b/tests/functional/test_s390x_pxelinux.py @@ -0,0 +1,119 @@ +#!/usr/bin/env python3 +# +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Functional test that checks the pxelinux.cfg network booting of a

Re: [PATCH V3 3/3] tests/qtest/qom-test: unit test for qom-list-getv

2025-07-08 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > Hi Steve, > > On 8/7/25 19:24, Steve Sistare wrote: >> Add a unit test for qom-list-getv. >> Signed-off-by: Steve Sistare >> --- >> tests/qtest/qom-test.c | 64 >> ++ >&g

Re: [PATCH v5 36/36] qtest/bios-tables-test: Generate reference blob for DSDT.acpipcihp

2025-07-08 Thread Eric Auger
(S00) >> { >> Name (ASUN, Zero) >> Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method >> { >> Local0 = Package (0x02) >> { >> Zero, >>

Re: [PATCH V3 3/3] tests/qtest/qom-test: unit test for qom-list-getv

2025-07-08 Thread Philippe Mathieu-Daudé
Hi Steve, On 8/7/25 19:24, Steve Sistare wrote: Add a unit test for qom-list-getv. Signed-off-by: Steve Sistare --- tests/qtest/qom-test.c | 64 ++ 1 file changed, 64 insertions(+) diff --git a/tests/qtest/qom-test.c b/tests/qtest/qom-test.c

Re: [PATCH V2 3/5] tests/qtest/qom-test: unit test for qom-tree-get

2025-07-08 Thread Philippe Mathieu-Daudé
On 12/5/25 15:47, Steve Sistare wrote: Add a unit test for qom-tree-get Signed-off-by: Steve Sistare --- tests/qtest/qom-test.c | 49 + 1 file changed, 49 insertions(+) Reviewed-by: Philippe Mathieu-Daudé

  1   2   3   4   5   6   7   8   9   10   >