[PULL 00/45] Misc HW patches for 2025-10-21

Philippe Mathieu-Daudé posted 45 patches 3 weeks, 2 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251021204700.56072-1-philmd@linaro.org
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, Gerd Hoffmann <kraxel@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Yanan Wang <wangyanan55@huawei.com>, Zhao Liu <zhao1.liu@intel.com>, Alistair Francis <alistair@alistair23.me>, Corey Minyard <cminyard@mvista.com>, "Michael S. Tsirkin" <mst@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, John Snow <jsnow@redhat.com>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Peter Maydell <peter.maydell@linaro.org>, Francisco Iglesias <francisco.iglesias@amd.com>, Vikram Garhwal <vikram.garhwal@bytedance.com>, Pavel Pisa <pisa@cmp.felk.cvut.cz>, Jason Wang <jasowang@redhat.com>, Jia Liu <proljc@gmail.com>, Stafford Horne <shorne@gmail.com>, "Hervé Poussineau" <hpoussin@reactos.org>, Bernhard Beschow <shentey@gmail.com>, Nicholas Piggin <npiggin@gmail.com>, Harsh Prateek Bora <harshpb@linux.ibm.com>, David Hildenbrand <david@redhat.com>, Stefano Stabellini <sstabellini@kernel.org>, Anthony PERARD <anthony@xenproject.org>, Paul Durrant <paul@xen.org>, Pierrick Bouvier <pierrick.bouvier@linaro.org>, Cameron Esfahani <dirty@apple.com>, Roman Bolshakov <rbolshakov@ddn.com>, Phil Dennis-Jordan <phil@philjordan.eu>, Marcelo Tosatti <mtosatti@redhat.com>, Sunil Muthuswamy <sunilmut@microsoft.com>, Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>
MAINTAINERS                            |   1 +
docs/qdev-device-use.txt               |  10 +-
hw/ide/ide-internal.h                  |   2 +-
include/hw/audio/soundhw.h             |   2 +-
include/hw/boards.h                    |  60 +++-
include/hw/i386/apic.h                 |  37 ++-
include/hw/i386/apic_internal.h        |   7 +-
include/hw/misc/xlnx-versal-crl.h      |   1 -
include/hw/misc/xlnx-versal-xramc.h    |   1 -
include/hw/misc/xlnx-zynqmp-apu-ctrl.h |   1 -
include/hw/misc/xlnx-zynqmp-crf.h      |   1 -
include/hw/net/xlnx-versal-canfd.h     |   8 -
include/hw/nvram/xlnx-bbram.h          |   1 -
include/hw/register.h                  |  25 +-
include/hw/timer/i8254.h               |   4 +-
include/qemu/target-info-impl.h        |   1 +
target/i386/cpu.h                      |   5 +-
target/i386/kvm/kvm_i386.h             |   2 +-
target/i386/whpx/whpx-internal.h       |   4 +-
hw/audio/ac97.c                        | 124 +++----
hw/audio/adlib.c                       |  24 +-
hw/audio/cs4231a.c                     |  44 +--
hw/audio/es1370.c                      |  24 +-
hw/audio/gus.c                         |  25 +-
hw/audio/pcspk.c                       |  29 +-
hw/audio/sb16.c                        | 115 ++++---
hw/audio/soundhw.c                     |  21 +-
hw/core/machine-qmp-cmds.c             |   4 +-
hw/core/machine.c                      |  38 +++
hw/core/register.c                     |  38 +--
hw/i2c/smbus_eeprom.c                  |   1 +
hw/i386/kvm/apic.c                     |   3 +-
hw/i386/vapic.c                        |   2 +-
hw/i386/x86-cpu.c                      |   2 +-
hw/ide/ahci.c                          |   8 +-
hw/ide/core.c                          |  10 +-
hw/intc/apic.c                         | 126 +++----
hw/intc/apic_common.c                  |  56 ++--
hw/misc/xlnx-versal-crl.c              |  38 +--
hw/misc/xlnx-versal-trng.c             |   1 -
hw/misc/xlnx-versal-xramc.c            |  12 +-
hw/misc/xlnx-zynqmp-apu-ctrl.c         |  12 +-
hw/misc/xlnx-zynqmp-crf.c              |  12 +-
hw/net/can/xlnx-versal-canfd.c         | 433 +++++++++----------------
hw/nvram/xlnx-bbram.c                  |  13 +-
hw/nvram/xlnx-versal-efuse-ctrl.c      |   1 -
hw/nvram/xlnx-zynqmp-efuse.c           |   8 -
hw/openrisc/openrisc_sim.c             |   3 +-
hw/pci-host/raven.c                    |  40 +--
hw/ppc/e500.c                          |   6 +-
hw/ppc/prep.c                          |  17 +-
hw/ppc/spapr.c                         |  16 +-
hw/rtc/mc146818rtc.c                   |  20 +-
hw/timer/i8254.c                       |   6 +
hw/timer/i8254_common.c                |   6 +-
hw/virtio/virtio-mem.c                 | 100 +++---
hw/xen/xen_pt_msi.c                    |   1 +
monitor/qemu-config-qmp.c              |   3 +-
system/qdev-monitor.c                  |   4 +-
system/vl.c                            |   7 +-
target/i386/cpu-apic.c                 |  18 +-
target/i386/cpu-dump.c                 |   2 +-
target/i386/cpu.c                      |   2 +-
target/i386/hvf/hvf.c                  |   4 +-
target/i386/kvm/kvm.c                  |   2 +-
target/i386/tcg/system/misc_helper.c   |   4 +-
target/i386/whpx/whpx-apic.c           |   3 +-
tests/qtest/ds1338-test.c              |  12 +-
hw/audio/trace-events                  |   4 +
hw/rtc/trace-events                    |   4 +
hw/timer/trace-events                  |   4 +
hw/virtio/meson.build                  |   2 +-
72 files changed, 760 insertions(+), 927 deletions(-)
[PULL 00/45] Misc HW patches for 2025-10-21
Posted by Philippe Mathieu-Daudé 3 weeks, 2 days ago
The following changes since commit 3c0b42c68f98fb276fa248012642be8cbf2cab70:

  Merge tag 'pull-request-2025-10-21' of https://gitlab.com/thuth/qemu into staging (2025-10-21 08:59:35 -0500)

