[PULL 00/23] Misc HW patches for 2025-10-28

Philippe Mathieu-Daudé posted 23 patches 2 weeks, 3 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251028074901.22062-1-philmd@linaro.org
Maintainers: "Gonglei (Arei)" <arei.gonglei@huawei.com>, Zhenwei Pi <pizhenwei@bytedance.com>, Richard Henderson <richard.henderson@linaro.org>, Peter Maydell <peter.maydell@linaro.org>, Antony Pavlov <antonynpavlov@gmail.com>, Rob Herring <robh@kernel.org>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Alberto Garcia <berto@igalia.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Stefano Stabellini <sstabellini@kernel.org>, Anthony PERARD <anthony@xenproject.org>, Paul Durrant <paul@xen.org>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Alistair Francis <alistair@alistair23.me>, "Alex Bennée" <alex.bennee@linaro.org>, "Daniel P. Berrangé" <berrange@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, Helge Deller <deller@gmx.de>, "Michael S. Tsirkin" <mst@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Corey Minyard <minyard@acm.org>, Song Gao <gaosong@loongson.cn>, Bibo Mao <maobibo@loongson.cn>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Thomas Huth <huth@tuxfamily.org>, Laurent Vivier <laurent@vivier.eu>, Paul Burton <paulburton@kernel.org>, Aleksandar Rikalo <arikalo@gmail.com>, Huacai Chen <chenhuacai@kernel.org>, "Hervé Poussineau" <hpoussin@reactos.org>, Aurelien Jarno <aurelien@aurel32.net>, Bernhard Beschow <shentey@gmail.com>, Jason Wang <jasowang@redhat.com>, Stafford Horne <shorne@gmail.com>, BALATON Zoltan <balaton@eik.bme.hu>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Nicholas Piggin <npiggin@gmail.com>, Harsh Prateek Bora <harshpb@linux.ibm.com>, Aditya Gupta <adityag@linux.ibm.com>, Glenn Miles <milesg@linux.ibm.com>, Palmer Dabbelt <palmer@dabbelt.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Yoshinori Sato <yoshinori.sato@nifty.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Jared Rossi <jrossi@linux.ibm.com>, Zhuoying Cai <zycai@linux.ibm.com>, David Hildenbrand <david@redhat.com>, Ilya Leoshkevich <iii@linux.ibm.com>, Halil Pasic <pasic@linux.ibm.com>, Eric Farman <farman@linux.ibm.com>, Matthew Rosato <mjrosato@linux.ibm.com>, Magnus Damm <magnus.damm@gmail.com>, Igor Mammedov <imammedo@redhat.com>, Ani Sinha <anisinha@redhat.com>, "Clément Chigot" <chigot@adacore.com>, Frederic Konrad <konrad.frederic@yahoo.fr>, Artyom Tarasenko <atar4qemu@gmail.com>, Max Filippov <jcmvbkbc@gmail.com>, Yi Liu <yi.l.liu@intel.com>, "Clément Mathieu--Drif" <clement.mathieu--drif@eviden.com>, Tyrone Ting <kfting@nuvoton.com>, Hao Wu <wuhaotsh@google.com>, Fam Zheng <fam@euphon.net>, Gerd Hoffmann <kraxel@redhat.com>, Alex Williamson <alex@shazbot.org>, "Cédric Le Goater" <clg@redhat.com>, Amit Shah <amit@kernel.org>, Peter Xu <peterx@redhat.com>, Fabiano Rosas <farosas@suse.de>, Pavel Pisa <pisa@cmp.felk.cvut.cz>, Francisco Iglesias <francisco.iglesias@amd.com>, Vikram Garhwal <vikram.garhwal@bytedance.com>, David Gibson <david@gibson.dropbear.id.au>
hw/net/fsl_etsec/etsec.h                  |   1 -
include/hw/char/serial.h                  |   1 -
include/hw/i386/intel_iommu.h             |   1 -
include/hw/input/lasips2.h                |   6 +-
include/hw/intc/loongarch_dintc.h         |   2 +-
include/hw/intc/loongarch_extioi_common.h |   1 +
include/hw/intc/loongarch_pch_msi.h       |   1 +
include/hw/intc/loongarch_pic_common.h    |   1 +
include/hw/intc/loongson_ipi_common.h     |   1 +
include/hw/loader.h                       |   8 +-
include/hw/misc/auxbus.h                  |   7 +-
include/hw/misc/bcm2835_mphi.h            |   7 +-
include/hw/misc/npcm7xx_pwm.h             |   7 +-
include/hw/pci-host/pnv_phb3.h            |   6 +-
include/hw/pci-host/pnv_phb4.h            |   8 +-
include/hw/ppc/mac_dbdma.h                |   7 +-
include/hw/qdev-core.h                    |   3 +-
include/hw/riscv/boot.h                   |  18 ++--
include/hw/riscv/boot_opensbi.h           |  14 +--
include/hw/riscv/iommu.h                  |   3 -
include/hw/scsi/scsi.h                    |   7 +-
include/hw/sysbus.h                       |  10 +--
include/hw/uefi/var-service.h             |   1 +
include/hw/vfio/vfio-container-legacy.h   |   5 +-
include/hw/virtio/virtio-net.h            |   2 +-
include/hw/virtio/virtio-serial.h         |   5 +-
include/migration/vmstate.h               |   9 --
include/net/can_emu.h                     |   7 +-
backends/cryptodev-lkcf.c                 |   1 -
hw/alpha/dp264.c                          |   4 +-
hw/arm/armv7m.c                           |   2 +-
hw/arm/boot.c                             |   5 +-
hw/arm/digic_boards.c                     |   2 +-
hw/arm/highbank.c                         |   3 +-
hw/arm/raspi.c                            |   2 +-
hw/arm/vexpress.c                         |   2 +-
hw/char/ipoctal232.c                      |   9 +-
hw/char/xen_console.c                     |   1 -
hw/core/generic-loader.c                  |   5 +-
hw/core/gpio.c                            |   3 +-
hw/core/guest-loader.c                    |   4 +-
hw/core/loader.c                          |  42 ++++++---
hw/core/sysbus.c                          |  10 +--
hw/dma/pl330.c                            |   6 +-
hw/hppa/machine.c                         |   5 +-
hw/i386/multiboot.c                       |   2 +-
hw/i386/x86-common.c                      |   4 +-
hw/ipmi/ipmi_bmc_sim.c                    |   2 +-
hw/loongarch/boot.c                       |   5 +-
hw/m68k/an5206.c                          |   2 +-
hw/m68k/mcf5208.c                         |   4 +-
hw/m68k/next-cube.c                       |   2 +-
hw/m68k/q800.c                            |   7 +-
hw/m68k/virt.c                            |   4 +-
hw/microblaze/boot.c                      |   5 +-
hw/mips/boston.c                          |   2 +-
hw/mips/fuloong2e.c                       |   9 +-
hw/mips/jazz.c                            |   2 +-
hw/mips/loongson3_virt.c                  |  10 ++-
hw/mips/malta.c                           |   9 +-
hw/net/virtio-net.c                       |   9 +-
hw/net/xen_nic.c                          |   2 -
hw/nubus/nubus-device.c                   |   2 +-
hw/nvram/ds1225y.c                        |   2 +-
hw/openrisc/boot.c                        |   5 +-
hw/pci-host/bonito.c                      |   7 +-
hw/pci-host/raven.c                       | 105 +++++++---------------
hw/pci/pci.c                              |   2 +-
hw/ppc/amigaone.c                         |  13 +--
hw/ppc/e500.c                             |  20 +----
hw/ppc/mac_newworld.c                     |  19 ++--
hw/ppc/mac_oldworld.c                     |  19 ++--
hw/ppc/pef.c                              |   1 -
hw/ppc/pegasos2.c                         |  10 +--
hw/ppc/pnv.c                              |  27 ++----
hw/ppc/ppc440_bamboo.c                    |   9 +-
hw/ppc/prep.c                             |  19 ++--
hw/ppc/sam460ex.c                         |   8 +-
hw/ppc/spapr.c                            |  17 +---
hw/ppc/virtex_ml507.c                     |  11 +--
hw/riscv/boot.c                           |  49 +++++-----
hw/riscv/microchip_pfsoc.c                |   2 +-
hw/riscv/sifive_u.c                       |   2 +-
hw/riscv/spike.c                          |   4 +-
hw/riscv/virt.c                           |   2 +-
hw/rx/rx-gdbsim.c                         |   2 +-
hw/s390x/ipl.c                            |   8 +-
hw/sh4/r2d.c                              |   8 +-
hw/smbios/smbios.c                        |   2 +-
hw/sparc/leon3.c                          |   4 +-
hw/sparc/sun4m.c                          |   8 +-
hw/sparc64/sun4u.c                        |   7 +-
hw/usb/dev-mtp.c                          |   7 +-
hw/usb/dev-uas.c                          |   7 +-
hw/xtensa/xtfpga.c                        |   3 +-
system/device_tree.c                      |   2 +-
target/hppa/fpu_helper.c                  |   7 +-
97 files changed, 321 insertions(+), 434 deletions(-)
[PULL 00/23] Misc HW patches for 2025-10-28
Posted by Philippe Mathieu-Daudé 2 weeks, 3 days ago
The following changes since commit 36076d24f04ea9dc3357c0fbe7bb14917375819c:

  Merge tag 'next-pr-pull-request' of https://gitlab.com/berrange/qemu into staging (2025-10-25 10:42:55 +0200)

