Re: [PATCH v4 2/3] target/s390x: Introduce function when exiting PV

2025-04-25 Thread Thomas Huth
++ 1 file changed, 6 insertions(+), 8 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH v2 10/20] include/glib-compat.h: Poison g_list_sort and g_slist_sort

2025-04-25 Thread Thomas Huth
functions. + */ +#pragma GCC poison g_slist_sort g_list_sort + /* * Note that because of the GLIB_VERSION_MAX_ALLOWED constant above, allowing * use of functions from newer GLib via this compat header needs a little With the nit fixed: Reviewed-by: Thomas Huth

Re: [PATCH v2 09/20] target/s390x: Fix type conflict of GLib function pointers

2025-04-25 Thread Thomas Huth
avoid these issues, g_list_sort_with_data and g_slist_sort_with_data should be used instead, as they do not rely on function pointer casting. Signed-off-by: Kohei Tokunaga --- target/s390x/cpu_models.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH v5 0/3] Enable QEMU NVMe userspace driver on s390x

2025-04-25 Thread Thomas Huth
erred. But please address/comment on the nits that I found first. Thanks, Thomas

Re: [PATCH v5 3/3] block/nvme: Use host PCI MMIO API

2025-04-25 Thread Thomas Huth
+++-- 1 file changed, 23 insertions(+), 18 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH v5 2/3] include: Add a header to define host PCI MMIO functions

2025-04-25 Thread Thomas Huth
g_assert_not_reached(); +} +} + +#endif Apart from the nits, patch looks good to me. Thomas

Re: [PATCH v5 1/3] util: Add functions for s390x mmio read/write

2025-04-25 Thread Thomas Huth
rre,0xb9d4,%[val],%[ioaddr_len]\n" +: [ioaddr_len] "+&d" (ioaddr_len.pair) dito +: [val] "d" (val) +: "cc", "memory"); +} ... +void s390x_pci_mmio_write_64(void *ioaddr, uint64_t val) +{ +if (is_mio_supported) { + s390x_pcistgi(ioaddr, val, sizeof(val)); +} else { +syscall(__NR_s390_pci_mmio_write, ioaddr, &val, sizeof(val)); +} +} + FWIW, "git am" complains about "new blank line at EOF" here. Apart from these nits, the patch looks sane to me. Thomas

iotest 240 is failing (was: Re: [PULL 20/22] virtio-scsi: add iothread-vq-mapping parameter)

2025-04-24 Thread Thomas Huth
On 26/03/2025 11.43, Thomas Huth wrote: On 11/03/2025 17.00, Kevin Wolf wrote: From: Stefan Hajnoczi Allow virtio-scsi virtqueues to be assigned to different IOThreads. This makes it possible to take advantage of host multi-queue block layer scalability by assigning virtqueues that have

[PATCH] tests/functional/test_s390x_tuxrun: Check whether the machine is available

2025-04-24 Thread Thomas Huth
From: Thomas Huth The s390x tuxrun test lacks the call to self.set_machine(), so this test is currently failing in case the 's390-ccw-virtio' machine has not been compiled into the binary. Add the check now to fix it. Signed-off-by: Thomas Huth --- tests/functional/test_s390x_tux

[PATCH] tests/functional/test_ppc64_pseries: Skip test_ppc64_linux_smt_boot if necessary

2025-04-24 Thread Thomas Huth
From: Thomas Huth The test_ppc64_linux_smt_boot function lacks the set_machine('pseries'), so this test is currently failing in case the 'pseries' machine has not been compiled into the binary. Add the check now to fix it. Signed-off-by: Thomas Huth --- tests/functional/t

Re: [PULL 1/2] target/ppc: Big-core scratch register fix

2025-04-24 Thread Thomas Huth
xt+0xcab): undefined reference to `pnv_chip_find_core' /usr/bin/ld: libqemu-ppc64-softmmu.a.p/target_ppc_misc_helper.c.o: in function `helper_store_sprd': .../qemu/target/ppc/misc_helper.c:376:(.text+0xda3): undefined reference to `pnv_chip_find_core' collect2: error: ld returned 1 exit status Could you please have a look? Thanks, Thomas

Re: [PATCH-for-10.0? v2] tests/functional: Add test for imx8mp-evk board with USDHC coverage

2025-04-23 Thread Thomas Huth
On 23/04/2025 11.31, Bernhard Beschow wrote: Am 10. April 2025 06:05:35 UTC schrieb Thomas Huth : On 09/04/2025 22.26, Bernhard Beschow wrote: Introduce a functional test which boots Debian 12 on the imx8mp-evk board. Since the root filesystem resides on an SD card, the test also verifies

[PULL 24/29] gitlab-ci: Update QEMU_JOB_AVOCADO and QEMU_CI_AVOCADO_TESTING

2025-04-23 Thread Thomas Huth
From: Thomas Huth Since we don't run the Avocado jobs in the CI anymore, rename these variables to QEMU_JOB_FUNCTIONAL and QEMU_CI_FUNCTIONAL. Also, there was a mismatch between the documentation and the implementation of QEMU_CI_AVOCADO_TESTING: While the documentation said that you h