are available in the Git repository at:

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

for you to fetch changes up to 3365d7da6156d7db990490f6cae2dc89950ac920:

  docs: Update mentions of removed '-soundhw' command line option (2025-10-21 22:33:49 +0200)

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

- Replace compile-time checks by runtime ones to build virtio-mem.c once
- Cleanups in Raven PCI host bridge, audio and PC devices
- Allow machine dynamic registration of valid CPU types
- Introduce DEFINE_MACHINE_WITH_INTERFACE[_ARRAY]() macros
- Set DDR2 minimum write recovery time in EEPROM SPD
- Have PPCe500 machines abort gracefully when using invalid CPU
- Prevent buffer overflow in openrisc_sim_init()
- Pass PCI domain to Xen xc_physdev_map_pirq_msi()
- Fix register API leaks
- Simplify Xilinx CANFD model
- Unconditionally create System I/O on PReP machine
- Update documentation around '-soundhw' command line option

Various "WARNING: line over 80 characters" ignored.

----------------------------------------------------------------

BALATON Zoltan (6):
  hw/pci-host/raven: Simplify direct config access address decoding
  hw/pci-host/raven: Rename direct config access ops
  hw/pci-host/raven: Use correct parameter in direct access ops
  hw/boards: Extend DEFINE_MACHINE macro to cover more use cases
  hw/i2c/smbus_eeprom: Add minimum write recovery time for DDR2
  hw/ppc/prep: Always create prep-systemio

Bernhard Beschow (10):
  hw/timer/i8254: Add I/O trace events
  hw/audio/pcspk: Add I/O trace events
  hw/rtc/mc146818rtc: Convert CMOS_DPRINTF() into trace events
  hw/rtc/mc146818rtc: Use ARRAY_SIZE macro
  hw/rtc/mc146818rtc: Assert correct usage of
    mc146818rtc_set_cmos_data()
  hw/ide/ide-internal: Move dma_buf_commit() into ide "namespace"
  hw/i386/apic: Prefer APICCommonState over DeviceState
  hw/i386/apic: Ensure own APIC use in apic_msr_{read,write}
  hw/intc/apic: Pass APICCommonState to apic_register_{read,write}
  tests/qtest/ds1338-test: Reuse from_bcd()

