Re: [PULL v2 16/47] hw/riscv: add RISC-V IOMMU base emulation

2024-10-01 Thread Tomasz Jeznach
On Tue, Oct 1, 2024 at 4:00 PM Daniel Henrique Barboza wrote: > > > > On 10/1/24 7:14 PM, Tomasz Jeznach wrote: > > On Sun, Sep 29, 2024 at 8:46 AM Peter Maydell > > wrote: > >> > >> On Sat, 28 Sept 2024 at 22:01, Daniel Henrique Barboza > >> wrote: > >>> > >>> > >>> > >>> On 9/28/24 5:22 PM, P

[PATCH v2 1/2] hw/ssi: Allwinner A10 SPI emulation

2024-10-01 Thread Strahinja Jankovic
This patch implements Allwinner A10 SPI controller emulation. Only master-mode functionality is implemented. Since U-Boot and Linux SPI drivers for Allwinner A10 perform only byte-wide CPU access (no DMA) to the transmit and receive registers of the peripheral, the emulated controller does not imp

Re: [PULL v2 16/47] hw/riscv: add RISC-V IOMMU base emulation

2024-10-01 Thread Daniel Henrique Barboza
On 10/1/24 7:14 PM, Tomasz Jeznach wrote: On Sun, Sep 29, 2024 at 8:46 AM Peter Maydell wrote: On Sat, 28 Sept 2024 at 22:01, Daniel Henrique Barboza wrote: On 9/28/24 5:22 PM, Peter Maydell wrote: On Tue, 24 Sept 2024 at 23:19, Alistair Francis wrote: +/* Register helper function

[PATCH v8 11/12] qtest/riscv-iommu-test: add init queues test

2024-10-01 Thread Daniel Henrique Barboza
Add an additional test to further exercise the IOMMU where we attempt to initialize the command, fault and page-request queues. These steps are taken from chapter 6.2 of the RISC-V IOMMU spec, "Guidelines for initialization". It emulates what we expect from the software/OS when initializing the IO

{PATCH] accel/tcg: Fix CPU specific unaligned behaviour

2024-10-01 Thread Helge Deller
When the emulated CPU reads or writes to a memory location a) for which no read/write permissions exists, *and* b) the access happens unaligned (non-natural alignment), then the CPU should either - trigger a permission fault, or - trigger an unalign access fault. In the current code the alignment

Re: [PULL v2 16/47] hw/riscv: add RISC-V IOMMU base emulation

2024-10-01 Thread Tomasz Jeznach
On Sun, Sep 29, 2024 at 8:46 AM Peter Maydell wrote: > > On Sat, 28 Sept 2024 at 22:01, Daniel Henrique Barboza > wrote: > > > > > > > > On 9/28/24 5:22 PM, Peter Maydell wrote: > > > On Tue, 24 Sept 2024 at 23:19, Alistair Francis > > > wrote: > > > >> +/* Register helper functions */ > > >> +

[PATCH v2 2/2] {hw/arm,docs/system/arm}: Add SPI to Allwinner A10

2024-10-01 Thread Strahinja Jankovic
The Allwinner A10 SPI controller is added to the Allwinner A10 description, so it is available when Cubieboard is emulated. Update the documentation for Cubieboard to indicate SPI availability. Signed-off-by: Strahinja Jankovic --- docs/system/arm/cubieboard.rst | 1 + hw/arm/Kconfig

[PATCH v2 0/2] Allwinner A10 SPI controller emulation

2024-10-01 Thread Strahinja Jankovic
This patch set introduces the SPI controller emulation for Allwinner A10 SoC and Cubieboard. Only master-mode functionality of the SPI controller is implemented. Since U-Boot and Linux SPI drivers for Allwinner A10 perform only byte-wide CPU access to the transmit and receive registers of the con

[PULL 16/54] hw/arm: Remove 'z2' machine

2024-10-01 Thread Peter Maydell
The 'z2' machine was deprecated in 9.0, so we can remove it for 9.2. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-13-peter.mayd...@linaro.org --- MAINTAINERS | 1 - configs/devices/arm-softmmu/default.mak | 1

[PULL 05/54] hw/ssi/xilinx_spips: Fix flash erase assert in dual parallel configuration