are available in the Git repository at:

  https://github.com/philmd/qemu.git tags/hw-misc-20251028

for you to fetch changes up to 7dbe2d7df094aa8af2d8fcdf08fccce70b1ca5bc:

  hw/riscv: Widen OpenSBI dynamic info struct (2025-10-28 08:19:18 +0100)

----------------------------------------------------------------
Misc HW patches

Various fixes and cleanups:
- Set FPCR exception flag bits for HPPA non-trapped exceptions
- Convert VirtIONet::vlans from pointer to array
  and remove VMSTATE_BUFFER_POINTER_UNSAFE()
- Remove redundant QOM typedef when OBJECT_DECLARE_SIMPLE_TYPE() is used
- Have various QDev / SysBus helpers take a const device argument
- Improve errors when loaders parse images
- Remove IntelIOMMUState::dma_translation leftover
- Remove most target_[u]long uses in hw/riscv/
- Fix DS1225Y MemoryRegion owner
- Simplification refactors on Raven PCI Host Bridge
----------------------------------------------------------------

Akihiko Odaki (1):
  nw/nvram/ds1225y: Fix nvram MemoryRegion owner

Anton Johansson (2):
  hw/riscv: Use generic hwaddr for firmware addresses
  hw/riscv: Widen OpenSBI dynamic info struct

