Re: [PATCH v6 03/14] target/riscv: Add MIPS P8700 CPU

2025-08-08 Thread Philippe Mathieu-Daudé
On 17/7/25 11:38, Djordje Todorovic wrote: Introduce P8700 CPU by MIPS. Signed-off-by: Chao-ying Fu Signed-off-by: Djordje Todorovic --- target/riscv/cpu-qom.h | 1 + target/riscv/cpu.c | 15 +++ target/riscv/cpu_vendorid.h | 1 + 3 files changed, 17 insertions

Re: [PATCH v6 00/14] riscv: Add support for MIPS P8700 CPU

2025-08-08 Thread Philippe Mathieu-Daudé
Hi, On 17/7/25 11:38, Djordje Todorovic wrote: I addressed several comments in this version, major ones: - split CPC / CMGCR into separated changes - split CPS into a separated change - added functional tests for boston-aia board Djordje Todorovic (14): hw/misc: Add RISC-V CMGCR

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

2025-08-08 Thread Philippe Mathieu-Daudé
Hi, On 17/7/25 11:38, 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 --- tests/functional/meson.build| 1 + tests/functional/test_risc

Re: [PATCH v6 12/14] hw/pci: Allow explicit function numbers in pci

2025-08-08 Thread Philippe Mathieu-Daudé
On 17/7/25 11:38, Djordje Todorovic wrote: Since there is no pch_gbe emulation, we could be using func other than 0 when adding new devices to specific boards. Signed-off-by: Chao-ying Fu Signed-off-by: Djordje Todorovic --- hw/pci/pci.c | 15 +-- 1 file changed, 9 insertions(+)

Re: [PATCH v6 10/14] hw/riscv: Add support for RISCV CPS

2025-08-08 Thread Philippe Mathieu-Daudé
On 17/7/25 11:38, Djordje Todorovic wrote: Add support for the Coherent Processing System for RISC-V. This enables SMP support for RISC-V boards that require cache-coherent multiprocessor systems. Signed-off-by: Chao-ying Fu Signed-off-by: Djordje Todorovic --- hw/misc/Kconfig| 5 +

Re: [PATCH v6 09/14] hw/misc: Add RISC-V CPC device implementation

2025-08-08 Thread Philippe Mathieu-Daudé
On 17/7/25 11:38, Djordje Todorovic wrote: Add RISC-V implementation of the Cluster Power Controller (CPC) device. It is based on the existing MIPS CPC implementations but adapted for RISC-V systems. The CPC device manages power control for CPU clusters in RISC-V systems. This is needed for the

Re: [PATCH v6 08/14] hw/misc: Add RISC-V CMGCR device implementation

2025-08-08 Thread Philippe Mathieu-Daudé
On 8/8/25 18:00, Philippe Mathieu-Daudé wrote: On 17/7/25 11:38, Djordje Todorovic wrote: Add RISC-V implementation of the Coherent Manager Global Control Register (CMGCR) device. It is based on the existing MIPS CMGCR implementation but adapted for RISC-V systems. The CMGCR device provides

Re: [PATCH v6 08/14] hw/misc: Add RISC-V CMGCR device implementation

2025-08-08 Thread Philippe Mathieu-Daudé
On 17/7/25 11:38, Djordje Todorovic wrote: Add RISC-V implementation of the Coherent Manager Global Control Register (CMGCR) device. It is based on the existing MIPS CMGCR implementation but adapted for RISC-V systems. The CMGCR device provides global system control for multi-core configurations

Re: [PATCH v6 07/14] target/riscv: Add Xmipslsp instructions

2025-08-08 Thread Philippe Mathieu-Daudé
On 17/7/25 11:38, Djordje Todorovic wrote: Add MIPS P8700 ldp, lwp, sdp, swp instructions. Signed-off-by: Chao-ying Fu Signed-off-by: Djordje Todorovic --- target/riscv/cpu.c| 3 + target/riscv/cpu_cfg.h| 2 +- target/riscv/cpu_cfg_fields.h.inc

Re: [PATCH v6 08/14] hw/misc: Add RISC-V CMGCR device implementation

2025-08-08 Thread Philippe Mathieu-Daudé
On 17/7/25 11:38, Djordje Todorovic wrote: Add RISC-V implementation of the Coherent Manager Global Control Register (CMGCR) device. It is based on the existing MIPS CMGCR implementation but adapted for RISC-V systems. The CMGCR device provides global system control for multi-core configurations

Re: [PATCH v6 01/14] hw/intc: Allow gaps in hartids for aclint and aplic

2025-08-08 Thread Philippe Mathieu-Daudé
On 17/7/25 11:38, Djordje Todorovic wrote: This is needed for riscv based CPUs by MIPS since those may have sparse hart-ID layouts. ACLINT and APLIC still assume a dense range, and if a hart is missing, this causes NULL derefs. Signed-off-by: Chao-ying Fu Signed-off-by: Djordje Todorovic ---

Re: [PATCH 12/12] error: Kill @error_warn

