[PULL 00/49] Misc HW patches for 2026-03-09

Philippe Mathieu-Daudé posted 49 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260309155219.62400-1-philmd@linaro.org
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Christian Schoenebeck <qemu_oss@crudebyte.com>, Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>, Viktor Prutyanov <viktor.prutyanov@phystech.edu>, "Michael S. Tsirkin" <mst@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Aurelien Jarno <aurelien@aurel32.net>, Igor Mammedov <imammedo@redhat.com>, Ani Sinha <anisinha@redhat.com>, Manos Pitsidianakis <manos.pitsidianakis@linaro.org>, Eduardo Habkost <eduardo@habkost.net>, Yanan Wang <wangyanan55@huawei.com>, Zhao Liu <zhao1.liu@intel.com>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Corey Minyard <cminyard@mvista.com>, Jason Wang <jasowang@redhat.com>, Yi Liu <yi.l.liu@intel.com>, "Clément Mathieu--Drif" <clement.mathieu--drif@bull.com>, Richard Henderson <richard.henderson@linaro.org>, Sergio Lopez <slp@redhat.com>, Alexander Graf <graf@amazon.com>, Dorjoy Chowdhury <dorjoychy111@gmail.com>, Joe Komlodi <komlodi@google.com>, "Cédric Le Goater" <clg@kaod.org>, Jamin Lin <jamin_lin@aspeedtech.com>, Nabih Estefan <nabihestefan@google.com>, Alistair Francis <Alistair.Francis@wdc.com>, Palmer Dabbelt <palmer@dabbelt.com>, Tyrone Ting <kfting@nuvoton.com>, Hao Wu <wuhaotsh@google.com>, Peter Maydell <peter.maydell@linaro.org>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Artyom Tarasenko <atar4qemu@gmail.com>, Alex Williamson <alex@shazbot.org>, David Hildenbrand <david@kernel.org>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>, Markus Armbruster <armbru@redhat.com>, Michael Roth <michael.roth@amd.com>
meson.build                              |   1 +
hw/display/ati_int.h                     |  12 +
hw/display/ati_regs.h                    |  13 +
include/hw/audio/virtio-snd.h            |   4 +-
include/hw/core/boards.h                 |   7 -
include/hw/core/qdev.h                   |  39 ++
include/hw/i2c/pm_smbus.h                |   7 -
include/hw/i386/intel_iommu.h            |   1 -
include/hw/i386/microvm.h                |   2 +-
include/hw/i386/pc.h                     |   9 -
include/hw/i386/x86.h                    |   3 +-
include/hw/misc/sifive_e_aon.h           |   2 +-
include/hw/net/npcm_gmac.h               |   3 +-
include/hw/pci/pcie_port.h               |   3 -
include/hw/rtc/pl031.h                   |   1 -
include/hw/virtio/virtio-balloon.h       |   1 -
target/i386/cpu.h                        |   3 -
contrib/elf2dmp/main.c                   |  32 +-
hw/acpi/piix4.c                          |   8 +-
hw/audio/virtio-snd.c                    |  55 ++-
hw/core/machine.c                        |  29 --
hw/core/qdev.c                           |   4 +-
hw/display/ati.c                         |  38 +-
hw/display/ati_2d.c                      | 443 ++++++++++++++++-------
hw/display/ati_dbg.c                     |   9 +
hw/i2c/pm_smbus.c                        |   7 -
hw/i2c/smbus_eeprom.c                    |   4 +-
hw/i2c/smbus_ich9.c                      |  10 +-
hw/i386/intel_iommu.c                    |  11 +-
hw/i386/microvm.c                        |   2 +-
hw/i386/nitro_enclave.c                  |   4 +-
hw/i386/pc.c                             |  34 +-
hw/i386/pc_piix.c                        |  36 --
hw/i386/pc_q35.c                         |  39 --
hw/i386/x86-common.c                     |   6 +-
hw/i3c/dw-i3c.c                          |   6 +-
hw/misc/riscv_cpc.c                      |   8 +
hw/misc/sifive_e_aon.c                   |  16 +-
hw/net/npcm_gmac.c                       |  14 +
hw/pci-bridge/pcie_root_port.c           |   3 +-
hw/rtc/pl031.c                           |  22 --
hw/sparc/sun4m.c                         |  34 +-
hw/timer/hpet.c                          |   9 +-
hw/timer/slavio_timer.c                  |  25 +-
hw/vfio/pci.c                            |   2 +-
hw/virtio/virtio-balloon.c               |   5 -
hw/virtio/virtio.c                       |  12 +-
net/passt.c                              |  17 +-
target/i386/cpu.c                        |  10 +-
tests/qtest/dbus-display-test.c          |   9 +
tests/unit/test-qobject-input-visitor.c  |   8 +-
tests/unit/test-qobject-output-visitor.c |   7 +-
ui/dbus-listener.c                       |  11 +-
audio/coreaudio.m                        |  24 +-
rust/hw/timer/hpet/src/device.rs         |   9 +-
55 files changed, 617 insertions(+), 516 deletions(-)
[PULL 00/49] Misc HW patches for 2026-03-09
Posted by Philippe Mathieu-Daudé 1 month ago
The following changes since commit 7608a95d2e0bd8c8d069ab77824d02586dd94648:

  Merge tag 'pull-xen-20260309' of https://xenbits.xen.org/git-http/people/aperard/qemu-dm into staging (2026-03-09 12:15:42 +0000)

