[PATCH 2/3] hw/intc/loongarch_extioi: Remove num-cpu property

2025-01-01 Thread Bibo Mao
Since cpu number can be acquired from possible_cpu_arch_ids(), num-cpu property is not necessary. Here remove num-cpu property for object TYPE_LOONGARCH_EXTIOI_COMMON object. Signed-off-by: Bibo Mao --- hw/intc/loongarch_extioi.c| 8 hw/intc/loongarch_extioi_common.c | 14 -

[PATCH 1/3] hw/intc/loongarch_extioi: Get cpu number from possible_cpu_arch_ids

2025-01-01 Thread Bibo Mao
Supported CPU number can be acquired from function possible_cpu_arch_ids(), cpu-num property is not necessary. Signed-off-by: Bibo Mao --- hw/intc/loongarch_extioi.c| 7 +++ include/hw/intc/loongarch_extioi_common.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/hw/in

[PATCH 0/3] hw/intc/loongarch_extioi: Add irq routing from physical cpu id

2025-01-01 Thread Bibo Mao
The similiar with IPI, physical cpu id is used for irq routing. Also get cpu number from possible_cpu_arch_ids() and remove num-cpu property for TYPE_LOONGARCH_EXTIOI_COMMON object. Bibo Mao (3): hw/intc/loongarch_extioi: Get cpu number from possible_cpu_arch_ids hw/intc/loongarch_extioi: Remo

[PATCH 3/3] hw/intc/loongarch_extioi: Add irq routing support from physical id

2025-01-01 Thread Bibo Mao
The simliar with IPI interrupt controller, physical cpu id is used for irq routing for extioi interrupt controller. Signed-off-by: Bibo Mao --- hw/intc/loongarch_extioi.c | 30 ++ 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/hw/intc/loongarch_extioi.

Re: Addressing CVE-2024-3446 in qemu versions shipped in debian bullseye and older

2025-01-01 Thread Thomas Huth
On 31/12/2024 00.21, Santiago Ruano Rincón wrote: Hello there, (Please CC me since I am not subscribed to the QEMU devel list.) I am working on backporting some CVE fixes to old Debian versions (bullseye and previous), and I would like to ask you some help to confirm if QEMU in those debian rel

[PATCH] tests/functional/test_arm_quanta_gsj: Fix broken test

2025-01-01 Thread Thomas Huth
ASSET_IMAGE needs to be prefixed with "self." ... this bug apparently went in unnoticed because the test is not run by default. Signed-off-by: Thomas Huth --- tests/functional/test_arm_quanta_gsj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/test_arm_qua

Re: [PATCH v3] ui/sdl2: reenable the SDL2 Windows keyboard hook procedure

2025-01-01 Thread Thomas Huth
On 02/01/2025 08.06, Philippe Mathieu-Daudé wrote: Hi Volker, On 31/12/24 12:59, Volker Rümelin wrote: Windows only: The libSDL2 Windows message loop needs the libSDL2 Windows low level keyboard hook procedure to grab the left and right Windows keys correctly. Reenable the SDL2 Windows keyboar

Re: [PATCH v3] ui/sdl2: reenable the SDL2 Windows keyboard hook procedure

2025-01-01 Thread Philippe Mathieu-Daudé
Hi Volker, On 31/12/24 12:59, Volker Rümelin wrote: Windows only: The libSDL2 Windows message loop needs the libSDL2 Windows low level keyboard hook procedure to grab the left and right Windows keys correctly. Reenable the SDL2 Windows keyboard hook procedure. Since SDL2 2.30.4 the SDL2 keyboa

Re: [PATCH] docs: update copyright date to the year 2025

2025-01-01 Thread Thomas Huth
On 01/01/2025 09.01, Ani Sinha wrote: We are already in January 2025! Update copyright notices. Cc: peter.mayd...@linaro.org Cc: qemu-triv...@nongnu.org Signed-off-by: Ani Sinha --- docs/conf.py | 2 +- include/qemu/help-texts.h | 2 +- 2 files changed, 2 insertions(+), 2 delet