Jan Kiszka (1):
  hw/openrisc/openrisc_sim: Avoid buffer overflow build error

Luc Michel (6):
  hw/core/register: remove the REGISTER device type
  hw/core/register: add the REGISTER_ARRAY type
  hw/core/register: remove the calls to `register_finalize_block'
  hw/core/register: remove the `register_finalize_block' function
  hw/net/can/xlnx-versal-canfd: refactor the banked registers logic
  hw/net/can/xlnx-versal-canfd: remove register API usage for banked
    regs

Marc-André Lureau (8):
  hw/audio: improve error reports
  hw/audio: rename model list function
  hw/audio: remove global pcspk
  hw/pcspk: use explicitly the required PIT types
  hw/pcspk: make 'pit' a class property
  hw/pcspk: check the "pit" is set
  hw/audio: replace AUD_log() usage
  docs: update -soundhw -> -device list

Philippe Mathieu-Daudé (10):
  hw/virtio/virtio-mem: Convert VIRTIO_MEM_USABLE_EXTENT to runtime
  hw/virtio/virtio-mem: Convert VIRTIO_MEM_HAS_LEGACY_GUESTS to runtime
  hw/virtio: Compile virtio-mem.c once
  hw/core: Filter machine list available for a particular target binary
  hw/core/machine: Allow dynamic registration of valid CPU types
  hw/core: Introduce MachineClass::get_default_cpu_type() helper
  hw/boards: Move DEFINE_MACHINE() definition closer to its doc string
  hw/boards: Introduce DEFINE_MACHINE_WITH_INTERFACE_ARRAY() macro
  qemu/target-info: Include missing 'qapi-types-common.h' header
  docs: Update mentions of removed '-soundhw' command line option

Roger Pau Monné (1):
  hw/xen: pass PCI domain to xc_physdev_map_pirq_msi()

Thomas Huth (2):
  hw/ppc/e500: Check for compatible CPU type instead of aborting
    ungracefully
  MAINTAINERS: Add missing machine name in the Alpha section