Re: [PATCH 7/8] target/s390x/gen-features: Remove the v2.11 qemu CPU model

2025-04-23 Thread Thomas Huth
On 15/01/2025 08.38, Thomas Huth wrote: Now that the v2.11 machine is gone, we don't need the v2.11 CPU feature set anymore. Signed-off-by: Thomas Huth --- target/s390x/gen-features.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/target/s390x/gen-features.c b/target/s390

[PULL 15/29] tests/avocado: Remove the LinuxKernelTest class

2025-04-23 Thread Thomas Huth
From: Thomas Huth All tests that used this class have been converted to the functional framework, so we can remove the boot_linux_console.py file now. Reviewed-by: Daniel P. Berrangé Message-ID: <20250414113031.151105-6-th...@redhat.com> Signed-off-by: Thomas Huth --- tests/a

[PULL 29/29] MAINTAINERS: Add functional tests that are not covered yet

2025-04-23 Thread Thomas Huth
From: Thomas Huth Some functional tests are currently not covered by the entries in MAINTAINERS yet, so scripts/get_maintainers.pl fails to suggest the right people who should be CC:-ed for related patches. Add the uncovered tests to the right sections to close this gap. Reviewed-by: Philippe

[PULL 00/29] Machine types, s390x, functional tests and Avocado removal

2025-04-23 Thread Thomas Huth
/machine: Make @dump-skeys command generic Thomas Huth (23): hw/s390x/s390-virtio-ccw: Remove the deprecated 2.9 machine type hw/s390x/css: Remove the obsolete "css_migration_enabled" variable hw/s390x/s390-stattrib: Remove the old migration_enabled flag hw/intc/s390_fl

[PULL 05/29] hw/s390x/skeys: Declare QOM types using DEFINE_TYPES() macro

2025-04-23 Thread Thomas Huth
: Thomas Huth Message-ID: <20250310151414.11550-2-phi...@linaro.org> Signed-off-by: Thomas Huth --- hw/s390x/s390-skeys.c | 39 +-- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/hw/s390x/s390-skeys.c b/hw/s390x/s390-skeys.c index 811d8

[PULL 08/29] qapi/machine: Make @dump-skeys command generic

2025-04-23 Thread Thomas Huth
r": {"class": "GenericError", "desc": "Storage keys information not available for this architecture"}} Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Message-ID: <20250310151414.11550-5-phi...@linaro.org> Signed-off-by: Thomas Huth

[PULL 25/29] docs/devel/testing: Dissolve the ci-definitions.rst.inc file

2025-04-23 Thread Thomas Huth
From: Thomas Huth This file was meant for defining the vocabulary for our testing efforts, but it did not age well: First, the definitions are not only about the CI part, but also about testing in general, so most of the information should rather reside in main.rst instead. Second, some

[PULL 12/29] tests/functional: Move the check for the parameters from avocado to functional

2025-04-23 Thread Thomas Huth
From: Thomas Huth test_x86_64_pc in tests/avocado/boot_linux_console.py only checks whether the kernel parameters have correctly been passed to the kernel in the guest by looking for them in the console output of the guest. Let's move that to the functional test framework now, but inste

[PULL 19/29] tests/functional: Convert the 64-bit big endian Wheezy mips test

2025-04-23 Thread Thomas Huth
From: Thomas Huth Reuse the test function from the 32-bit big endian test to easily convert the 64-bit big endian Wheezy mips test. Since this was the last test in tests/avocado/linux_ssh_mips_malta.py, we can remove this avocado file now, too. Reviewed-by: Daniel P. Berrangé Message-ID

[PULL 20/29] tests/avocado: Remove the boot_linux.py tests

2025-04-23 Thread Thomas Huth
From: Thomas Huth These tests are based on the cloudinit functions from Avocado. The cloudinit is very, very slow compared to our other tests, so most of these Avocado tests have either been disabled by default with a decorator, or have been marked to only run with KVM. We won't include

[PULL 02/29] hw/s390x/css: Remove the obsolete "css_migration_enabled" variable

2025-04-23 Thread Thomas Huth
From: Thomas Huth Now that the s390-ccw-virtio-2.9 machine type has been removed, we don't need the "css_migration_enabled" variable anymore and can remove the related code. Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20250115073819.15452-3-th...@redhat.com> Signe

[PULL 23/29] tests/functional: Convert the SMMU test to the functional framework

2025-04-23 Thread Thomas Huth
From: Thomas Huth This test was using cloudinit and a "dnf install" command in the guest to exercise the NIC with SMMU enabled. Since we don't have the cloudinit stuff in the functional framework and we should not rely on having access to external networks (once our ASSETs have b

[PULL 26/29] Remove the remainders of the Avocado tests