Re: [PATCH] feat: add loongarch page table walker support for debugger memory access

2025-01-01 Thread Miao Hao
On 2024/12/31 19:29, bibo mao wrote: On 2024/12/30 下午3:04, Miao Hao wrote: Hi Bibo, Thanks for your review. I apologize for my late respond due to some personal reasons. On 2024/12/19 17:57, bibo mao wrote: Hi Miao, Thanks for doing this. It is useful to debug VM. On 2024/12/19 上午11:2

DMA interface support for libqos/fw_cfg.c

2025-01-01 Thread Ani Sinha
Hi Markus: Currently this library can only be used to read fw_cfg files from QEMU. It can not be used to write to fw_cfg files since it does not support the DMA interface. Is it possible to add DMA interface support to this libraries so that we may use it to write tests that write to fw_cfg files?

which test.hex is right for qemu-microbit?

2025-01-01 Thread Liu Jaloo
in qemu branch statble-9.2 > $ ./build/qemu-system-arm -M microbit -device > loader,file=/path/to/heart-hearts-makecode.hex > Segmentation fault about the error, gdb backtrace like this: > bash-5.1$ gdb ./build/qemu-system-arm > GNU gdb (GDB) 11.2 > Copyright (C) 2022 Free Software Foundation,

Re: [PATCH 2/4] tests/functional/test_ppc64_hv: Simplify console handling

2025-01-01 Thread Thomas Huth
On 20/12/2024 03.46, Nicholas Piggin wrote: Since functional tests have character-based console output parsing, there is no need for strange hacks to work around old line-based. Signed-off-by: Nicholas Piggin --- tests/functional/test_ppc64_hv.py | 43 ++- 1 file

Re: [PATCH v2] hw/char: stm32f2xx_usart: replace print with trace

2025-01-01 Thread Alistair Francis
On Fri, Dec 20, 2024 at 9:18 PM Nikita Shubin wrote: > > From: Nikita Shubin > > Drop debug printing macros and replace them with according trace > functions. > > Signed-off-by: Nikita Shubin Reviewed-by: Alistair Francis Alistair > --- > v1->v2: > Phil: > - fix typo s/recieve/receive/ > - i

RE: [PATCH v2 0/2] sd:sdhci Fix data transfer did not complete

2025-01-01 Thread Jamin Lin
> From: Jamin Lin > Sent: Friday, December 13, 2024 11:12 AM > To: Philippe Mathieu-Daudé ; Bin Meng > ; open list:SD (Secure Card) > ; open list:All patches CC here > > Cc: Jamin Lin ; Troy Lee > ; Yunlin Tang > Subject: [PATCH v2 0/2] sd:sdhci Fix data transfer did not complete > > v1: > 1. F

RE: [PATCH v1 0/3] Support timer for AST2700

2025-01-01 Thread Jamin Lin
> From: Jamin Lin > Sent: Monday, December 16, 2024 3:54 PM > To: Cédric Le Goater ; Peter Maydell > ; Steven Lee ; Troy > Lee ; Andrew Jeffery ; > Joel Stanley ; open list:ASPEED BMCs > ; open list:All patches CC here > > Cc: Jamin Lin ; Troy Lee > ; Yunlin Tang > Subject: [PATCH v1 0/3] Suppor

Re: [PATCH] hw/riscv/riscv-iommu-sys.c: fix duplicated 'table_size'

2025-01-01 Thread Alistair Francis
On Mon, Dec 23, 2024 at 7:46 AM Daniel Henrique Barboza wrote: > > Trivial fix for the following ticket: > > CID 1568580: Incorrect expression (EVALUATION_ORDER) > In "table_size = table_size = n_vectors * 16U", > "table_size" is written twice with the same value. > > Cc: qemu-triv...@nongnu

Re: [PATCH v2 1/1] hw/intc/riscv_aplic: Fix APLIC in_clrip and clripnum write emulation