2025-08-08 Thread Philippe Mathieu-Daudé
On 8/8/25 10:08, Markus Armbruster wrote: We added @error_warn some two years ago in commit 3ffef1a55ca (error: add global &error_warn destination). It has multiple issues: * error.h's big comment was not updated for it. * Function contracts were not updated for it. * ERRP_GUARD() is unaware

Re: [PATCH 02/12] tcg: Fix error reporting on mprotect() failure in tcg_region_init()

2025-08-08 Thread Philippe Mathieu-Daudé
Hi Markus, On 8/8/25 10:08, Markus Armbruster wrote: tcg_region_init() calls one of qemu_mprotect_rwx(), qemu_mprotect_rw(), and mprotect(), then reports failure with error_setg_errno(&error_fatal, errno, ...). The use of &error_fatal is undesirable. qapi/error.h advises: * Please don't err

Re: [PATCH 04/12] migration/cpr: Clean up error reporting in cpr_resave_fd()

2025-08-08 Thread Philippe Mathieu-Daudé
On 8/8/25 10:08, Markus Armbruster wrote: qapi/error.h advises: * Please don't error_setg(&error_fatal, ...), use error_report() and * exit(), because that's more obvious. Do that. The error message starts with "internal error: ", so maybe this should assert() instead. Cc: Steve Sistare

[PATCH-for-10.1 1/2] hw/sd/ssi-sd: Return noise (dummy byte) when no card connected

2025-08-08 Thread Philippe Mathieu-Daudé
scv64: ../hw/sd/ssi-sd.c:160: ssi_sd_transfer: Assertion `s->arglen > 0' failed. Reported-by: Guenter Roeck Fixes: 775616c3ae8 ("Partial SD card SPI mode support") Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/ssi-sd.c | 4 1 file changed, 4 insertions(+) diff --g

[PATCH-for-10.1 2/2] tests/functional: Test SPI-SD adapter without SD card connected

2025-08-08 Thread Philippe Mathieu-Daudé
-off-by: Philippe Mathieu-Daudé --- tests/functional/test_riscv64_sifive_u.py | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/tests/functional/test_riscv64_sifive_u.py b/tests/functional/test_riscv64_sifive_u.py index dc4cb8a4a96..f7ab1abfd56 100755

[PATCH-for-10.1 0/2] hw/sd/ssi-sd: Return noise (dummy byte) when no card connected

2025-08-08 Thread Philippe Mathieu-Daudé
Trivial fix for the issue reported by Guenter here: https://lore.kernel.org/qemu-devel/5b2dc427-f0db-4332-a997-fe0c82415...@roeck-us.net/ - Return dummy byte when no card is connected - Add a test Philippe Mathieu-Daudé (2): hw/sd/ssi-sd: Return noise (dummy byte) when no card connected

Re: [PATCH-for-10.1 v2 00/11] hw/sd: Fix SD cards in SPI mode

2025-08-08 Thread Philippe Mathieu-Daudé
On 7/8/25 18:06, Guenter Roeck wrote: On Wed, Aug 06, 2025 at 09:22:46AM +0200, Philippe Mathieu-Daudé wrote: On 6/8/25 08:39, Michael Tokarev wrote: Philippe, do you think this series is something which should go to stable-10.0 (LTS) branch?  I'm not sure for the impact if it is not ap

Re: [PATCH] multiboot: Fix the split lock

2025-08-08 Thread Philippe Mathieu-Daudé
nrom/multiboot.S | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH v2 1/2] virtio-net: make VirtIONet.vlans an array instead of a pointer

2025-08-06 Thread Philippe Mathieu-Daudé
anged, 5 insertions(+), 6 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 1/2] virtio-net: make VirtIONet.vlans an array instead of a pointer

2025-08-06 Thread Philippe Mathieu-Daudé
On 3/8/25 09:38, Akihiko Odaki wrote: On 2025/08/02 23:45, Michael Tokarev wrote: On 02.08.2025 17:21, Michael Tokarev wrote: This field is a fixed-size buffer (number of elements is MAX_VLAN, known at build time).  There's no need to allocate it dynamically, it can be made an integral part of

Re: [PATCH 2/2] migration/vmstate: remove VMSTATE_BUFFER_POINTER_UNSAFE macro

2025-08-06 Thread Philippe Mathieu-Daudé
On 2/8/25 16:21, Michael Tokarev wrote: The only user of this macro was VirtIONet.vlans, which has been converted to regular VMSTATE_BUFFER. Signed-off-by: Michael Tokarev --- include/migration/vmstate.h | 9 - 1 file changed, 9 deletions(-) Yay! Reviewed-by: Philippe Mathieu

Re: [PATCH v2 2/4] configure: Enable to propagate -sMEMORY64 flag to Emscripten

2025-08-06 Thread Philippe Mathieu-Daudé
ngs_reference.html#memory64 Signed-off-by: Kohei Tokunaga --- configure | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH v2 4/4] .gitlab-ci.d: Add build tests for wasm64

2025-08-06 Thread Philippe Mathieu-Daudé
On 6/8/25 17:49, Kohei Tokunaga wrote: The wasm builds are tested for 3 targets: wasm32, wasm64(-sMEMORY64=1) and wasm64(-sMEMORY64=2). The CI builds the containers using the same Dockerfile (emsdk-wasm-cross.docker) with different build args. Signed-off-by: Kohei Tokunaga --- .gitlab-ci.d/bu

Re: [PATCH v5 02/13] accel, hw/arm, include/system/hvf: infrastructure changes for HVF vGIC

2025-08-06 Thread Philippe Mathieu-Daudé
On 28/7/25 15:41, Mohamed Mediouni wrote: Misc changes needed for HVF vGIC enablement. Signed-off-by: Mohamed Mediouni --- accel/hvf/hvf-all.c| 44 ++ accel/stubs/hvf-stub.c | 1 + hw/arm/virt.c | 16 +- hw/intc/arm_

Re: [PATCH v5 06/13] target/arm: hvf: pass through CNTHCTL_EL2 and MDCCINT_EL1

2025-08-06 Thread Philippe Mathieu-Daudé
sert_hvf_ok() calls, so adding more isn't really helping. Anyhow, Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé

Re: [PATCH v5 11/13] hvf: gate ARM_FEATURE_PMU register emulation behind not being at EL2

2025-08-06 Thread Philippe Mathieu-Daudé
ld value is non-zero and valid, PMU register accesses are emulated by the framework. The ID_AA64DFR0_EL1 register can be modified via hv_vcpu_set_sys_reg API. Signed-off-by: Mohamed Mediouni --- target/arm/hvf/hvf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Ph

Re: [PATCH v5 10/13] hvf: sync registers used at EL2

2025-08-06 Thread Philippe Mathieu-Daudé
On 28/7/25 15:41, Mohamed Mediouni wrote: When starting up the VM at EL2, more sysregs are available. Sync the state of those. In addition, sync the state of the EL1 physical timer when the vGIC is used, even if running at EL1. However, no OS running at EL1 is expected to use those registers.

Re: [PATCH v5 01/13] hvf: switch hvf_arm_get_host_cpu_features to not create a vCPU

2025-08-06 Thread Philippe Mathieu-Daudé
lue? +ahcf->midr = 0x610f; Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé

Re: [PATCH v5 03/13] hw/intc: Add hvf vGIC interrupt controller support

2025-08-06 Thread Philippe Mathieu-Daudé
On 28/7/25 15:41, Mohamed Mediouni wrote: This opens up the door to nested virtualisation support. Signed-off-by: Mohamed Mediouni --- hw/intc/arm_gicv3_hvf.c | 722 hw/intc/meson.build | 1 + 2 files changed, 723 insertions(+) create mode 10

Re: [PATCH trivial] tests/qemu-iotests/tests/mirror-sparse: actually require O_DIRECT

2025-08-06 Thread Philippe Mathieu-Daudé
On 6/8/25 09:56, Michael Tokarev wrote: Commit c0ddcb2cbc146e introduced the test which uses cache=direct mode, without checking if the scratch filesystem supports O_DIRECT. A subsequent commit, afeb002e0ad49d, tried to fix that issue, but instead of checking for o_direct, it checked for `_suppor