2024-10-01 Thread Peter Maydell
From: Shiva sagar Myana Ensure that the FIFO is checked for emptiness before popping data from it. Previously, the code directly popped the data from the FIFO without checking, which could cause an assertion failure: ../util/fifo8.c:67: fifo8_pop: Assertion `fifo->num > 0' failed. Signed-off-b

[PULL 06/54] hw: fix memory leak in IRQState allocation

2024-10-01 Thread Peter Maydell
From: Matheus Tavares Bernardino At e72a7f65c1 (hw: Move declaration of IRQState to header and add init function, 2024-06-29), we've changed qemu_allocate_irq() to use a combination of g_new() + object_initialize() instead of IRQ(object_new()). The latter sets obj->free, so that that the memory i

[PULL 20/54] hw/sd: Remove pxa2xx_mmci.c

2024-10-01 Thread Peter Maydell
Remove the pxa2xx-specific pxa2xx_mmci device. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-17-peter.mayd...@linaro.org --- include/hw/arm/pxa.h | 10 - hw/sd/pxa2xx_mmci.c | 594

[PULL 00/54] target-arm queue

2024-10-01 Thread Peter Maydell
: Merge tag 'pull-nvme-20241001' of https://gitlab.com/birkelund/qemu into staging (2024-10-01 11:34:07 +0100) are available in the Git repository at: https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20241001 for you to fetch cha

[PULL 21/54] hw/input: Remove pxa2xx_keypad

2024-10-01 Thread Peter Maydell
Remove the pxa2xx-specific pxa2xx_keypad device. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-18-peter.mayd...@linaro.org --- include/hw/arm/pxa.h | 12 -- hw/input/pxa2xx_keypad.c | 331 -

[PULL 33/54] hw/rtc: Remove twl92230 device

2024-10-01 Thread Peter Maydell
Remove the TWL92230 RTC device, which was used only by the n800 and n810. Signed-off-by: Peter Maydell Reviewed-by: Thomas Huth Message-id: 20240903160751.4100218-31-peter.mayd...@linaro.org --- MAINTAINERS| 1 - hw/rtc/twl92230.c | 882 -

[PULL 48/54] hw/ssi: Remove omap_mcspi

2024-10-01 Thread Peter Maydell
The omap_mcspi device is used only in the OMAP2 SoC, which we are removing. Signed-off-by: Peter Maydell Message-id: 20240903160751.4100218-48-peter.mayd...@linaro.org --- include/hw/arm/omap.h | 11 -- hw/ssi/omap_spi.c | 380 -- hw/ssi/meson.build

[PULL 04/54] target/arm: Avoid target_ulong for physical address lookups

2024-10-01 Thread Peter Maydell
From: Ard Biesheuvel target_ulong is typedef'ed as a 32-bit integer when building the qemu-system-arm target, and this is smaller than the size of an intermediate physical address when LPAE is being used. Given that Linux may place leaf level user page tables in high memory when built for LPAE,

[PULL 41/54] hw/char: Remove omap2_uart

2024-10-01 Thread Peter Maydell
Remove the OMAP2 specific code from omap_uart.c. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-40-peter.mayd...@linaro.org --- include/hw/arm/omap.h | 5 -- hw/char/omap_uart.c | 113 ---

[PULL 11/54] hw/arm/KConfig: Replace ZAURUS with ZAURUS_SCOOP

2024-10-01 Thread Peter Maydell
The ZAURUS KConfig symbol used to do multiple things: * pull in the tc6393xb display device * pull in the Zaurus SCOOP GPIO device * pull in hw/block/nand.c code * pull in hw/block/ecc.c code and was used by multiple machine types in the Zaurus family. Now that we've removed all the Zaurus mac

[PULL 28/54] hw/arm: Remove 'n800' and 'n810' machines

2024-10-01 Thread Peter Maydell
Remove the 'n800' and 'n810' machine types, which modelled Nokia internet tablets. These were deprecated in 9.0 and so we can remove them for 9.2. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-26-peter.mayd...@linaro.org [PMM: added removal o

[PULL 35/54] hw/block: Remove OneNAND device

2024-10-01 Thread Peter Maydell
The OneNAND devices were only used by n800/n810, so they can be removed now. Signed-off-by: Peter Maydell Reviewed-by: Thomas Huth Message-id: 20240903160751.4100218-33-peter.mayd...@linaro.org --- include/hw/block/flash.h | 3 - hw/block/onenand.c | 872

[PULL 39/54] hw/arm: Remove omap2.c

2024-10-01 Thread Peter Maydell
The users of the OMAP2 SoC emulation have been removed, so we can delete omap2.c. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-38-peter.mayd...@linaro.org --- include/hw/arm/omap.h |8 - hw/arm/omap2.c

[PULL 47/54] hw/timer: Remove omap_synctimer

2024-10-01 Thread Peter Maydell
Remove the omap_synctimer device, which is only in the OMAP2 SoC. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-46-peter.mayd...@linaro.org --- include/hw/arm/omap.h | 8 --- hw/timer/omap_synctimer.c

[PULL 18/54] hw/timer/pxa2xx_timer: Remove use of pxa.h header

2024-10-01 Thread Peter Maydell
pxa2xx_timer includes pxa.h, but it doesn't actually make use of any of the #defines, function prototypes or structs defined there. Remove the unnecessary include (we will shortly be removing the whole header file). Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Phil

[PULL 51/54] hw/misc: Remove omap_l4 device

2024-10-01 Thread Peter Maydell
The omap_l4 device is OMAP2 only, so we can remove it. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-51-peter.mayd...@linaro.org --- include/hw/arm/omap.h | 42 --- hw/misc/omap_l4.c | 162

[PULL 43/54] hw/sd: Remove omap2_mmc device

2024-10-01 Thread Peter Maydell
Remove the OMAP2 specific code from omap_mmc.c. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-42-peter.mayd...@linaro.org --- include/hw/arm/omap.h | 5 hw/sd/omap_mmc.c | 63

[PULL 17/54] hw/arm: Remove STRONGARM->PXA2XX dependency

2024-10-01 Thread Peter Maydell
Currently the STRONGARM KConfig symbol pulls in PXA2XX. Since we've now removed all the true uses of PXA2XX, we'd like to remove the PXA2XX symbol too. To permit that, make STRONGARM directly select the things it truly depends on: * pxa25x-timer * SSI Signed-off-by: Peter Maydell Reviewed-by: P

[PULL 46/54] hw/timer: Remove omap_gptimer

2024-10-01 Thread Peter Maydell
The omap_gptimer device is only in the OMAP2 SoC, which we are removing. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-45-peter.mayd...@linaro.org --- include/hw/arm/omap.h | 8 - hw/timer/omap_gptimer.

[PULL 37/54] hw/usb: Remove MUSB USB host controller

2024-10-01 Thread Peter Maydell
Remove the MUSB USB2.0 OTG-compliant USB host controller device model. This was only used by the tusb6010 USB controller in the n800/n810 machines. Signed-off-by: Peter Maydell Reviewed-by: Thomas Huth Message-id: 20240903160751.4100218-35-peter.mayd...@linaro.org --- include/hw/usb/hcd-musb.h

[PULL 32/54] hw/input: Remove tsc210x device

2024-10-01 Thread Peter Maydell
Remove the tsc210x touchscreen controller device, which was only used by the n800 and n810 and cheetah. The uWireSlave struct is still used in omap1.c (at least for compilation purposes -- nothing any longer calls omap_uwire_attach() and so the struct's members will not be used at runtime), so we

[PULL 12/54] hw/arm: Remove 'cheetah' machine

2024-10-01 Thread Peter Maydell
The 'cheetah' machine has been deprecated since 9.0, so we can remove it for the 9.2 release. (tsc210x.c is also used by nseries, so move its MAINTAINER file line there; the nseries boards are also about to be removed.) Signed-off-by: Peter Maydell Message-id: 20240903160751.4100218-9-peter.mayd

Re: [PATCH] hw/char/riscv_htif: Fix htif_mm_write that causes infinite loop in ACT.

2024-10-01 Thread Alistair Francis
On Fri, Sep 27, 2024 at 11:26 PM MingZhu Yan wrote: > > Applications sometimes only write the lower 32-bit payload bytes, this is used > in ACT tests. As a workaround, this refers to the solution of sail-riscv. I'm not sure what ACT is, but this feels like a guest bug, not a QEMU issue. Alistair

Re: [PULL 3/5] block/reqlist: allow adding overlapping requests

2024-10-01 Thread Michael Tokarev
30.09.2024 11:43, Vladimir Sementsov-Ogievskiy wrote: From: Fiona Ebner Allow overlapping request by removing the assert that made it impossible. There are only two callers: 1. block_copy_task_create() It already asserts the very same condition before calling reqlist_init_req(). 2. cbw_snaps

Re: [RFC 1/1] target/riscv: use a simplified loop to emulate rvv loads/stores only in user mode.

2024-10-01 Thread Daniel Henrique Barboza
Paolo, Usually we amend the existing patch with a new version instead of sending a new patch to amend a previous patch that got comments. I suggest you merge this change with your first patch here: https://patchew.org/QEMU/20240717153040.11073-1-paolo.sav...@embecosm.com/20240717153040.11073-2-

[PULL 44/54] hw/misc: Remove omap_sdrc device

2024-10-01 Thread Peter Maydell
The omap_sdrc device is only in OMAP2, which we are removing. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-43-peter.mayd...@linaro.org --- include/hw/arm/omap.h | 7 -- hw/misc/omap_sdrc.c | 167 --

[PULL 19/54] hw/arm: Remove pxa2xx.c

2024-10-01 Thread Peter Maydell
All the callers of pxa270_init() and pxa255_init() have now been removed, so we can remove pxa2xx.c. This also removes the only uses of a lot of pxa2xx specific devices, which will be removed in subsequent commits. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Phili

[PULL 50/54] hw/display: Remove omap_dss

2024-10-01 Thread Peter Maydell
The omap_dss device is OMAP2 only, and we are removing it. Signed-off-by: Peter Maydell Message-id: 20240903160751.4100218-50-peter.mayd...@linaro.org --- include/hw/arm/omap.h | 19 - hw/display/omap_dss.c | 1093 hw/display/meson.build |1 - 3 f

[PULL 49/54] hw/misc: Remove omap_tap device

2024-10-01 Thread Peter Maydell
The omap_tap device is OMAP2 only, and we are removing it. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-49-peter.mayd...@linaro.org --- include/hw/arm/omap.h | 3 -- hw/misc/omap_tap.c| 117 -

[PULL 01/54] MAINTAINERS: Update STM32L4x5 and B-L475E-IOT01A maintainers

2024-10-01 Thread Peter Maydell
From: Inès Varhol It has been a learning experience to contribute to QEMU for our end-of-studies project. For a few months now, Arnaud and I aren't actively involved anymore as we lack time and access to the hardware. Therefore it's high time to update the maintainers file: from now on, Samuel Ta

[PULL 10/54] hw/display: Remove tc6393xb device

2024-10-01 Thread Peter Maydell
The tc6393xb was used only by the XScale-based Zaurus machine types. Now they have been removed we can remove this device too. Signed-off-by: Peter Maydell Message-id: 20240903160751.4100218-7-peter.mayd...@linaro.org --- MAINTAINERS | 2 - include/hw/display/tc6393xb.h | 21

[PULL 38/54] docs: Document removal of old Arm boards

2024-10-01 Thread Peter Maydell
Now we have removed all the board types that it covers, we can move the text about old Arm boards from deprecated.rst to removed-features.rst, tweaking it appropriately. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-37-peter.mayd...@linaro.or

[PULL 30/54] hw/display: Remove Blizzard display device

2024-10-01 Thread Peter Maydell
Remove the blizzard display device, which was only used with the n800 and n810 machines. Signed-off-by: Peter Maydell Reviewed-by: Thomas Huth Message-id: 20240903160751.4100218-28-peter.mayd...@linaro.org --- MAINTAINERS |2 - include/hw/display/blizzard.h | 21 - hw/di

[PULL 03/54] m25p80: Add SFDP table for mt35xu01g flash

2024-10-01 Thread Peter Maydell
From: Shiva sagar Myana Add the SFDP table for the Micron Xccela mt35xu01g flash. Signed-off-by: Shiva sagar Myana Reviewed-by: Francisco Iglesias Message-id: 20240829120117.616861-1-shivasagar.my...@amd.com Signed-off-by: Peter Maydell --- hw/block/m25p80_sfdp.h | 1 + hw/block/m25p80.c

[PULL 52/54] hw/misc/omap_clk: Remove OMAP2-specifics

2024-10-01 Thread Peter Maydell
Remove the handling for all non-OMAP1 SoCs. Signed-off-by: Peter Maydell Message-id: 20240903160751.4100218-52-peter.mayd...@linaro.org --- hw/misc/omap_clk.c | 527 + 1 file changed, 2 insertions(+), 525 deletions(-) diff --git a/hw/misc/omap_clk.c b

[PULL 23/54] hw/dma: Remove pxa2xx_dma

2024-10-01 Thread Peter Maydell
Remove the pxa2xx-specific pxa2xx_dma device. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-20-peter.mayd...@linaro.org --- include/hw/arm/pxa.h | 4 - hw/dma/pxa2xx_dma.c | 591 --- hw/dma/meson.bu

[PULL 29/54] hw/misc: Remove cbus

2024-10-01 Thread Peter Maydell
The devices in hw/misc/cbus.c were used only by the now-removed nseries machine types, so they can be removed. As this is the last use of the CONFIG_NSERIES define we can remove that from KConfig now. Signed-off-by: Peter Maydell Message-id: 20240903160751.4100218-27-peter.mayd...@linaro.org ---

[PULL 13/54] hw/arm: Remove 'connex' and 'verdex' machines

2024-10-01 Thread Peter Maydell
The connex and verdex machines have been deprecated since 9.0 and so can be removed for the 9.2 release. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-10-peter.mayd...@linaro.org --- MAINTAINERS

[PULL 54/54] hw: Remove omap2 specific defines and enums

2024-10-01 Thread Peter Maydell
Remove some defines and enums that are OMAP2 specific and no longer used anywhere. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-54-peter.mayd...@linaro.org --- include/hw/arm/omap.h | 207 -

[PULL 24/54] hw/pcmcia: Remove pxa2xx pcmcia device

2024-10-01 Thread Peter Maydell
Remove the pxa2xx specific pcmcia device. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-21-peter.mayd...@linaro.org --- include/hw/arm/pxa.h | 8 -- hw/pcmcia/pxa2xx.c| 248 -- hw/pcmcia/meson.b

Re: [PATCH v9 1/2] linux-user: add openat2 support in linux-user

2024-10-01 Thread Laurent Vivier
Le 01/10/2024 à 17:14, Michael Vogt a écrit : This commit adds support for the `openat2()` syscall in the `linux-user` userspace emulator. It is implemented by extracting a new helper `maybe_do_fake_open()` out of the exiting `do_guest_openat()` and share that with the new `do_guest_openat2()`.

Re: [PATCH v4] testing: bump mips64el cross to bookworm and allow to fail

2024-10-01 Thread Alex Bennée
Thomas Huth writes: Sorry to mention it but now the subject needs tweaking... -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: what is the right way for an avocado test to do "wait for text that doesn't end in newline" ?

2024-10-01 Thread Daniel P . Berrangé
On Tue, Oct 01, 2024 at 01:43:47PM +0100, Peter Maydell wrote: > One common thing to want to do in an avocado test is log into > the guest. The obvious way to do that would seem to be: > > self.wait_for_console_pattern('login:') > exec_command(self, 'root') > self.wait_f

Re: what is the right way for an avocado test to do "wait for text that doesn't end in newline" ?

2024-10-01 Thread Alex Bennée
Peter Maydell writes: > One common thing to want to do in an avocado test is log into > the guest. The obvious way to do that would seem to be: > > self.wait_for_console_pattern('login:') > exec_command(self, 'root') > self.wait_for_console_pattern('Password:') >

Re: More than 255 vcpus Windows VM setup without viommu ?

2024-10-01 Thread David Woodhouse
On Tue, 2024-10-01 at 14:33 +0100, Daniel P. Berrangé wrote: > > > It looks like when interrupt remapping is enabled with an AMD CPU, > > Windows *assumes* it can generate AMD-style MSI messages even if the > > IOMMU is an Intel one. If we put a little hack into the IOMMU interrupt > > remapping t

Re: [PATCH 03/13] target/arm/ptw: Use the ld/st_endian_p() API

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: Refactor to use the recently introduced ld/st_endian_p() API No logical change intended. Signed-off-by: Philippe Mathieu-Daudé --- target/arm/ptw.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/target/

[PULL 45/54] hw/misc: Remove omap_gpmc

2024-10-01 Thread Peter Maydell
The omap_gpmc device is only in OMAP2, which we are removing. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-44-peter.mayd...@linaro.org --- include/hw/arm/omap.h | 11 - hw/misc/omap_gpmc.c | 898 ---

[PULL 02/54] hw/arm/xlnx: Connect secondary CGEM IRQs

2024-10-01 Thread Peter Maydell
From: Kinsey Moore The Cadence GEM peripherals as configured for Zynq MPSoC and Versal platforms have two priority queues with separate interrupt sources for each. If the interrupt source for the second priority queue is not connected, they work in polling mode only. This change connects the seco

[PULL 22/54] hw/display: Remove pxa2xx_lcd.c

2024-10-01 Thread Peter Maydell
Remove the pxa2xx-specific pxa2xx_lcd device. Signed-off-by: Peter Maydell Message-id: 20240903160751.4100218-19-peter.mayd...@linaro.org --- include/hw/arm/pxa.h|6 - hw/display/pxa2xx_lcd.c | 1451 --- hw/display/meson.build |1 - 3 files change

Re: [PATCH 02/13] hw/virtio/virtio-access: Use the ld/st_endian_p() API

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: Refactor to use the recently introduced ld/st_endian_p() API No logical change intended. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/virtio/virtio-access.h | 36 ++- 1 file changed, 6 insertions(+), 30 delet

[PULL 26/54] hw/arm: Remove pxa2xx_pic

2024-10-01 Thread Peter Maydell
Remove the pxa2xx-specific interrupt controller device. As this is the last user of the pxa.h header file and the CONFIG_PXA2XX define we can remove those too. This completes the removal of the pxa2xx specific code. We leave: * pxa2xx_timer -- still used by the Collie board (strongarm) * the de

[PULL 08/54] hw/arm: Remove deprecated akita, borzoi, spitz, terrier, tosa boards

2024-10-01 Thread Peter Maydell
The Sharp XScale-based PDA board models akita, borzoi, spitz, terrier, and tosa were all deprecated in 9.0, so our deprecation cycle permits removing them for the 9.2 release. Remove the source files for the board models themselves, and their documentation. There were no tests for these boards. W

Re: [PATCH 04/13] hw/mips: Pass BlCpuCfg argument to bootloader API

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: In preparation to pass endianness and target word size to the bootloader API, introduce an empty BlCpuCfg structure and propagate it to the MIPS bootloader methods. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/mips/bootloader.h | 17 +++

[PULL 40/54] hw/gpio: Remove TYPE_OMAP2_GPIO

2024-10-01 Thread Peter Maydell
We've removed the OMAP2 SoC, so we can remove the OMAP2 GPIO device. (The source file remains, as it also has the model of the OMAP1 GPIO device.) Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-39-peter.mayd.

[PULL 07/54] hw/sd/sdcard: Fix handling of disabled boot partitions

2024-10-01 Thread Peter Maydell
From: Jan Luebbe The enable bits in the EXT_CSD_PART_CONFIG ext_csd register do *not* specify whether the boot partitions exist, but whether they are enabled for booting. Existence of the boot partitions is specified by a EXT_CSD_BOOT_MULT != 0. Currently, in the case of boot-partition-size=1M a

[PULL 34/54] hw/input: Remove lm832x device

2024-10-01 Thread Peter Maydell
Remove the lm832x keyboard-and-pwm i2c device model. This was only used by the n800 and n810 machines. (Although this is an i2c device and so in theory available to create on the command line, in practice it has an outbound IRQ line that the machine model needs to wire up, and the only way to inje

[PULL 27/54] hw/timer: Remove pxa27x-timer

2024-10-01 Thread Peter Maydell
The pxa27x-timer can be removed now we have removed the PXA2xx SoC models. The pxa25x-timer device must remain as it is still used by strongarm. Signed-off-by: Peter Maydell Message-id: 20240903160751.4100218-24-peter.mayd...@linaro.org --- hw/timer/pxa2xx_timer.c | 24

Re: [PATCH 01/13] qemu/bswap: Introduce ld/st_endian_p() API

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: Introduce the ld/st_endian_p() API, which takes an extra boolean argument to dispatch to ld/st_{be,le}_p() methods. Signed-off-by: Philippe Mathieu-Daudé --- TODO: Update docstring regexp --- include/qemu/bswap.h | 19 +++ 1 fil

[PULL 09/54] hw/input: Drop ADS7846 device

2024-10-01 Thread Peter Maydell
The ADS7846 touchscreen controller device was used only by the XScale-based PDA machine types. Now that they have been removed, this device is not used in the tree and can be deleted. Signed-off-by: Peter Maydell Reviewed-by: Thomas Huth Message-id: 20240903160751.4100218-3-peter.mayd...@linaro.

[PULL 36/54] hw/usb: Remove tusb6010 USB controller

2024-10-01 Thread Peter Maydell
The tusb6010 was only used by the n800/n810 machines, so it can be removed now. Signed-off-by: Peter Maydell Reviewed-by: Thomas Huth Message-id: 20240903160751.4100218-34-peter.mayd...@linaro.org --- hw/usb/tusb6010.c | 850 - hw/usb/Kconfig |

[PULL 42/54] hw/intc: Remove omap2-intc device

2024-10-01 Thread Peter Maydell
Remove the OMAP2 specific code from omap_intc.c. Signed-off-by: Peter Maydell Message-id: 20240903160751.4100218-41-peter.mayd...@linaro.org --- hw/intc/omap_intc.c | 276 1 file changed, 276 deletions(-) diff --git a/hw/intc/omap_intc.c b/hw/intc/om

[PULL 31/54] hw/input: Remove tsc2005 touchscreen controller

2024-10-01 Thread Peter Maydell
Remove the tsc2005 touchscreen controller, which was only used by the n800 and n810 machines. Signed-off-by: Peter Maydell Reviewed-by: Thomas Huth Message-id: 20240903160751.4100218-29-peter.mayd...@linaro.org --- MAINTAINERS| 1 - include/hw/input/tsc2xxx.h | 5 - hw/input

[PULL 53/54] hw/dma: Remove omap_dma4 device

2024-10-01 Thread Peter Maydell
The omap_dma4 device was only used in the OMAP2 SoC, which has been removed. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-53-peter.mayd...@linaro.org --- include/hw/arm/omap.h | 1 - hw/dma/omap_dma.c

Re: [PATCH 07/13] hw/xtensa/xtfpga: Remove TARGET_BIG_ENDIAN #ifdef'ry

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: Move code evaluation from preprocessor to compiler so both if() ladders are processed. Mostly style change. Signed-off-by: Philippe Mathieu-Daudé --- hw/xtensa/xtfpga.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --

[PULL 15/54] hw/misc: Remove MAINSTONE_FPGA device

2024-10-01 Thread Peter Maydell
The MAINSTONE_FPGA device was used only by the 'mainstone' machine type, so we can remove it now. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-12-peter.mayd...@linaro.org --- MAINTAINERS | 1 - hw/misc/mst_fpga.c | 269 --

[PULL 25/54] hw/arm: Remove pxa2xx_gpio

2024-10-01 Thread Peter Maydell
Remove the pxa2xx-specific GPIO device. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-22-peter.mayd...@linaro.org --- include/hw/arm/pxa.h | 5 - hw/arm/pxa2xx_gpio.c | 365 --- hw/arm/meson.build

Re: [PATCH 05/13] hw/mips: Add cpu_is_bigendian field to BlCpuCfg structure

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: Add the BlCpuCfg::cpu_is_bigendian field, initialize it in machine code. Bootloader API use the ld/st_endian_p() to dispatch to target endianness. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/mips/bootloader.h | 1 + hw/mips/bootloader

Re: [PATCH 06/13] tests/tcg/plugins: Use the ld/st_endian_p() API

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: Refactor to use the recently introduced ld/st_endian_p() API No logical change intended. Signed-off-by: Philippe Mathieu-Daudé --- tests/tcg/plugins/mem.c | 24 ++-- 1 file changed, 6 insertions(+), 18 deletions(-) diff --g

Re: [PATCH 10/13] hw/virtio/virtio-access: Use ld/st_endian_phys() API

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: Refactor to use the recently introduced ld/st_endian_phys() API. No logical change intended. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/virtio/virtio-access.h | 27 +-- 1 file changed, 5 insertions(+), 22 delet

[PULL 14/54] hw/arm: Remove 'mainstone' machine

2024-10-01 Thread Peter Maydell
The 'mainstone' machine has been deprecated since 9.0, and so we can remove it for the 9.2 release. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Message-id: 20240903160751.4100218-11-peter.mayd...@linaro.org --- MAINTAINERS | 2 - docs/system/ar

Re: [PATCH 09/13] exec/memory_ldst_phys: Introduce ld/st_endian_phys() API

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: Introduce the ld/st_endian_phys() API, which takes an extra boolean argument to dispatch to ld/st_{be,le}_phys() methods. Signed-off-by: Philippe Mathieu-Daudé --- TODO: Update docstring regexp --- include/exec/memory_ldst_phys.h.inc | 66 ++

Re: [PATCH 11/13] hw/pci/pci_device: Add PCI_DMA_DEFINE_LDST_END() macro

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: Define both endianness variants with a single macro. Useful to add yet other endian specific definitions in the next commit. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/pci/pci_device.h | 13 +++-- 1 file changed, 7 insertion

Re: [PATCH 12/13] hw/pci/pci_device: Introduce ld/st_endian_pci_dma() API

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: Introduce the ld/st_endian_pci_dma() API, which takes an extra boolean argument to dispatch to ld/st_{be,le}_pci_dma() methods. Signed-off-by: Philippe Mathieu-Daudé --- TODO: Update docstring regexp --- include/hw/pci/pci_device.h | 24

Re: [PATCH] tests/functional: Switch back to the gitlab URLs for the advent calendar tests

2024-10-01 Thread Daniel P . Berrangé
On Tue, Oct 01, 2024 at 03:09:29PM +0300, Manos Pitsidianakis wrote: > On Tue, Oct 1, 2024, 12:14 PM Thomas Huth wrote: > > > On 01/10/2024 10.50, Manos Pitsidianakis wrote: > > > Hello Thomas, > > > > > > On Mon, 30 Sep 2024 20:18, Thomas Huth wrote: > > >> Shortly after we switched to the orig

Re: [PATCH 13/13] hw/net/tulip: Use ld/st_endian_pci_dma() API

2024-10-01 Thread Pierrick Bouvier
On 9/30/24 00:34, Philippe Mathieu-Daudé wrote: Refactor to use the recently introduced ld/st_endian_pci_dma() API. No logical change intended. Signed-off-by: Philippe Mathieu-Daudé --- hw/net/tulip.c | 32 ++-- 1 file changed, 10 insertions(+), 22 deletions(-) d

Re: [PATCH v1 07/14] s390x/s390-hypercall: introduce DIAG500 STORAGE_LIMIT

2024-10-01 Thread Christian Borntraeger
Am 30.09.24 um 14:57 schrieb Halil Pasic: On Mon, 30 Sep 2024 13:11:31 +0200 Christian Borntraeger wrote: We do have kvm_stat counters for 500, not sure if people debugging virtio will care. Could end up being confusing, as currently we can assume each and every DIAG 500 is a virtio doorbell

Re: [PATCH v7 0/5] AWS Nitro Enclave emulation support

2024-10-01 Thread Michael S. Tsirkin
On Sun, Sep 22, 2024 at 03:44:36PM +0600, Dorjoy Chowdhury wrote: > [7] https://lists.oasis-open.org/archives/virtio-comment/202310/msg00387.html That list is dead, would you mind reposting to the new list, so we can vote on it? Thanks! -- MST

[PATCH v2 03/11] ppc/spapr: remove deprecated machine pseries-2.3

2024-10-01 Thread Harsh Prateek Bora
Commit 1392617d3576 intended to tag pseries-2.1 - 2.11 machines as deprecated with reasons mentioned in its commit log. Removing pseries-2.3 specific code with this patch for now. Suggested-by: Cédric Le Goater Signed-off-by: Harsh Prateek Bora --- hw/ppc/spapr.c | 15 --- 1 file ch

Re: Minimum sphinx version?

2024-10-01 Thread Daniel P . Berrangé
On Tue, Oct 01, 2024 at 10:28:50AM +0200, Paolo Bonzini wrote: > On 9/30/24 19:16, John Snow wrote: > > The current reality is that Sphinx 3.4.3 is our minimum because RHEL 9 > > offers that as the distro package and I have not dared bump our version > > beyond that for fear of disrupting our abili

Re: More than 255 vcpus Windows VM setup without viommu ?

2024-10-01 Thread Daniel P . Berrangé
On Sat, Sep 28, 2024 at 03:59:32PM +0100, David Woodhouse wrote: > On Tue, 2024-07-02 at 05:17 +, Sandesh Patel wrote: > > > > The error is due to invalid MSIX routing entry passed to KVM. > > > > The VM boots fine if we attach a vIOMMU but adding a vIOMMU can > > potentially result in IO per

Re: [PATCH v3 00/22] -Werror=maybe-uninitialized fixes

2024-10-01 Thread Marc-André Lureau
Hi On Mon, Sep 30, 2024 at 12:15 PM wrote: > > From: Marc-André Lureau > > Hi, > > Depending on -Doptimization=, GCC (14.2.1 here) produces different > maybe-uninitialized warnings: > - g: produces -Werror=maybe-uninitialized errors > - 0: clean build > - 1: produces -Werror=maybe-uninitialized

[PATCH v2 1/1] hw/ssi/xilinx_spips: Fix flash erase assert in dual parallel configuration

2024-10-01 Thread Shiva sagar Myana
Ensure that the FIFO is checked for emptiness before popping data from it. Previously, the code directly popped the data from the FIFO without checking, which could cause an assertion failure: ../util/fifo8.c:67: fifo8_pop: Assertion `fifo->num > 0 Signed-off-by: Shiva sagar Myana Reviewed-by: F