are available in the Git repository at:

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

for you to fetch changes up to caa5d8257037201f4e546ec833e51863ae07b331:

  hw/misc/riscv_cpc: Free CPU array in instance_finalize (2026-03-09 16:45:25 +0100)

Ignoring following checkpatch errors:

  17/48 Checking commit b362f63b6016 (tests: fix leaks in dbus-display-test)
  WARNING: line over 80 characters
  #44: FILE: tests/qtest/dbus-display-test.c:137:
  +    qemu_dbus_display1_listener_unix_map_complete_scanout_map(object, invocation,

  35/48 Checking commit 6d5eb13974b3 (ati-vga: Remove src and dst stride mutation in ati_2d_blt)
  WARNING: line over 80 characters
  #38: FILE: hw/display/ati_2d.c:129:
  +        DPRINTF("pixman_blt(%p, %p, %ld, %ld, %d, %d, %d, %d, %d, %d, %d, %d)\n",

Couldn't test well mingw-w64-clang-x86_64 because of issues with the
OSU Open Source Lab mirror:

  error: failed retrieving file 'mingw-w64-clang-x86_64-libwinpthread-13.0.0.r560.g3197fc7d6-1-any.pkg.tar.zst.sig' from ftp2.osuosl.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds

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

- Remove versioned machines released in QEMU 3.1 and 4.0
- Enable X.Org text rendering on ATI VGA model
- Various memory leaks / overflows fixed
- Build using -Wformat-overflow=2 CPPFLAG
----------------------------------------------------------------

Akihiko Odaki (6):
  coreaudio: Remove unnecessary explicit casts
  coreaudio: Remove extra whitespaces
  contrib/elf2dmp: Grow PDB URL buffer
  vfio/pci: Grow buffer in vfio_pci_host_match()
  tests: Clean up double comparisons to avoid compiler warning
  meson: Add -Wformat-overflow=2

BALATON Zoltan (2):
  ati-vga: Simplify hw cursor drawing
  ati-vga: Do not access pixel outside the screen

Chad Jablonski (9):
  ati-vga: Remove src and dst stride mutation in ati_2d_blt
  ati-vga: Use local variables for register values in ati_2d_blt
  ati-vga: Introduce ATI2DCtx struct for 2D blit context
  ati-vga: Extract setup_2d_blt_ctx from ati_2d_blt
  ati-vga: Split ati_2d_do_blt from ati_2d_blt
  ati-vga: Remove ATIVGAState param from ati_2d_do_blt
  ati-vga: Implement scissor rectangle clipping for 2D operations
  ati-vga: Implement HOST_DATA register writes
  ati-vga: Implement HOST_DATA flush to VRAM

Cédric Le Goater (1):
  hw/i3c/dw-i3c: Fix memory leaks in error logging paths

Marc-André Lureau (4):
  tests: fix leaks in dbus-display-test
  ui/dbus: fix leak regression
  ui/dbus: fix Unix.Map proxy leak
  ui/dbus: fix pixman cleanup

Peter Foley (2):
  net/passt: Only kill passt if it wrote a pidfile
  net/passt: Don't try to read the pidfile if passt got a signal

Peter Maydell (8):
  hw/net/npcm_gmac: Catch accesses off the end of the register array
  hw/sparc/sun4m: Don't set up dummy cpu interrupts
  hw/sparc/sun4m: Use qdev GPIOs rather than qemu_allocate_irqs()
  hw/timer/slavio_timer: Free resources allocated in instance_init
  hw/qdev: Document qdev_get_dev_path()
  hw: Make qdev_get_printable_name() consistently return freeable string
  hw/misc/sifive_e_aon: Don't leak timer
  hw/misc/riscv_cpc: Free CPU array in instance_finalize

Philippe Mathieu-Daudé (15):
  hw/timer/hpet: Remove HPETState::hpet_offset_saved field
  hw/i386/pc: Remove deprecated pc-q35/pc-i440fx/xenfv 3.1 machines
  hw/i386/pc: Remove PCMachineClass::pvh_enabled field
  hw/i386/x86: Remove @pvh_enabled argument in x86_load_linux()
  hw/core/boards: Remove MachineClass::smbus_no_migration_support field
  hw/i386/pc: Remove pc_compat_3_1[] array
  hw/i386/iommu: Remove IntelIOMMUState::dma_drain field
  target/i386/cpu: Remove X86CPU::intel_pt_auto_level field
  hw/core/machine: Remove the hw_compat_3_1[] array
  hw/pci-bridge/pcie_rp: Remove PCIESlot::disable_acs field
  hw/i386/pc: Remove deprecated pc-q35-4.0[.1] and pc-i440fx-4.0
    machines
  hw/i386/pc: Remove pc_compat_4_0[] array
  hw/core/machine: Remove the hw_compat_4_0[] array
  hw/virtio: Remove VirtIOBalloon::qemu_4_0_config_size field
  hw/rtc/pl031: : Remove PL031State::migrate_tick_offset field

Roman Kiryanov (2):
  virtio-snd: remove a redundant memory allocation
  virtio-snd: remove redundant fields

 meson.build                              |   1 +
 hw/display/ati_int.h                     |  12 +
 hw/display/ati_regs.h                    |  13 +
 include/hw/audio/virtio-snd.h            |   4 +-
 include/hw/core/boards.h                 |   7 -
 include/hw/core/qdev.h                   |  39 ++
 include/hw/i2c/pm_smbus.h                |   7 -
 include/hw/i386/intel_iommu.h            |   1 -
 include/hw/i386/microvm.h                |   2 +-
 include/hw/i386/pc.h                     |   9 -
 include/hw/i386/x86.h                    |   3 +-
 include/hw/misc/sifive_e_aon.h           |   2 +-
 include/hw/net/npcm_gmac.h               |   3 +-
 include/hw/pci/pcie_port.h               |   3 -
 include/hw/rtc/pl031.h                   |   1 -
 include/hw/virtio/virtio-balloon.h       |   1 -
 target/i386/cpu.h                        |   3 -
 contrib/elf2dmp/main.c                   |  32 +-
 hw/acpi/piix4.c                          |   8 +-
 hw/audio/virtio-snd.c                    |  55 ++-
 hw/core/machine.c                        |  29 --
 hw/core/qdev.c                           |   4 +-
 hw/display/ati.c                         |  38 +-
 hw/display/ati_2d.c                      | 443 ++++++++++++++++-------
 hw/display/ati_dbg.c                     |   9 +
 hw/i2c/pm_smbus.c                        |   7 -
 hw/i2c/smbus_eeprom.c                    |   4 +-
 hw/i2c/smbus_ich9.c                      |  10 +-
 hw/i386/intel_iommu.c                    |  11 +-
 hw/i386/microvm.c                        |   2 +-
 hw/i386/nitro_enclave.c                  |   4 +-
 hw/i386/pc.c                             |  34 +-
 hw/i386/pc_piix.c                        |  36 --
 hw/i386/pc_q35.c                         |  39 --
 hw/i386/x86-common.c                     |   6 +-
 hw/i3c/dw-i3c.c                          |   6 +-
 hw/misc/riscv_cpc.c                      |   8 +
 hw/misc/sifive_e_aon.c                   |  16 +-
 hw/net/npcm_gmac.c                       |  14 +
 hw/pci-bridge/pcie_root_port.c           |   3 +-
 hw/rtc/pl031.c                           |  22 --
 hw/sparc/sun4m.c                         |  34 +-
 hw/timer/hpet.c                          |   9 +-
 hw/timer/slavio_timer.c                  |  25 +-
 hw/vfio/pci.c                            |   2 +-
 hw/virtio/virtio-balloon.c               |   5 -
 hw/virtio/virtio.c                       |  12 +-
 net/passt.c                              |  17 +-
 target/i386/cpu.c                        |  10 +-
 tests/qtest/dbus-display-test.c          |   9 +
 tests/unit/test-qobject-input-visitor.c  |   8 +-
 tests/unit/test-qobject-output-visitor.c |   7 +-
 ui/dbus-listener.c                       |  11 +-
 audio/coreaudio.m                        |  24 +-
 rust/hw/timer/hpet/src/device.rs         |   9 +-
 55 files changed, 617 insertions(+), 516 deletions(-)

-- 
2.53.0


Re: [PULL 00/49] Misc HW patches for 2026-03-09
Posted by Peter Maydell 1 month ago
On Mon, 9 Mar 2026 at 15:52, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> The following changes since commit 7608a95d2e0bd8c8d069ab77824d02586dd94648:
>
>   Merge tag 'pull-xen-20260309' of https://xenbits.xen.org/git-http/people/aperard/qemu-dm into staging (2026-03-09 12:15:42 +0000)
>
> are available in the Git repository at:
>
>   https://github.com/philmd/qemu.git tags/hw-misc-20260309
>
> for you to fetch changes up to caa5d8257037201f4e546ec833e51863ae07b331:
>
>   hw/misc/riscv_cpc: Free CPU array in instance_finalize (2026-03-09 16:45:25 +0100)
>
> Ignoring following checkpatch errors:
>
>   17/48 Checking commit b362f63b6016 (tests: fix leaks in dbus-display-test)
>   WARNING: line over 80 characters
>   #44: FILE: tests/qtest/dbus-display-test.c:137:
>   +    qemu_dbus_display1_listener_unix_map_complete_scanout_map(object, invocation,
>
>   35/48 Checking commit 6d5eb13974b3 (ati-vga: Remove src and dst stride mutation in ati_2d_blt)
>   WARNING: line over 80 characters
>   #38: FILE: hw/display/ati_2d.c:129:
>   +        DPRINTF("pixman_blt(%p, %p, %ld, %ld, %d, %d, %d, %d, %d, %d, %d, %d)\n",
>
> Couldn't test well mingw-w64-clang-x86_64 because of issues with the
> OSU Open Source Lab mirror:
>
>   error: failed retrieving file 'mingw-w64-clang-x86_64-libwinpthread-13.0.0.r560.g3197fc7d6-1-any.pkg.tar.zst.sig' from ftp2.osuosl.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
>
> ----------------------------------------------------------------
> Misc HW patches
>
> - Remove versioned machines released in QEMU 3.1 and 4.0
> - Enable X.Org text rendering on ATI VGA model
> - Various memory leaks / overflows fixed
> - Build using -Wformat-overflow=2 CPPFLAG
> ----------------------------------------------------------------



Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/11.0
for any user-visible changes.

-- PMM