Re: [PATCH-for-10.1] tests/qemu-iotests/tests/mirror-sparse: skip if O_DIRECT is not supported

2025-08-06 Thread Philippe Mathieu-Daudé
On 6/8/25 09:30, Kevin Wolf wrote: Am 05.08.2025 um 19:56 hat Michael Tokarev geschrieben: On 05.08.2025 20:23, Philippe Mathieu-Daudé wrote: diff --git a/tests/qemu-iotests/tests/mirror-sparse b/tests/qemu- iotests/tests/mirror-sparse index cfcaa600ab..19843a622c 100755 --- a/tests/qemu

Re: [PATCH-for-10.1 v2 00/11] hw/sd: Fix SD cards in SPI mode

2025-08-06 Thread Philippe Mathieu-Daudé
On 6/8/25 08:39, Michael Tokarev wrote: Philippe, do you think this series is something which should go to stable-10.0 (LTS) branch?  I'm not sure for the impact if it is not applied, though, - what do we miss in this case? Only 2 machines use a SD card wired over SPI lines: $ git grep '"ssi-

Re: [PATCH 13/24] tests/functional: Move microblaze tests into architecture specific folder

2025-08-06 Thread Philippe Mathieu-Daudé
nal/{test_microblaze_s3adsp1800.py => microblaze/test_s3adsp1800.py} (100%) create mode 100644 tests/functional/microblazeel/meson.build rename tests/functional/{test_microblazeel_s3adsp1800.py => microblazeel/test_s3adsp1800.py} (92%) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 14/24] tests/functional: Move mips tests into target-specific folders

2025-08-06 Thread Philippe Mathieu-Daudé
On 5/8/25 15:56, Thomas Huth wrote: On 04/08/2025 10.31, Philippe Mathieu-Daudé wrote: Hi Thomas, On 1/8/25 17:12, Thomas Huth wrote: From: Thomas Huth The tests/functional folder has become quite crowded, thus move the mips tests into a target-specific subfolder. Signed-off-by: Thomas

Re: [PATCH 2/4] configure: Enable to propagate -sMEMORY64 flag to Emscripten