2025-01-01 Thread Alistair Francis
On Sun, Dec 22, 2024 at 6:40 PM Michael Tokarev wrote: > > 29.10.2024 11:53, Yong-Xuan Wang wrote: > > In the section "4.7 Precise effects on interrupt-pending bits" > > of the RISC-V AIA specification defines that: > > > > "If the source mode is Level1 or Level0 and the interrupt domain > > is co

Re: [PULL 0/1] Trivial patches for 2024-12-31

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

Re: [PULL 00/29] Misc HW patches for 2024-12-31

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

Re: [PATCH 3/3] target/cpus: Remove pointless re-assignment of CPUState::halted

2025-01-01 Thread Bernhard Beschow
Am 30. Dezember 2024 15:39:29 UTC schrieb "Philippe Mathieu-Daudé" : >The CPUState::halted field is always re-initialized in >cpu_common_reset_hold(), itself called by cpu_reset(). >No need to have targets manually initializing it. > >Signed-off-by: Philippe Mathieu-Daudé >--- > hw/misc/mips_c

How does "rsi" get set in x86 prologue?

2025-01-01 Thread Gautam Bhat
I am trying to understanding the generated code for the x86 target. On EPILOGUE code below: 0x7fff9800: 55 pushq%rbp 0x7fff9801: 53 pushq%rbx 0x7fff9802: 41 54pushq%r12 0x7fff9804: 41 55

Re: [PATCH v4 4/6] target/hppa: Only set PSW 'M' bit on reset

2025-01-01 Thread Helge Deller
On 12/31/24 20:06, Philippe Mathieu-Daudé wrote: On reset: "All PSW bits except the M bit is reset. The M bit is set." Commit 1a19da0da44 ("target/hppa: Fill in hppa_cpu_do_interrupt / hppa_cpu_exec_interrupt") inadvertently set the W bit at RESET, remove it and set the M bit. Signed-off-by

Re: [PATCH v4 1/6] tests: Add functional tests for HPPA machines

2025-01-01 Thread Helge Deller
On 12/31/24 20:06, Philippe Mathieu-Daudé wrote: Add quick firmware boot tests (less than 1sec) for the B160L (32-bit) and C3700 (64-bit) HPPA machines: $ make check-functional-hppa 1/4 qemu:func-quick+func-hppa / func-hppa-empty_cpu_model OK 0.13s 1 subtests passed 2/4 qemu:func-quick

Re: [PATCH 1/3] vfio/pci: declare generic quirks in a new header file

2025-01-01 Thread Tomita Moeko
On 12/31/24 23:19, Tomita Moeko wrote: > Declare generic vfio_generic_{window_address,window_data,mirror}_quirk > in newly created pci_quirks.h so that they can be used elsewhere, like > igd.c. > > Signed-off-by: Tomita Moeko > --- > hw/vfio/pci-quirks.c | 59 -

Re: [PATCH] qtest/fw-cfg: remove compiled out code

2025-01-01 Thread Philippe Mathieu-Daudé
On Wed, 1 Jan 2025 at 09:16, Ani Sinha wrote: > > Remove code that is already compiled out. This prevents confusion. > > CC: qemu-triv...@nongnu.org > Signed-off-by: Ani Sinha > --- > tests/qtest/fw_cfg-test.c | 6 -- > 1 file changed, 6 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

[PATCH] qtest/fw-cfg: remove compiled out code

2025-01-01 Thread Ani Sinha
Remove code that is already compiled out. This prevents confusion. CC: qemu-triv...@nongnu.org Signed-off-by: Ani Sinha --- tests/qtest/fw_cfg-test.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/tests/qtest/fw_cfg-test.c b/tests/qtest/fw_cfg-test.c index 5dc807ba23..e48b34afa5 100644

[PATCH] docs: update copyright date to the year 2025

2025-01-01 Thread Ani Sinha
We are already in January 2025! Update copyright notices. Cc: peter.mayd...@linaro.org Cc: qemu-triv...@nongnu.org Signed-off-by: Ani Sinha --- docs/conf.py | 2 +- include/qemu/help-texts.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/c