Vishal Chourasia (1):
  hw/ppc/spapr: Rename resize_hpt_err to errp

 MAINTAINERS                            |   1 +
 docs/qdev-device-use.txt               |  10 +-
 hw/ide/ide-internal.h                  |   2 +-
 include/hw/audio/soundhw.h             |   2 +-
 include/hw/boards.h                    |  60 +++-
 include/hw/i386/apic.h                 |  37 ++-
 include/hw/i386/apic_internal.h        |   7 +-
 include/hw/misc/xlnx-versal-crl.h      |   1 -
 include/hw/misc/xlnx-versal-xramc.h    |   1 -
 include/hw/misc/xlnx-zynqmp-apu-ctrl.h |   1 -
 include/hw/misc/xlnx-zynqmp-crf.h      |   1 -
 include/hw/net/xlnx-versal-canfd.h     |   8 -
 include/hw/nvram/xlnx-bbram.h          |   1 -
 include/hw/register.h                  |  25 +-
 include/hw/timer/i8254.h               |   4 +-
 include/qemu/target-info-impl.h        |   1 +
 target/i386/cpu.h                      |   5 +-
 target/i386/kvm/kvm_i386.h             |   2 +-
 target/i386/whpx/whpx-internal.h       |   4 +-
 hw/audio/ac97.c                        | 124 +++----
 hw/audio/adlib.c                       |  24 +-
 hw/audio/cs4231a.c                     |  44 +--
 hw/audio/es1370.c                      |  24 +-
 hw/audio/gus.c                         |  25 +-
 hw/audio/pcspk.c                       |  29 +-
 hw/audio/sb16.c                        | 115 ++++---
 hw/audio/soundhw.c                     |  21 +-
 hw/core/machine-qmp-cmds.c             |   4 +-
 hw/core/machine.c                      |  38 +++
 hw/core/register.c                     |  38 +--
 hw/i2c/smbus_eeprom.c                  |   1 +
 hw/i386/kvm/apic.c                     |   3 +-
 hw/i386/vapic.c                        |   2 +-
 hw/i386/x86-cpu.c                      |   2 +-
 hw/ide/ahci.c                          |   8 +-
 hw/ide/core.c                          |  10 +-
 hw/intc/apic.c                         | 126 +++----
 hw/intc/apic_common.c                  |  56 ++--
 hw/misc/xlnx-versal-crl.c              |  38 +--
 hw/misc/xlnx-versal-trng.c             |   1 -
 hw/misc/xlnx-versal-xramc.c            |  12 +-
 hw/misc/xlnx-zynqmp-apu-ctrl.c         |  12 +-
 hw/misc/xlnx-zynqmp-crf.c              |  12 +-
 hw/net/can/xlnx-versal-canfd.c         | 433 +++++++++----------------
 hw/nvram/xlnx-bbram.c                  |  13 +-
 hw/nvram/xlnx-versal-efuse-ctrl.c      |   1 -
 hw/nvram/xlnx-zynqmp-efuse.c           |   8 -
 hw/openrisc/openrisc_sim.c             |   3 +-
 hw/pci-host/raven.c                    |  40 +--
 hw/ppc/e500.c                          |   6 +-
 hw/ppc/prep.c                          |  17 +-
 hw/ppc/spapr.c                         |  16 +-
 hw/rtc/mc146818rtc.c                   |  20 +-
 hw/timer/i8254.c                       |   6 +
 hw/timer/i8254_common.c                |   6 +-
 hw/virtio/virtio-mem.c                 | 100 +++---
 hw/xen/xen_pt_msi.c                    |   1 +
 monitor/qemu-config-qmp.c              |   3 +-
 system/qdev-monitor.c                  |   4 +-
 system/vl.c                            |   7 +-
 target/i386/cpu-apic.c                 |  18 +-
 target/i386/cpu-dump.c                 |   2 +-
 target/i386/cpu.c                      |   2 +-
 target/i386/hvf/hvf.c                  |   4 +-
 target/i386/kvm/kvm.c                  |   2 +-
 target/i386/tcg/system/misc_helper.c   |   4 +-
 target/i386/whpx/whpx-apic.c           |   3 +-
 tests/qtest/ds1338-test.c              |  12 +-
 hw/audio/trace-events                  |   4 +
 hw/rtc/trace-events                    |   4 +
 hw/timer/trace-events                  |   4 +
 hw/virtio/meson.build                  |   2 +-
 72 files changed, 760 insertions(+), 927 deletions(-)

-- 
2.51.0


Re: [PULL 00/45] Misc HW patches for 2025-10-21
Posted by Richard Henderson 3 weeks, 2 days ago
On 10/21/25 15:46, Philippe Mathieu-Daudé wrote:
> The following changes since commit 3c0b42c68f98fb276fa248012642be8cbf2cab70:
> 
>    Merge tag 'pull-request-2025-10-21' ofhttps://gitlab.com/thuth/qemu into staging (2025-10-21 08:59:35 -0500)
> 
> are available in the Git repository at:
> 
>    https://github.com/philmd/qemu.git tags/hw-misc-20251021
> 
> for you to fetch changes up to 3365d7da6156d7db990490f6cae2dc89950ac920:
> 
>    docs: Update mentions of removed '-soundhw' command line option (2025-10-21 22:33:49 +0200)
> 
> ----------------------------------------------------------------
> Misc HW patches
> 
> - Replace compile-time checks by runtime ones to build virtio-mem.c once
> - Cleanups in Raven PCI host bridge, audio and PC devices
> - Allow machine dynamic registration of valid CPU types
> - Introduce DEFINE_MACHINE_WITH_INTERFACE[_ARRAY]() macros
> - Set DDR2 minimum write recovery time in EEPROM SPD
> - Have PPCe500 machines abort gracefully when using invalid CPU
> - Prevent buffer overflow in openrisc_sim_init()
> - Pass PCI domain to Xen xc_physdev_map_pirq_msi()
> - Fix register API leaks
> - Simplify Xilinx CANFD model
> - Unconditionally create System I/O on PReP machine
> - Update documentation around '-soundhw' command line option
> 
> Various "WARNING: line over 80 characters" ignored.

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

r~