2025-08-06 Thread Philippe Mathieu-Daudé
Hi Kohei, On 4/8/25 14:57, Kohei Tokunaga wrote: Currently there are some engines that don't support wasm64 (e.g. unsupported on Safari[1]). To mitigate this issue, the configure script allows the user to use Emscripten's compatibility feature, "-sMEMORY64=2" flag[2]. Emscripten's "-sMEMORY64=2

Re: [PATCH 6/6] tracetool: drop the probe "__nocheck__" wrapping

2025-08-05 Thread Philippe Mathieu-Daudé
deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 4/6] tracetool: include SPDX-License-Identifier in generated files

2025-08-05 Thread Philippe Mathieu-Daudé
+ scripts/tracetool/format/ust_events_h.py | 1 + 8 files changed, 9 insertions(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 3/6] tracetool: avoid space after "*" in arg types

2025-08-05 Thread Philippe Mathieu-Daudé
- 1 file changed, 7 insertions(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 2/6] tracetool: eliminate trailing whitespace in C format

2025-08-05 Thread Philippe Mathieu-Daudé
On 5/8/25 22:03, Daniel P. Berrangé wrote: Signed-off-by: Daniel P. Berrangé --- scripts/tracetool/format/c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH] hw/intc/loongarch_pch_pic: Fix ubsan warning and endianness issue

2025-08-05 Thread Philippe Mathieu-Daudé
pch_pic.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

[PULL 11/13] tests/functional: Test SD cards in SPI mode (using sifive_u machine)

2025-08-05 Thread Philippe Mathieu-Daudé
-8372-b62b3bcd0...@codethink.co.uk/ Inspired-by: Guenter Roeck Inspired-by: Ben Dooks Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson Message-Id: <20250804133406.17456-12-phi...@linaro.org> --- MAINTAINERS | 1 + tests/functional/meson

[PULL 12/13] target/i386/cpu: Move addressable ID encoding out of compat property in CPUID[0x1]

2025-08-05 Thread Philippe Mathieu-Daudé
of addressable IDs field for CPUID.01H.EBX[23:16]") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3061 Signed-off-by: Zhao Liu Reviewed-by: Michael Tokarev Tested-by: Michael Tokarev Message-ID: <20250804053548.1808629-1-zhao1@intel.com> Signed-off-by: Philippe Mathieu-Daudé

[PULL 06/13] hw/sd/sdcard: Use complete SEND_OP_COND implementation in SPI mode

2025-08-05 Thread Philippe Mathieu-Daudé
While spi_cmd_SEND_OP_COND() is incomplete, sd_cmd_SEND_OP_COND() is, except it doesn't return the correct value in SPI mode. Correct and use, removing the need for spi_cmd_SEND_OP_COND(). Fixes: 775616c3ae8 ("Partial SD card SPI mode support") Signed-off-by: Philippe Mathieu-

[PULL 03/13] hw/sd/sdbus: Provide buffer size to sdbus_do_command()

2025-08-05 Thread Philippe Mathieu-Daudé
y the size filled in the buffer. Convert the returned type to unsigned and remove the few unreachable lines in callers. This allow to check for possible overflow in sd_do_command(). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250804133406.174

[PULL 10/13] hw/sd/sdcard: Remove SDState::mode field

2025-08-05 Thread Philippe Mathieu-Daudé
SD card mode is a superset of its state (SDState::state), no need to migrate it. Use sd_mode() to get the SDCardModes from the SDCardStates. Fixes: 50a5be6c3d5 ("hw/sd.c: add SD card save/load support") Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson

[PULL 08/13] hw/sd/sdcard: Factor spi_cmd_SEND_CxD() out

2025-08-05 Thread Philippe Mathieu-Daudé
spi_cmd_SEND_CSD() and spi_cmd_SEND_CID() are very similar. Factor the common code as spi_cmd_SEND_CxD(). Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson Message-Id: <20250804133406.17456-9-phi...@linaro.org> --- hw/sd/sd.c | 19 ++- 1 file chang

[PULL 13/13] hw/i386/microvm: Explicitly select ACPI_PCI

2025-08-05 Thread Philippe Mathieu-Daudé
Fixes: af151d50eac24 "hw/pci-host/gpex-acpi: Use build_pci_host_bridge_osc_method" Signed-off-by: Eric Auger Reported-by: Michael Tokarev Reviewed-by: Michael Tokarev Message-ID: <20250804152008.247673-1-eric.au...@redhat.com> Signed-off-by: Philippe Mathieu-Daudé --- hw/i

[PULL 05/13] hw/sd/sdcard: Implement SPI R2 return value

2025-08-05 Thread Philippe Mathieu-Daudé
In SPI mode, R2 is a 2-byte value. Implement in spi_response_r2_make() and return SPI R2 in the SEND_STATUS commands. Reported-by: Guenter Roeck Fixes: 775616c3ae8 ("Partial SD card SPI mode support") Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson

[PULL 09/13] hw/sd/sdcard: Disable checking STBY mode in SPI SEND_CSD/CID