[PATCH v2] testing: bump mips64el cross to bookworm and allow to fail

2024-10-01 Thread Thomas Huth
From: Alex Bennée The mips64el cross setup is very broken for bullseye which has now entered LTS support so is unlikely to be fixed. While we still can't build the container for bookworm due to a single missing dependency that will hopefully get fixed in due course. For the sake of keeping the CI

Re: [PATCH 06/12] target/mips: Explode MO_TExx -> MO_TE | MO_xx

2024-10-01 Thread Philippe Mathieu-Daudé
On Mon, Sep 30, 2024 at 11:12 AM Philippe Mathieu-Daudé wrote: > > Extract the implicit MO_TE definition in order to replace > it by runtime variable in the next commit. > > Mechanical change using: > > $ for n in UW UL UQ UO SW SL SQ; do \ > sed -i -e "s/MO_TE$n/MO_TE | MO_$n/" \ >

[PULL 1/5] hw/nvme: report id controller metadata sgl support

2024-10-01 Thread Klaus Jensen
From: Keith Busch The controller already supports this decoding, so just set the ID_CTRL.SGLS field accordingly. Signed-off-by: Keith Busch Reviewed-by: Klaus Jensen Signed-off-by: Klaus Jensen --- hw/nvme/ctrl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/nvme/c