2025-04-23 Thread Thomas Huth
From: Thomas Huth Now that all Avocado tests have been converted to or been replaced by other functional tests, we can delete the remainders of the Avocado tests from the QEMU source tree. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé Message-ID: <20250414113031.151

[PULL 22/29] tests/functional: Use the tuxrun kernel for the aarch64 replay test

2025-04-23 Thread Thomas Huth
From: Thomas Huth This way we can do a full boot in record-replay mode and should get a similar test coverage compared to the old replay test from tests/avocado/replay_linux.py. Since the aarch64 test was the last avocado test in the tests/avocado/replay_linux.py file, we can remove this file

[PULL 11/29] gitlab-ci: Remove the avocado tests from the CI pipelines

2025-04-23 Thread Thomas Huth
From: Thomas Huth We are going to move the remaining Avocado tests step by step into the functional test framework. Unfortunately, Avocado fails with an error if it cannot determine a test to run, so disable the tests here now to avoid failures in the Gitlab-CI during the next steps. Reviewed

[PULL 14/29] tests/functional: Convert the i386 replay avocado test

2025-04-23 Thread Thomas Huth
From: Thomas Huth Since this was the last test in tests/avocado/replay_kernel.py, we can remove that Avocado file now. Reviewed-by: Daniel P. Berrangé Message-ID: <20250414113031.151105-5-th...@redhat.com> Signed-off-by: Thomas Huth --- MAINTAINERS | 1 -

[PULL 09/29] hw: add compat machines for 10.1

2025-04-23 Thread Thomas Huth
From: Cornelia Huck Add 10.1 machine types for arm/i440fx/m68k/q35/s390x/spapr. Signed-off-by: Cornelia Huck Reviewed-by: Zhao Liu Reviewed-by: Thomas Huth Acked-by: Michael S. Tsirkin Message-ID: <20250414094543.221241-1-coh...@redhat.com> Signed-off-by: Thomas Huth --- incl

[PULL 28/29] tests/functional: Remove unnecessary import statements

2025-04-23 Thread Thomas Huth
From: Thomas Huth pylint complains about these unnecessary import statements, so let's remove them. Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20250414145457.261734-1-th...@redhat.com> Signed-off-by: Thomas Huth --- tests/functional/qemu_test/ports.py | 3

[PULL 16/29] tests/functional: Convert the 32-bit big endian Wheezy mips test

2025-04-23 Thread Thomas Huth
From: Thomas Huth The test checks some entries in /proc and the output of some commands ... we put these checks into exportable functions now so that they can be reused more easily. Additionally the linux_ssh_mips_malta.py uses SSH to test the networking of the guest. Since we don't have

[PULL 06/29] hw/s390x/skeys: Introduce TYPE_DUMP_SKEYS_INTERFACE

2025-04-23 Thread Thomas Huth
: Eric Farman Reviewed-by: Thomas Huth Message-ID: <20250310151414.11550-3-phi...@linaro.org> Signed-off-by: Thomas Huth --- include/hw/s390x/storage-keys.h | 15 +++ hw/s390x/s390-skeys.c | 5 + 2 files changed, 20 insertions(+) diff --git a/include/hw/s390x/s

[PULL 17/29] tests/functional: Convert the 32-bit little endian Wheezy mips test

2025-04-23 Thread Thomas Huth
From: Thomas Huth Reuse the test function from the big endian test to easily convert the 32-bit little endian Wheezy mips test. Reviewed-by: Daniel P. Berrangé Message-ID: <20250414113031.151105-8-th...@redhat.com> Signed-off-by: Thomas Huth --- tests/avocado/linux_ssh_mips_malta.p

[PULL 10/29] tests/functional/test_vnc: skip test if no crypto backend available

2025-04-23 Thread Thomas Huth
From: Cornelia Huck The test_change_password test will fail if no cryptographic backend is available (e.g. if QEMU was built on a system with no cryptographic library development packages installed); just skip the test in that case. Signed-off-by: Cornelia Huck Reviewed-by: Thomas Huth

[PULL 27/29] tests/functional: Remove semicolons at the end of lines

2025-04-23 Thread Thomas Huth
From: Thomas Huth Yes, we are all C coders who try to write Python code for testing... but still, let's better avoid semicolons at the end of the lines to keep "pylint" happy! Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Nina Schoetterl-Glausch Reviewed-by: Cédric Le Goa

[PULL 03/29] hw/s390x/s390-stattrib: Remove the old migration_enabled flag

2025-04-23 Thread Thomas Huth
From: Thomas Huth Now that the machine types that set the migration_enabled flag to false are gone, we can remove it and the related code. Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20250115073819.15452-4-th...@redhat.com> Signed-off-by: Thomas Huth --- include/hw/s390x/s

[PULL 21/29] tests/functional: Use the tuxrun kernel for the x86 replay test

2025-04-23 Thread Thomas Huth
From: Thomas Huth This way we can do a full boot in record-replay mode and should get a similar test coverage compared to the old replay test from tests/avocado/replay_linux.py. Thus remove the x86 avocado replay_linux test now. Reviewed-by: Daniel P. Berrangé Message-ID