2025-08-05 Thread Philippe Mathieu-Daudé
nter Roeck Reported-by: Ben Dooks Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson Message-Id: <20250804133406.17456-10-phi...@linaro.org> --- hw/sd/sd.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index ee81dc09991..22f30997713 10

[PULL 04/13] hw/sd/sdcard: Fill SPI response bits in card code

2025-08-05 Thread Philippe Mathieu-Daudé
-sd.c. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson Message-Id: <20250804133406.17456-5-phi...@linaro.org> --- hw/sd/sd.c | 32 --- hw/sd/ssi-sd.c | 87 -- 2 files changed, 35 insertions(+), 84 del

[PULL 01/13] hw/sd/sdcard: Do not ignore errors in sd_cmd_to_sendingdata()

2025-08-05 Thread Philippe Mathieu-Daudé
Unfortunately when adding sd_cmd_to_sendingdata() in commit f486bf7d109 we neglected to return any possible error. Fix. Fixes: f486bf7d109 ("hw/sd/sdcard: Introduce sd_cmd_to_sendingdata and sd_generic_read_byte") Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé

[PULL 07/13] hw/sd/sdcard: Allow using SWITCH_FUNCTION in more SPI states

2025-08-05 Thread Philippe Mathieu-Daudé
In SPI mode, SWITCH_FUNCTION is valid in all mode (except the IDLE one). Fixes: 775616c3ae8 ("Partial SD card SPI mode support") Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson Message-Id: <20250804133406.17456-8-phi...@linaro.org> --- hw/sd/sd.c | 10 ++

[PULL 02/13] hw/sd/sdcard: Factor sd_response_size() out

2025-08-05 Thread Philippe Mathieu-Daudé
Set @rsplen once before switching to fill the response buffer. This will allow to assert in a single place that the buffer is big enough to be filled with the response. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250804133406.17456-3-phi...@linaro.

[PULL 00/13] Misc HW patches for 2025-08-05

2025-08-05 Thread Philippe Mathieu-Daudé
selecting Kconfig ACPI_PCI - Fix legacy Intel SMT info removing 'x-vendor-cpuid-only-v2' property check Eric Auger (1): hw/i386/microvm: Explicitly select ACPI_PCI Philippe Mathieu-Daudé (11): hw/sd/sdcard: Do

Re: [PATCH-for-10.1] tests/qemu-iotests/tests/mirror-sparse: skip if O_DIRECT is not supported

2025-08-05 Thread Philippe Mathieu-Daudé
On 1/8/25 14:28, Michael Tokarev wrote: This test uses cache.direct=true, but does not check if O_DIRECT is supported by the underlying filesystem, and fails, for example, on a tmpfs (which is rather common on various auto-builders, in CI, etc). Fix this by using _require_o_direct. This example

Re: Asking for an account on the Qemu wiki

2025-08-05 Thread Philippe Mathieu-Daudé
On 5/8/25 17:18, Mohamed Mediouni wrote: Hello, Just a random email to ask for an account there :) Done (credentials sent off-list).

Re: [PATCH for v10.1] i386/cpu: Move addressable ID encoding out of compat property in CPUID[0x1]

2025-08-05 Thread Philippe Mathieu-Daudé
On 4/8/25 07:35, Zhao Liu wrote: Currently, the addressable ID encoding for CPUID[0x1].EBX[bits 16-23] (Maximum number of addressable IDs for logical processors in this physical package) is covered by vendor_cpuid_only_v2 compat property. The previous consideration was to avoid breaking migration

Re: [PATCH-for-10.1 v2 00/11] hw/sd: Fix SD cards in SPI mode

2025-08-05 Thread Philippe Mathieu-Daudé
On 4/8/25 15:33, Philippe Mathieu-Daudé wrote: Philippe Mathieu-Daudé (11): hw/sd/sdcard: Do not ignore errors in sd_cmd_to_sendingdata() hw/sd/sdcard: Factor sd_response_size() out hw/sd/sdbus: Provide buffer size to sdbus_do_command() hw/sd/sdcard: Fill SPI response bits in card

Re: [PATCH for 10.1] microvm: Explicitly select ACPI_PCI

2025-08-05 Thread Philippe Mathieu-Daudé
On 4/8/25 17:20, Eric Auger wrote: With a microvm-only build based on a custom device config, we get a link failure due to undefined reference to build_pci_host_bridge_osc_method() which is defined in hw/acpi/pci.c and whose compilation depends on CONFIG_ACPI_PCI. Although CONFIG_ACPI and CONFIG_

Re: [PATCH] vfio: Document 'use-legacy-x86-rom' property

2025-08-05 Thread Philippe Mathieu-Daudé
e ramfb romfile compatibility") Signed-off-by: Cédric Le Goater --- hw/vfio/pci.c | 3 +++ 1 file changed, 3 insertions(+) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH for-10.2] hw/arm/virt: Include 'system/system.h'

2025-08-05 Thread Philippe Mathieu-Daudé
m/system.h Anyhow, Reviewed-by: Philippe Mathieu-Daudé qemu_add_machine_init_done_notifier() Signed-off-by: Cédric Le Goater --- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index ef6be3660f5fb38da84235c32dc2d1