[PATCH v7 2/8] hw/gpio/aspeed: Support to set the different memory size

2024-10-01 Thread Jamin Lin via
According to the datasheet of ASPEED SOCs, a GPIO controller owns 4KB of register space for AST2700, AST2500, AST2400 and AST1030; owns 2KB of register space for AST2600 1.8v and owns 2KB of register space for AST2600 3.3v. It set the memory region size 2KB by default and it does not compatible re

[PULL 2/5] hw/nvme: clear masked events from the aer queue

2024-10-01 Thread Klaus Jensen
From: Arun Kumar Clear masked events from the aer queue when get log page is issued with RAE 0 without checking for the presence of outstanding aer requests. Signed-off-by: Arun Kumar [k.jensen: remove unnecessary QTAILQ_EMPTY check] Signed-off-by: Klaus Jensen --- hw/nvme/ctrl.c | 11 +++

Re: [PATCH 01/23] hw/ppc/e500: Do not leak struct boot_info

2024-10-01 Thread Bernhard Beschow
Am 26. September 2024 00:14:04 UTC schrieb BALATON Zoltan : >On Wed, 25 Sep 2024, Cédric Le Goater wrote: >> On 9/23/24 11:29, Bernhard Beschow wrote: >>> The struct is allocated once with g_new0() but never free()'d. Fix the >>> leakage >>> by adding an attribute to struct PPCE500MachineState