[PULL 18/29] tests/functional: Convert the 64-bit little endian Wheezy mips test

2025-04-23 Thread Thomas Huth
From: Thomas Huth Reuse the test function from the 32-bit big endian test to easily convert the 64-bit little endian Wheezy mips test. Reviewed-by: Daniel P. Berrangé Message-ID: <20250414113031.151105-9-th...@redhat.com> Signed-off-by: Thomas Huth --- tests/avocado/linux_ssh_mips_ma

[PULL 13/29] tests/functional: Convert reverse_debugging tests to the functional framework

2025-04-23 Thread Thomas Huth
From: Thomas Huth These tests are using the gdb-related library functions from the Avocado framework which we don't have in the functional framework yet. So for the time being, keep those imports and skip the test if the Avocado framework is not installed on the host. Reviewed-by: Dan

[PULL 07/29] hw/s390x/ccw: Have CCW machine implement a qmp_dump_skeys() callback

2025-04-23 Thread Thomas Huth
From: Philippe Mathieu-Daudé In preparation to make @dump-skeys command generic, extract s390_qmp_dump_skeys() out of qmp_dump_skeys(). Register it as CCW qmp_dump_skeys() callback. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Reviewed-by: Eric Farman Message-ID

[PULL 04/29] hw/intc/s390_flic: Remove the obsolete migration_enabled flag

2025-04-23 Thread Thomas Huth
From: Thomas Huth Now that the machine types that set the migration_enabled flag to false are gone, we can remove it and the related code. Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20250115073819.15452-5-th...@redhat.com> Signed-off-by: Thomas Huth --- include/hw/s390x/s390_

[PULL 01/29] hw/s390x/s390-virtio-ccw: Remove the deprecated 2.9 machine type

2025-04-23 Thread Thomas Huth
From: Thomas Huth The s390-ccw-virtio-2.9 machine is older than 6 years, so according to our machine support policy, it can be removed now. Message-ID: <20250115073819.15452-2-th...@redhat.com> Signed-off-by: Thomas Huth --- hw/s390x/s390-virtio-ccw.c | 24

Re: [PATCH v4 3/3] target/s390x: Return UVC cmd code, RC and RRC value when DIAG 308 Subcode 10 fails to enter secure mode

2025-04-22 Thread Thomas Huth
, +  .pv_rc = pv_resp.rc, +  .diag_rc = DIAG_308_RC_INVAL_FOR_PV}; + @Thomas: Is the formatting of the assignments correct or should there be no assignment on lines containing "{}"? Checkpatch is happy, though personally I find it hard to read. I think I'd ra

Re: [PATCH] tests/docker/dockerfiles: Use Fedora 41 for the python container file

2025-04-22 Thread Thomas Huth
On 22/04/2025 15.22, Stefan Hajnoczi wrote: On Tue, Apr 22, 2025 at 9:09 AM Daniel P. Berrangé wrote: On Tue, Apr 22, 2025 at 02:56:26PM +0200, Thomas Huth wrote: From: Thomas Huth Using "fedora:latest" now fails with Fedora 42: Failed to resolve the transaction: No

[PATCH] tests/docker/dockerfiles: Use Fedora 41 for the python container file

2025-04-22 Thread Thomas Huth
From: Thomas Huth Using "fedora:latest" now fails with Fedora 42: Failed to resolve the transaction: No match for argument: python3.8 Switch back to Fedora 41 for the time being, to be able to still test with Python 3.8. Signed-off-by: Thomas Huth --- tests/docker/d

Re: [PATCH v6 3/3] hw/ppc/e500: Add Freescale eSDHC to e500plat

2025-04-17 Thread Thomas Huth
problem. Do you know whether there is a way to fix this again? Thanks, Thomas

Re: [PATCH v1 14/24] s390x: Guest support for Secure-IPL Facility

2025-04-16 Thread Thomas Huth
rogram name and version codes") DEF_FEAT(DIAG_320, "diag320", SCLP_FAC134, 5, "Provide Certificate Store functions") +/* Features exposed via SCLP SCCB Facilities byte 136 - 137 (bit numbers relative to byte-136) */ +DEF_FEAT(SIPL, "sipl", SCLP_CBL, 1, "Seucre-IPL facility") s/Seucre/Secure/ Thomas

Re: [PATCH v1 18/24] s390x: Guest support for Secure-IPL Code Loading Attributes Facility (SCLAF)

2025-04-16 Thread Thomas Huth
eatures exposed via SCLP SCCB Facilities byte 136 - 137 (bit numbers relative to byte-136) */ DEF_FEAT(SIPL, "sipl", SCLP_CBL, 1, "Seucre-IPL facility") +DEF_FEAT(SCLAF, "sclaf", SCLP_CBL, 3, "Seucre-IPL-code-loading-attributes facility") s/Seucre/Secure/ Thomas

Re: [PATCH 01/19] hw/core/loader.c: Fix type conflict of GLib function pointers