Re: [PATCH-for-10.1 v2 00/11] hw/sd: Fix SD cards in SPI mode

2025-08-04 Thread Philippe Mathieu-Daudé
On 5/8/25 01:03, Richard Henderson wrote: On 8/4/25 23:33, Philippe Mathieu-Daudé wrote: Philippe Mathieu-Daudé (11):    hw/sd/sdcard: Do not ignore errors in sd_cmd_to_sendingdata()    hw/sd/sdcard: Factor sd_response_size() out    hw/sd/sdbus: Provide buffer size to sdbus_do_command()    hw

Re: [PATCH v4 14/17] hw/arm, accel/hvf, whpx: unify get_physical_address_range between WHPX and HVF

2025-08-04 Thread Philippe Mathieu-Daudé
On 4/8/25 16:23, Mohamed Mediouni wrote: Signed-off-by: Mohamed Mediouni --- accel/hvf/hvf-all.c| 7 +-- hw/arm/virt.c | 41 -- include/hw/boards.h| 4 ++-- include/system/hvf_int.h | 2 ++ target/arm/hvf-stub.c

Re: [PATCH v4 12/17] hw/arm: virt: cleanly fail on attempt to use the platform vGIC together with ITS

2025-08-04 Thread Philippe Mathieu-Daudé
On 4/8/25 16:23, Mohamed Mediouni wrote: Windows Hypervisor Platform's vGIC doesn't support ITS. Deal with this by reporting to the user and not creating the ITS device. Signed-off-by: Mohamed Mediouni --- hw/arm/virt.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/hw/arm/v

Re: [PATCH v4 09/17] whpx: add arm64 support

2025-08-04 Thread Philippe Mathieu-Daudé
On 4/8/25 16:23, Mohamed Mediouni wrote: Signed-off-by: Mohamed Mediouni --- accel/whpx/whpx-common.c| 1 + meson.build | 21 +- target/arm/meson.build | 1 + target/arm/whpx/meson.build | 3 + target/arm/whpx/whpx-all.c | 845 ++

Re: [PATCH v4 10/17] whpx: copy over memory management logic from hvf

2025-08-04 Thread Philippe Mathieu-Daudé
On 4/8/25 16:23, Mohamed Mediouni wrote: This allows edk2 to work, although u-boot is still not functional. Signed-off-by: Mohamed Mediouni --- accel/whpx/whpx-common.c | 201 --- 1 file changed, 147 insertions(+), 54 deletions(-) diff --git a/accel/whpx/

Re: [PATCH v3 09/12] semihosting/arm-compat-semi: replace target_ulong with uint64_t

2025-08-04 Thread Philippe Mathieu-Daudé
Hi Pierrick, On 4/8/25 20:39, Pierrick Bouvier wrote: Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- semihosting/arm-compat-semi.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/semihosting/arm-compat-semi.c b/semihosting/a

Re: [PATCH v4 01/17] accel/system: Introduce hwaccel_enabled() helper

2025-08-04 Thread Philippe Mathieu-Daudé
On 4/8/25 18:12, Mohamed Mediouni wrote: On 4. Aug 2025, at 18:00, Claudio Fontana wrote: On 8/4/25 16:23, Mohamed Mediouni wrote: From: Philippe Mathieu-Daudé hwaccel_enabled() return whether any hardware accelerator is available. Available or enabled? enabled Oops indeed

[PATCH-for-10.1 v2 11/11] tests/functional: Test SD cards in SPI mode (using sifive_u machine)

2025-08-04 Thread Philippe Mathieu-Daudé
-8372-b62b3bcd0...@codethink.co.uk/ Inspired-by: Guenter Roeck Inspired-by: Ben Dooks Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 1 + tests/functional/meson.build | 1 + tests/functional/test_riscv64_sifive_u.py | 51

[PATCH-for-10.1 v2 01/11] hw/sd/sdcard: Do not ignore errors in sd_cmd_to_sendingdata()

2025-08-04 Thread Philippe Mathieu-Daudé
Unfortunately when adding sd_cmd_to_sendingdata() in commit f486bf7d109 we neglected to return any possible error. Fix. Fixes: f486bf7d109 ("hw/sd/sdcard: Introduce sd_cmd_to_sendingdata and sd_generic_read_byte") Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé

[PATCH-for-10.1 v2 09/11] hw/sd/sdcard: Disable checking STBY mode in SPI SEND_CSD/CID

2025-08-04 Thread Philippe Mathieu-Daudé
nter Roeck Reported-by: Ben Dooks Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index ee81dc09991..22f30997713 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1591,9 +1591,20 @@ static sd_

[PATCH-for-10.1 v2 07/11] hw/sd/sdcard: Allow using SWITCH_FUNCTION in more SPI states

2025-08-04 Thread Philippe Mathieu-Daudé
In SPI mode, SWITCH_FUNCTION is valid in all mode (except the IDLE one). Fixes: 775616c3ae8 ("Partial SD card SPI mode support") Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/

[PATCH-for-10.1 v2 08/11] hw/sd/sdcard: Factor spi_cmd_SEND_CxD() out