BALATON Zoltan (5):
  hw/pci-host/raven: Simplify creating PCI facing part
  hw/pci-host/raven: Simplify PCI facing part
  hw/pci-host/raven: Simplify host bridge type declaration
  hw/pci-host/raven: Use DEFINE_TYPES macro
  hw/pci-host/raven: Simplify PCI bus creation

Clément Mathieu--Drif (1):
  hw/i386/intel_iommu: Remove an unused state field

Michael Tokarev (2):
  hw/net/virtio-net: make VirtIONet.vlans an array instead of a pointer
  migration/vmstate: remove VMSTATE_BUFFER_POINTER_UNSAFE macro

Nguyen Dinh Phi (1):
  qom: remove redundant typedef when use OBJECT_DECLARE_SIMPLE_TYPE

Peter Maydell (1):
  target/hppa: Set FPCR exception flag bits for non-trapped exceptions

Philippe Mathieu-Daudé (4):
  hw/qdev: Have qdev_get_gpio_out_connector() take const DeviceState arg
  hw/sysbus: Have various helpers take a const SysBusDevice argument
  hw/uefi: Include missing 'system/memory.h' header
  hw/int/loongarch: Include missing 'system/memory.h' header

Vishal Chourasia (6):
  hw/core/loader: Use qemu_open() instead of open() in get_image_size()
  hw/core/loader: capture Error from load_image_targphys
  hw/core/loader: improve error handling in image loading functions
  hw/core/loader: add check for zero size in load_image_targphys_as
  hw/core/loader: Pass errp to load_image_targphys_as()
  hw/ppc: Pass error_fatal to load_image_targphys()

 hw/net/fsl_etsec/etsec.h                  |   1 -
 include/hw/char/serial.h                  |   1 -
 include/hw/i386/intel_iommu.h             |   1 -
 include/hw/input/lasips2.h                |   6 +-
 include/hw/intc/loongarch_dintc.h         |   2 +-
 include/hw/intc/loongarch_extioi_common.h |   1 +
 include/hw/intc/loongarch_pch_msi.h       |   1 +
 include/hw/intc/loongarch_pic_common.h    |   1 +
 include/hw/intc/loongson_ipi_common.h     |   1 +
 include/hw/loader.h                       |   8 +-
 include/hw/misc/auxbus.h                  |   7 +-
 include/hw/misc/bcm2835_mphi.h            |   7 +-
 include/hw/misc/npcm7xx_pwm.h             |   7 +-
 include/hw/pci-host/pnv_phb3.h            |   6 +-
 include/hw/pci-host/pnv_phb4.h            |   8 +-
 include/hw/ppc/mac_dbdma.h                |   7 +-
 include/hw/qdev-core.h                    |   3 +-
 include/hw/riscv/boot.h                   |  18 ++--
 include/hw/riscv/boot_opensbi.h           |  14 +--
 include/hw/riscv/iommu.h                  |   3 -
 include/hw/scsi/scsi.h                    |   7 +-
 include/hw/sysbus.h                       |  10 +--
 include/hw/uefi/var-service.h             |   1 +
 include/hw/vfio/vfio-container-legacy.h   |   5 +-
 include/hw/virtio/virtio-net.h            |   2 +-
 include/hw/virtio/virtio-serial.h         |   5 +-
 include/migration/vmstate.h               |   9 --
 include/net/can_emu.h                     |   7 +-
 backends/cryptodev-lkcf.c                 |   1 -
 hw/alpha/dp264.c                          |   4 +-
 hw/arm/armv7m.c                           |   2 +-
 hw/arm/boot.c                             |   5 +-
 hw/arm/digic_boards.c                     |   2 +-
 hw/arm/highbank.c                         |   3 +-
 hw/arm/raspi.c                            |   2 +-
 hw/arm/vexpress.c                         |   2 +-
 hw/char/ipoctal232.c                      |   9 +-
 hw/char/xen_console.c                     |   1 -
 hw/core/generic-loader.c                  |   5 +-
 hw/core/gpio.c                            |   3 +-
 hw/core/guest-loader.c                    |   4 +-
 hw/core/loader.c                          |  42 ++++++---
 hw/core/sysbus.c                          |  10 +--
 hw/dma/pl330.c                            |   6 +-
 hw/hppa/machine.c                         |   5 +-
 hw/i386/multiboot.c                       |   2 +-
 hw/i386/x86-common.c                      |   4 +-
 hw/ipmi/ipmi_bmc_sim.c                    |   2 +-
 hw/loongarch/boot.c                       |   5 +-
 hw/m68k/an5206.c                          |   2 +-
 hw/m68k/mcf5208.c                         |   4 +-
 hw/m68k/next-cube.c                       |   2 +-
 hw/m68k/q800.c                            |   7 +-
 hw/m68k/virt.c                            |   4 +-
 hw/microblaze/boot.c                      |   5 +-
 hw/mips/boston.c                          |   2 +-
 hw/mips/fuloong2e.c                       |   9 +-
 hw/mips/jazz.c                            |   2 +-
 hw/mips/loongson3_virt.c                  |  10 ++-
 hw/mips/malta.c                           |   9 +-
 hw/net/virtio-net.c                       |   9 +-
 hw/net/xen_nic.c                          |   2 -
 hw/nubus/nubus-device.c                   |   2 +-
 hw/nvram/ds1225y.c                        |   2 +-
 hw/openrisc/boot.c                        |   5 +-
 hw/pci-host/bonito.c                      |   7 +-
 hw/pci-host/raven.c                       | 105 +++++++---------------
 hw/pci/pci.c                              |   2 +-
 hw/ppc/amigaone.c                         |  13 +--
 hw/ppc/e500.c                             |  20 +----
 hw/ppc/mac_newworld.c                     |  19 ++--
 hw/ppc/mac_oldworld.c                     |  19 ++--
 hw/ppc/pef.c                              |   1 -
 hw/ppc/pegasos2.c                         |  10 +--
 hw/ppc/pnv.c                              |  27 ++----
 hw/ppc/ppc440_bamboo.c                    |   9 +-
 hw/ppc/prep.c                             |  19 ++--
 hw/ppc/sam460ex.c                         |   8 +-
 hw/ppc/spapr.c                            |  17 +---
 hw/ppc/virtex_ml507.c                     |  11 +--
 hw/riscv/boot.c                           |  49 +++++-----
 hw/riscv/microchip_pfsoc.c                |   2 +-
 hw/riscv/sifive_u.c                       |   2 +-
 hw/riscv/spike.c                          |   4 +-
 hw/riscv/virt.c                           |   2 +-
 hw/rx/rx-gdbsim.c                         |   2 +-
 hw/s390x/ipl.c                            |   8 +-
 hw/sh4/r2d.c                              |   8 +-
 hw/smbios/smbios.c                        |   2 +-
 hw/sparc/leon3.c                          |   4 +-
 hw/sparc/sun4m.c                          |   8 +-
 hw/sparc64/sun4u.c                        |   7 +-
 hw/usb/dev-mtp.c                          |   7 +-
 hw/usb/dev-uas.c                          |   7 +-
 hw/xtensa/xtfpga.c                        |   3 +-
 system/device_tree.c                      |   2 +-
 target/hppa/fpu_helper.c                  |   7 +-
 97 files changed, 321 insertions(+), 434 deletions(-)