2025-04-16 Thread Thomas Huth
r code complies with that GCompareFunc signature. The cast is inside glib; g_list_sort casts the function pointer and calls g_list_sort_with_data. Did anybody already report this to the glib people? I guess it should get fixed there in the long run...? Thomas

[PATCH v2 07/15] tests/functional: Convert the 32-bit little endian Wheezy mips test

2025-04-15 Thread Thomas Huth
From: Thomas Huth Reuse the test function from the big endian test to easily convert the 32-bit little endian Wheezy mips test. Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth --- tests/avocado/linux_ssh_mips_malta.py | 8 tests/functional/meson.build | 1

Re: [PATCH v2 2/3] target/s390x: introduce function when exiting PV

2025-04-15 Thread Thomas Huth
On 14/04/2025 17.48, Gautam Gala wrote: introduce a static function when exiting PV. The function replaces an existing macro (s390_pv_cmd_exit). You describe here what you're doing, but not why ... so may I ask: Why is this change necessary? Thomas Signed-off-by: Gautam

Re: [PATCH v2 2/3] target/s390x: introduce function when exiting PV

2025-04-15 Thread Thomas Huth
the patch description! Thanks, Thomas On Tue, Apr 15, 2025 at 11:44:35AM +0200, Thomas Huth wrote: On 14/04/2025 17.48, Gautam Gala wrote: introduce a static function when exiting PV. The function replaces an existing macro (s390_pv_cmd_exit). You describe here what you're doing, bu

Re: [RFC 1/2] python: be more selective in hiding mypy subclassing warning

2025-04-15 Thread Thomas Huth
-- python/qemu/qmp/qmp_tui.py| 12 ++-- python/qemu/utils/qom_fuse.py | 2 +- python/setup.cfg | 8 3 files changed, 7 insertions(+), 15 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH v2 3/3] target/s390x: Return UVC cmd code, RC and RRC value when DIAG 308 Subcode 10 fails to enter secure mode

2025-04-15 Thread Thomas Huth
and pass that 64-bit result to the function. Thanks, Thomas -void s390_pv_inject_reset_error(CPUState *cs) +void s390_pv_inject_reset_error(CPUState *cs, uint64_t *resp) { int r1 = (cs->kvm_run->s390_sieic.ipa & 0x00f0) >> 4; CPUS390XState *env = &S390_CPU

[PATCH 1/4] hw/s390x/s390-virtio-ccw: Remove the deprecated 3.0 machine type

2025-04-14 Thread Thomas Huth
From: Thomas Huth The s390-ccw-virtio-3.0 machine is older than 6 years, so according to our machine support policy, it can be removed now. Signed-off-by: Thomas Huth --- hw/s390x/s390-virtio-ccw.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/hw/s390x/s390-virtio-ccw.c

[PATCH] tests/functional: Remove unnecessary import statements

2025-04-14 Thread Thomas Huth
From: Thomas Huth pylint complains about these unnecessary import statements, so let's remove them. Signed-off-by: Thomas Huth --- tests/functional/qemu_test/ports.py | 3 +-- tests/functional/qemu_test/tuxruntest.py | 2 -- tests/functional/qemu_test/uncompre

Re: [RFC PATCH v4 5/5] s390: implementing CHSC SEI for AP config change

2025-04-14 Thread Thomas Huth
On 14/04/2025 16.37, Rorie Reyes wrote: On 4/11/25 2:45 AM, Thomas Huth wrote: #include CONFIG_DEVICES at the beginning of the ioinst.c file. Then you should be able to do: #ifdef CONFIG_VFIO_AP     if (s390_has_feat(S390_FEAT_AP)) {    return ap_chsc_sei_nt0_get_event(res);     } #endif

[PATCH for-10.1 0/4] s390x: Remove deprecated machine types v3.0 up to v4.0

2025-04-14 Thread Thomas Huth
These machine types are older than 6 years, so according to our new support policy, it should be fine to remove them now in QEMU v10.1. This series is Based-on: <20250115073819.15452-1-th...@redhat.com> Thomas Huth (4): hw/s390x/s390-virtio-ccw: Remove the deprecated 3.0 machine typ

[PATCH v2 09/15] tests/functional: Convert the 64-bit big endian Wheezy mips test

2025-04-14 Thread Thomas Huth
From: Thomas Huth Reuse the test function from the 32-bit big endian test to easily convert the 64-bit big endian Wheezy mips test. Since this was the last test in tests/avocado/linux_ssh_mips_malta.py, we can remove this avocado file now, too. Reviewed-by: Daniel P. Berrangé Signed-off-by

[PATCH 2/4] hw/s390x: Remove the obsolete hpage_1m_allowed switch

2025-04-14 Thread Thomas Huth
From: Thomas Huth The s390-ccw-virtio-3.0 machine was the last one that used the hpage_1m_allowed switch. Since we removed this machine type, we can now remove the switch and the related code, too. This allows us to get rid of the get_machine_class() hack and the big fat warning comment there

[PATCH 4/4] hw/s390x/s390-virtio-ccw: Remove the deprecated 4.0 machine type

2025-04-14 Thread Thomas Huth
From: Thomas Huth The s390-ccw-virtio-4.0 machine is older than 6 years, so according to our machine support policy, it can be removed now. The corresponding v4.0 CPU feature group can now be removed, too. Signed-off-by: Thomas Huth --- hw/s390x/s390-virtio-ccw.c | 14 -- target

[PATCH 3/4] hw/s390x/s390-virtio-ccw: Remove the deprecated 3.1 machine type

2025-04-14 Thread Thomas Huth
From: Thomas Huth The s390-ccw-virtio-3.1 machine is older than 6 years, so according to our machine support policy, it can be removed now. The corresponding v3.1 CPU feature group can now be removed, too. Signed-off-by: Thomas Huth --- hw/s390x/s390-virtio-ccw.c | 16

[PATCH v2 10/15] tests/avocado: Remove the boot_linux.py tests

2025-04-14 Thread Thomas Huth
From: Thomas Huth These tests are based on the cloudinit functions from Avocado. The cloudinit is very, very slow compared to our other tests, so most of these Avocado tests have either been disabled by default with a decorator, or have been marked to only run with KVM. We won't include

[PATCH] MAINTAINERS: Add functional tests that are not covered yet

2025-04-14 Thread Thomas Huth
From: Thomas Huth Some functional tests are currently not covered by the entries in MAINTAINERS yet, so scripts/get_maintainers.pl fails to suggest the right people who should be CC:-ed for related patches. Add the uncovered tests to the right sections to close this gap. Signed-off-by: Thomas

Re: [PATCH] hw: add compat machines for 10.1

2025-04-14 Thread Thomas Huth
insertions(+), 9 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH] tests/functional/test_vnc: skip test if no crypto backend available