2025-08-04 Thread Philippe Mathieu-Daudé
spi_cmd_SEND_CSD() and spi_cmd_SEND_CID() are very similar. Factor the common code as spi_cmd_SEND_CxD(). Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index a9efa158594

[PATCH-for-10.1 v2 00/11] hw/sd: Fix SD cards in SPI mode

2025-08-04 Thread Philippe Mathieu-Daudé
avoid further bitrot. Regards, Phil. Philippe Mathieu-Daudé (11): hw/sd/sdcard: Do not ignore errors in sd_cmd_to_sendingdata() hw/sd/sdcard: Factor sd_response_size() out hw/sd/sdbus: Provide buffer size to sdbus_do_command() hw/sd/sdcard: Fill SPI response bits in card code hw/sd/sdcard

[PATCH-for-10.1 v2 04/11] hw/sd/sdcard: Fill SPI response bits in card code

2025-08-04 Thread Philippe Mathieu-Daudé
-sd.c. Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 32 --- hw/sd/ssi-sd.c | 87 -- 2 files changed, 35 insertions(+), 84 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 069107a2e70..cbcc180f6a4 100644 --- a/hw/sd

[PATCH-for-10.1 v2 03/11] hw/sd/sdbus: Provide buffer size to sdbus_do_command()

2025-08-04 Thread Philippe Mathieu-Daudé
y the size filled in the buffer. Convert the returned type to unsigned and remove the few unreachable lines in callers. This allow to check for possible overflow in sd_do_command(). Signed-off-by: Philippe Mathieu-Daudé --- include/hw/sd/sd.h | 23 +-- hw/sd/allw

[PATCH-for-10.1 v2 10/11] hw/sd/sdcard: Remove SDState::mode field

2025-08-04 Thread Philippe Mathieu-Daudé
SD card mode is a superset of its state (SDState::state), no need to migrate it. Use sd_mode() to get the SDCardModes from the SDCardStates. Fixes: 50a5be6c3d5 ("hw/sd.c: add SD card save/load support") Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c

[PATCH-for-10.1 v2 06/11] hw/sd/sdcard: Use complete SEND_OP_COND implementation in SPI mode

2025-08-04 Thread Philippe Mathieu-Daudé
While spi_cmd_SEND_OP_COND() is incomplete, sd_cmd_SEND_OP_COND() is, except it doesn't return the correct value in SPI mode. Correct and use, removing the need for spi_cmd_SEND_OP_COND(). Fixes: 775616c3ae8 ("Partial SD card SPI mode support") Signed-off-by: Philippe Mathieu-Da

[PATCH-for-10.1 v2 05/11] hw/sd/sdcard: Implement SPI R2 return value

2025-08-04 Thread Philippe Mathieu-Daudé
In SPI mode, R2 is a 2-byte value. Implement in spi_response_r2_make() and return SPI R2 in the SEND_STATUS commands. Reported-by: Guenter Roeck Fixes: 775616c3ae8 ("Partial SD card SPI mode support") Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.

[PATCH-for-10.1 v2 02/11] hw/sd/sdcard: Factor sd_response_size() out

2025-08-04 Thread Philippe Mathieu-Daudé
Set @rsplen once before switching to fill the response buffer. This will allow to assert in a single place that the buffer is big enough to be filled with the response. Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 36 +--- 1 file changed, 29 insertions

Re: [PATCH] qapi/command: Avoid generating unused qmp_marshal_output_T()

2025-08-04 Thread Philippe Mathieu-Daudé
ame type. The impact on code size is negligible: qemu-system-x86_64's text segment grows by 1448 bytes. Signed-off-by: Markus Armbruster --- docs/devel/qapi-code-gen.rst | 25 scripts/qapi/commands.py | 44 ---- 2 files changed, 19 insertions(+), 50 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH-for-10.1 04/11] hw/sd/sdcard: Fill SPI response bits in card code

2025-08-04 Thread Philippe Mathieu-Daudé
On 1/8/25 09:19, Richard Henderson wrote: On 8/1/25 07:27, Philippe Mathieu-Daudé wrote: @@ -746,6 +761,10 @@ static size_t sd_response_r3_make(SDState *sd, uint8_t *response, size_t respsz)   {   size_t rsplen = 4; +    if (sd_is_spi(sd)) { +    rsplen += sd_response_r1_make(sd

Re: [PATCH v2 1/2] hw/meson: enter target hw first

2025-08-04 Thread Philippe Mathieu-Daudé
hanged, 23 insertions(+), 22 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 08/24] tests/functional: Move avr tests into architecture specific folder

2025-08-04 Thread Philippe Mathieu-Daudé
(+), 7 deletions(-) create mode 100644 tests/functional/avr/meson.build rename tests/functional/{test_avr_mega2560.py => avr/test_mega2560.py} (100%) rename tests/functional/{test_avr_uno.py => avr/test_uno.py} (100%) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 21/24] tests/functional: Move sparc/sparc64 tests into target-specific folders

2025-08-04 Thread Philippe Mathieu-Daudé
son.build rename tests/functional/{test_sparc64_migration.py => sparc64/test_migration.py} (100%) rename tests/functional/{test_sparc64_sun4u.py => sparc64/test_sun4u.py} (100%) rename tests/functional/{test_sparc64_tuxrun.py => sparc64/test_tuxrun.py} (100%) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 17/24] tests/functional: Move riscv32/riscv64 tests into target-specific folders