[PATCH v2 09/11] ppc/spapr: remove deprecated machine pseries-2.9

2024-10-01 Thread Harsh Prateek Bora
Commit 1392617d3576 intended to tag pseries-2.1 - 2.11 machines as deprecated with reasons mentioned in its commit log. Removing pseries-2.9 specific code with this patch for now. Suggested-by: Cédric Le Goater Signed-off-by: Harsh Prateek Bora --- target/ppc/cpu.h | 1 - hw/ppc/spapr.c

Re: [PATCH v3 21/22] qom/object: fix -Werror=maybe-uninitialized

2024-10-01 Thread Vladimir Sementsov-Ogievskiy
On 30.09.24 11:14, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau object_resolve_path_type() didn't always set *ambiguousp. Signed-off-by: Marc-André Lureau --- qom/object.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qom/object.c b/qom/object.c inde

[PATCH v2 00/11] ppc/spapr: remove deprecated machines specific code

2024-10-01 Thread Harsh Prateek Bora
Commit 1392617d3576 intended to tag pseries-2.1 - 2.11 machines as deprecated with reasons mentioned in its commit log. Removing the arch specific code for the now deprecated machine types. v2: Addressed review comments from Cedric v1: <20240917060300.943496-1-hars...@linux.ibm.com> Harsh Pratee

  1   2   3   >