2025-04-14 Thread Thomas Huth
Test("No cryptographic backend available") else: self.log.info("unhandled launch failure: %s", excp.output) raise excp Reviewed-by: Thomas Huth

[PATCH v2 13/15] tests/functional: Convert the SMMU test to the functional framework

2025-04-14 Thread Thomas Huth
From: Thomas Huth This test was using cloudinit and a "dnf install" command in the guest to exercise the NIC with SMMU enabled. Since we don't have the cloudinit stuff in the functional framework and we should not rely on having access to external networks (once our ASSETs have b

[PATCH v2 15/15] Remove the remainders of the Avocado tests

2025-04-14 Thread Thomas Huth
From: Thomas Huth Now that all Avocado tests have been converted to or been replaced by other functional tests, we can delete the remainders of the Avocado tests from the QEMU source tree. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth

[PATCH v2 08/15] tests/functional: Convert the 64-bit little endian Wheezy mips test

2025-04-14 Thread Thomas Huth
From: Thomas Huth Reuse the test function from the 32-bit big endian test to easily convert the 64-bit little endian Wheezy mips test. Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth --- tests/avocado/linux_ssh_mips_malta.py | 8 tests/functional/meson.build

[PATCH v2 05/15] tests/avocado: Remove the LinuxKernelTest class

2025-04-14 Thread Thomas Huth
From: Thomas Huth All tests that used this class have been converted to the functional framework, so we can remove the boot_linux_console.py file now. Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth --- tests/avocado/boot_linux_console.py | 62 - 1 file

[PATCH v2 04/15] tests/functional: Convert the i386 replay avocado test

2025-04-14 Thread Thomas Huth
From: Thomas Huth Since this was the last test in tests/avocado/replay_kernel.py, we can remove that Avocado file now. Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth -# -# This work is licensed under the terms of the GNU GPL, version 2 or -# later. See the COPYING file in the top

[PATCH v2 00/15] Convert remaining Avocado tests to functional

2025-04-14 Thread Thomas Huth
QEMU_CI_FUNCTIONAL Thomas Huth (15): gitlab-ci: Remove the avocado tests from the CI pipelines tests/functional: Move the check for the parameters from avocado to functional tests/functional: Convert reverse_debugging tests to the functional framework tests/functional: Convert the i386 replay

[PATCH v2 14/15] gitlab-ci: Update QEMU_JOB_AVOCADO and QEMU_CI_AVOCADO_TESTING

2025-04-14 Thread Thomas Huth
From: Thomas Huth Since we don't run the Avocado jobs in the CI anymore, rename these variables to QEMU_JOB_FUNCTIONAL and QEMU_CI_FUNCTIONAL. Also, there was a mismatch between the documentation and the implementation of QEMU_CI_AVOCADO_TESTING: While the documentation said that you h

[PATCH v2 12/15] tests/functional: Use the tuxrun kernel for the aarch64 replay test

2025-04-14 Thread Thomas Huth
From: Thomas Huth This way we can do a full boot in record-replay mode and should get a similar test coverage compared to the old replay test from tests/avocado/replay_linux.py. Since the aarch64 test was the last avocado test in the tests/avocado/replay_linux.py file, we can remove this file