-- 
2.51.0


Re: [PULL 00/23] Misc HW patches for 2025-10-28
Posted by Richard Henderson 2 weeks, 3 days ago
On 10/28/25 08:48, Philippe Mathieu-Daudé wrote:
> The following changes since commit 36076d24f04ea9dc3357c0fbe7bb14917375819c:
> 
>    Merge tag 'next-pr-pull-request' ofhttps://gitlab.com/berrange/qemu into staging (2025-10-25 10:42:55 +0200)
> 
> are available in the Git repository at:
> 
>    https://github.com/philmd/qemu.git tags/hw-misc-20251028
> 
> for you to fetch changes up to 7dbe2d7df094aa8af2d8fcdf08fccce70b1ca5bc:
> 
>    hw/riscv: Widen OpenSBI dynamic info struct (2025-10-28 08:19:18 +0100)
> 
> ----------------------------------------------------------------
> Misc HW patches
> 
> Various fixes and cleanups:
> - Set FPCR exception flag bits for HPPA non-trapped exceptions
> - ConvertVirtIONet::vlans from pointer to array
>    and remove VMSTATE_BUFFER_POINTER_UNSAFE()
> - Remove redundant QOM typedef when OBJECT_DECLARE_SIMPLE_TYPE() is used
> - Have various QDev / SysBus helpers take a const device argument
> - Improve errors when loaders parse images
> - RemoveIntelIOMMUState::dma_translation leftover
> - Remove most target_[u]long uses in hw/riscv/
> - Fix DS1225Y MemoryRegion owner
> - Simplification refactors on Raven PCI Host Bridge
> ----------------------------------------------------------------

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/10.2 as appropriate.

r~