2025-08-04 Thread Philippe Mathieu-Daudé
r1k') subdir('ppc') subdir('ppc64') - -test_riscv64_timeouts = { - 'riscv64_tuxrun' : 120, -} +subdir('riscv32') +subdir('riscv64') Here again I'd merge in a single 'riscv/' directory. Anyhow, Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 15/24] tests/functional: Move or1k tests into target-specific folders

2025-08-04 Thread Philippe Mathieu-Daudé
(+), 6 deletions(-) create mode 100644 tests/functional/or1k/meson.build rename tests/functional/{test_or1k_replay.py => or1k/test_replay.py} (100%) rename tests/functional/{test_or1k_sim.py => or1k/test_sim.py} (100%) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 11/24] tests/functional: Move loongarch64 tests into architecture specific folder

2025-08-04 Thread Philippe Mathieu-Daudé
hppa') subdir('i386') +subdir('loongarch64') I'd just go with generic 'loongarch'. Regardless: Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 06/24] tests/functional: Move alpha tests into architecture specific folder

2025-08-04 Thread Philippe Mathieu-Daudé
ration.py => alpha/test_migration.py} (100%) rename tests/functional/{test_alpha_replay.py => alpha/test_replay.py} (100%) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 09/24] tests/functional: Move hppa tests into architecture specific folder

2025-08-04 Thread Philippe Mathieu-Daudé
ild rename tests/functional/{test_hppa_seabios.py => hppa/test_seabios.py} (100%) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 12/24] tests/functional: Move m68k tests into architecture specific folder

2025-08-04 Thread Philippe Mathieu-Daudé
) rename tests/functional/{test_m68k_tuxrun.py => m68k/test_tuxrun.py} (100%) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 19/24] tests/functional: Move s390x tests into target-specific folders

2025-08-04 Thread Philippe Mathieu-Daudé
e tests/functional/{test_s390x_tuxrun.py => s390x/test_tuxrun.py} (100%) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 23/24] tests/functional: Move xtensa tests into target-specific folder

2025-08-04 Thread Philippe Mathieu-Daudé
(+), 6 deletions(-) create mode 100644 tests/functional/xtensa/meson.build rename tests/functional/{test_xtensa_lx60.py => xtensa/test_lx60.py} (100%) rename tests/functional/{test_xtensa_replay.py => xtensa/test_replay.py} (100%) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 20/24] tests/functional: Move sh4/sh4eb tests into target-specific folders

2025-08-04 Thread Philippe Mathieu-Daudé
st_sh4_timeouts = { - 'sh4_tuxrun' : 240, -} +subdir('sh4') +subdir('sh4eb') Here also I'd keep a single sh4/ directory (it is the same architecture with an endianness variant we're going to remove). Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 18/24] tests/functional: Move rx test into target-specific folders

2025-08-04 Thread Philippe Mathieu-Daudé
gt; rx/test_gdbsim.py} (100%) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 14/24] tests/functional: Move mips tests into target-specific folders

2025-08-04 Thread Philippe Mathieu-Daudé
/test_tuxrun.py} (100%) +subdir('mips') +subdir('mipsel') +subdir('mips64') +subdir('mips64el') Just one single comment here. I'd rather have a single mips/ directory and keep the variants inside it, i.e.: tests/functional/mips/test_mips64el_malta.py Anyhow: Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH v3] vfio: Introduce helper vfio_pci_from_vfio_device()

2025-08-01 Thread Philippe Mathieu-Daudé
[*]. Otherwise, Reviewed-by: Philippe Mathieu-Daudé +VFIOPCIDevice *vfio_pci_from_vfio_device(VFIODevice *vbasedev) +{ +if (vbasedev && vbasedev->type == VFIO_DEVICE_TYPE_PCI) { +return container_of(vbasedev, VFIOPCIDevice, vbasedev); +} +return NULL; +}

Re: [PATCH v3 2/6] hw/i386/amd_iommu: Remove unused and wrongly set ats_enabled field

2025-08-01 Thread Philippe Mathieu-Daudé
STATE_BOOL(ga_enabled, AMDVIState), - VMSTATE_BOOL(ats_enabled, AMDVIState), + /* bool ats_enabled is obsolete */ + VMSTATE_UNUSED(1), VMSTATE_UNUSED(1), /* was ats_enabled */ Otherwise, Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH-for-10.1 00/11] hw/sd: Fix SD cards in SPI mode

2025-07-31 Thread Philippe Mathieu-Daudé
(Cc'ing few more ppl who worked on hw/sd/) On 31/7/25 23:27, Philippe Mathieu-Daudé wrote: This series fix a pair of issues with SD cards used wired via a SPI link / controller. Such mode implementation was minimal. I was testing it with the ARM Gumstix machines, but we remove them i

  1   2   3   4   5   6   7   8   9   10   >