[PATCH v2 11/15] tests/functional: Use the tuxrun kernel for the x86 replay test

2025-04-14 Thread Thomas Huth
From: Thomas Huth This way we can do a full boot in record-replay mode and should get a similar test coverage compared to the old replay test from tests/avocado/replay_linux.py. Thus remove the x86 avocado replay_linux test now. Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth

[PATCH v2 06/15] tests/functional: Convert the 32-bit big endian Wheezy mips test

2025-04-14 Thread Thomas Huth
From: Thomas Huth The test checks some entries in /proc and the output of some commands ... we put these checks into exportable functions now so that they can be reused more easily. Additionally the linux_ssh_mips_malta.py uses SSH to test the networking of the guest. Since we don't have

[PATCH v2 01/15] gitlab-ci: Remove the avocado tests from the CI pipelines

2025-04-14 Thread Thomas Huth
From: Thomas Huth We are going to move the remaining Avocado tests step by step into the functional test framework. Unfortunately, Avocado fails with an error if it cannot determine a test to run, so disable the tests here now to avoid failures in the Gitlab-CI during the next steps. Reviewed

[PATCH v2 03/15] tests/functional: Convert reverse_debugging tests to the functional framework

2025-04-14 Thread Thomas Huth
From: Thomas Huth These tests are using the gdb-related library functions from the Avocado framework which we don't have in the functional framework yet. So for the time being, keep those imports and skip the test if the Avocado framework is not installed on the host. Signed-off-by: Thomas

[PATCH v2 02/15] tests/functional: Move the check for the parameters from avocado to functional

2025-04-14 Thread Thomas Huth
From: Thomas Huth test_x86_64_pc in tests/avocado/boot_linux_console.py only checks whether the kernel parameters have correctly been passed to the kernel in the guest by looking for them in the console output of the guest. Let's move that to the functional test framework now, but inste

Re: [PATCH 03/15] tests/functional: Convert reverse_debugging tests to the functional framework

2025-04-14 Thread Thomas Huth
On 26/03/2025 10.30, Daniel P. Berrangé wrote: On Tue, Mar 25, 2025 at 09:00:11PM +0100, Thomas Huth wrote: From: Thomas Huth These tests are using the gdb-related library functions from the Avocado framework which we don't have in the functional framework yet. So for the time being,

Re: [PATCH 14/15] gitlab-ci: Update QEMU_JOB_AVOCADO and QEMU_CI_AVOCADO_TESTING

2025-04-14 Thread Thomas Huth
On 26/03/2025 10.50, Daniel P. Berrangé wrote: On Tue, Mar 25, 2025 at 09:00:22PM +0100, Thomas Huth wrote: From: Thomas Huth Since we don't run the Avocado jobs in the CI anymore, rename these variables to QEMU_JOB_FUNCTIONAL and QEMU_CI_FUNCTIONAL_TESTING. ... -QEMU_CI_AVOCADO_TE

Re: [RFC PATCH] tests/functional: Generic method to check required devices availability

2025-04-13 Thread Thomas Huth
but if the require_device() calls get too annoying one day, we can reconsider. Thomas

Re: [PATCH v1 13/24] hw/s390x/ipl: Set iplb->len to maximum length of IPL Parameter Block

2025-04-11 Thread Thomas Huth
t = S390_IPL_TYPE_CCW; Wouldn't it make sense to only do this iff the secure IPL is also used? Thomas

Re: [PATCH v1 20/24] Add -secure-boot on|off option in QEMU command line

2025-04-11 Thread Thomas Huth
chine option instead. Thanks, Thomas

Re: [PATCH v1 09/24] s390x/diag: Implement DIAG 508 subcode 2 for signature verification

2025-04-11 Thread Thomas Huth
509_crt_deinit(g_cert); +} + +gnutls_pkcs7_deinit(sig); +#else + rc = DIAG_508_RC_FAIL_VERIF; +#endif /* CONFIG_GNUTLS */ +g_free(svb); break; default: s390_program_interrupt(env, PGM_SPECIFICATION, ra); Thomas

Re: [PATCH v1 08/24] s390x/diag: Introduce DIAG 508 for secure IPL operations

2025-04-11 Thread Thomas Huth
ult: +s390_program_interrupt(env, PGM_SPECIFICATION, ra); +return; +} +env->regs[r1 + 1] = rc; +} Thomas

Re: [PATCH v1 06/24] s390x/diag: Implement DIAG 320 subcode 1

2025-04-11 Thread Thomas Huth
s390_cpu_virt_mem_write(cpu, addr, (uint8_t)r1, &vcssb, +be64_to_cpu( And that be64_to_cpu() is wrong here. Thomas + sizeof(VerificationCertificateStorageSizeBlock) +))) { +

Re: [PATCH v1 04/24] s390x/diag: Introduce DIAG 320 for certificate store facility

2025-04-11 Thread Thomas Huth
ase DIAG_320_SUBC_QUERY_ISM: +uint64_t ism = 0; + +if (s390_cpu_virt_mem_write(cpu, addr, (uint8_t)r1, &ism, I think you could drop the (uint8_t) here? +be64_to_cpu(sizeof(ism { be64_to_cpu() looks very wrong here! Thomas

Re: [PATCH v1 03/24] s390x: Guest support for Certificate Store Facility (CS)

2025-04-11 Thread Thomas Huth
IAG_318, model->features); } +set_bit(S390_FEAT_DIAG_320, model->features); + /* Test for Ultravisor features that influence secure guest behavior */ query_uv_feat_guest(model->features); Thomas

Re: [PATCH v1 02/24] hw/s390x/ipl: Create certificate store

2025-04-11 Thread Thomas Huth
cert_path_builder->len; i++) { +S390IPLCertificate *qcert = NULL; +if (init_cert((char *) cert_path_builder->pdata[i], &qcert) < 0) { +continue; Maybe invert the logic to call update_cert_store() in case of success, than you don't need the "continue" anymore? +} + +update_cert_store(cert_store, qcert); +} + +g_ptr_array_free(cert_path_builder, true); +} Thomas

Re: [PATCH v1 01/24] Add -boot-certificates /path/dir:/path/file option in QEMU command line

2025-04-11 Thread Thomas Huth
erts See the other object_class_property_add() statements in ccw_machine_class_init() for some examples how to do this. Thomas

Re: [RFC PATCH v4 5/5] s390: implementing CHSC SEI for AP config change

2025-04-10 Thread Thomas Huth
On 10/04/2025 22.31, Rorie Reyes wrote: On 3/17/25 9:41 AM, Thomas Huth wrote: On 11/03/2025 16.16, Rorie Reyes wrote: Handle interception of the CHSC SEI instruction for requests indicating the guest's AP configuration has changed. Signed-off-by: Rorie Reyes Reviewed-by: Anthony Kr

Re: [PATCH-for-10.0? v2] tests/functional: Add test for imx8mp-evk board with USDHC coverage

2025-04-09 Thread Thomas Huth
(Thomas) * Omit fetch() (Thomas) * Omit "-accel tcg" (Thomas) * Add "snapshot=on" to make potential future tests independent Supersedes: 20250405214900.7114-1-shen...@gmail.com --- MAINTAINERS | 1 + tests/functional/meson.build

Re: [PATCH 1/3] scripts: nixify archive-source.sh

2025-04-09 Thread Thomas Huth
+#!/usr/bin/env bash # # Author: Fam Zheng # Reviewed-by: Thomas Huth

Re: [PATCH v3 4/4] hw/s390x: compat handling for backward migration

2025-04-08 Thread Thomas Huth
On 03/04/2025 14.49, Shalini Chellathurai Saroja wrote: On 2025-04-02 09:52, Thomas Huth wrote: On 31/03/2025 16.00, Shalini Chellathurai Saroja wrote: Add Control-Program Identification (CPI) device to QOM only when the virtual machine supports CPI. CPI is supported from "s390-ccw-virtio

Re: [PATCH v3 2/4] hw/s390x: add Control-Program Identification to QOM

2025-04-08 Thread Thomas Huth
T(cpi, SCLPDevice, 0, vmstate_control_program_id, +   ControlProgramId), +    VMSTATE_END_OF_LIST() +    } +}; +  static void sclp_class_init(ObjectClass *oc, void *data)  { SCLPDeviceClass *sc = SCLP_CLASS(oc); @@ -438,6 +461,7 @@ static void sclp_class_init(Object

Re: [PATCH-for-10.0 1/3] tests/functional: Add test for imx8mp-evk board with USDHC coverage

2025-04-06 Thread Thomas Huth
smp', '4', + '-accel', 'tcg', The imx8mp-evk board has a "depends on TCG" in its Kconfig file, so I think you could omit "-accel tcg" here (but it also does not hurt to be explicit, I guess). Thomas +

Re: [PATCH-for-10.1 5/6] target/sparc: Register CPUClass:list_cpus

2025-04-05 Thread Thomas Huth
On 24/03/2025 17.32, Philippe Mathieu-Daudé wrote: On 24/3/25 10:30, Thomas Huth wrote: On 23/03/2025 23.40, Philippe Mathieu-Daudé wrote: Register sparc_cpu_list() as CPUClass:list_cpus callback and remove the cpu_list definition. Copy-n-paste error in both, subject and patch description

[PATCH] tests/functional/test_vnc: Skip test if VNC support is not available

2025-04-05 Thread Thomas Huth
From: Thomas Huth These tests currently fail if VNC support has not been compiled into the QEMU binary. Let's add some checks to skip the tests in that case instead. Signed-off-by: Thomas Huth --- tests/functional/test_vnc.py | 26 ++ 1 file changed, 22 inser

  1   2   3   4   5   6   7   8   9   10   >