Skip to contentSkip to conversation

qom: Constify class_data

PATCH Superseded Philippe Mathieu-Daudé 3 participants 26 messages Feb 12, 2025 – Feb 18, 2025 Page 1 of 2

Subsystems (17)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover qom: Constify class_data

Since v2:
- Rework virtio_pci_types_register()
- Force TypeInfo::class_data to be in .rodata

Since v1:
- Make XtensaConfigList::config not const (Max)
- Update / test rust (Paolo)
- Constify InterfaceInfo[]

Following Richard's suggestion [*], make QOM class data *const*.

[*] https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (19):
hw: Declare various const data as 'const'
hw: Make class data 'const'
target/i386: Constify X86CPUModel uses
target/sparc: Constify SPARCCPUClass::cpu_def target/xtensa: Finalize config in xtensa_register_core() target/riscv: Declare RISCVCPUClass::misa_mxl_max as RISCVMXL target/riscv: Convert misa_mxl_max using GLib macros
qom: Have class_base_init() take a const data argument
qom: Have class_init() take a const data argument
qom: Constify TypeInfo::class_data
qom: Constify InterfaceInfo[] interfaces hw/virtio/virtio-pci: Always allocate QOM type base_name hw/virtio/virtio-pci: Assert before registering QOM types hw/virtio/virtio-pci: Do not access base_type_info.name directly hw/virtio/virtio-pci: Constify base_type_info hw/virtio/virtio-pci: Constify generic_type_info hw/virtio/virtio-pci: Reduce generic_type_info scope
hw: Constify various TypeInfo and associated structures
qom: Require TypeInfo::class_data points to const data

 docs/devel/qom.rst                            |  8 +-
 docs/devel/reset.rst                          |  2 +-
 docs/devel/virtio-backends.rst                |  2 +-
 hw/sd/sdhci-internal.h                        |  2 +-
 hw/usb/hcd-uhci.h                             |  2 +-
 include/hw/boards.h                           |  2 +-
 include/hw/i386/pc.h                          |  5 +-
 include/hw/virtio/virtio-pci.h                |  4 +-
 include/qom/object.h                          | 12 +--
 target/arm/cpu.h                              |  2 +-
 target/i386/cpu.h                             |  2 +-
 target/ppc/cpu.h                              |  3 +-
 target/riscv/cpu.h                            |  2 +-
 target/sparc/cpu.h                            |  2 +-
 target/xtensa/cpu.h                           |  2 +-
 accel/hvf/hvf-accel-ops.c                     |  4 +-
 accel/kvm/kvm-accel-ops.c                     |  2 +-
 accel/kvm/kvm-all.c                           |  2 +-
 accel/qtest/qtest.c                           |  4 +-
 accel/tcg/tcg-accel-ops.c                     |  2 +-
 accel/tcg/tcg-all.c                           |  2 +-
 accel/xen/xen-all.c                           |  4 +-
 authz/list.c                                  |  4 +-
 authz/listfile.c                              |  4 +-
 authz/pamacct.c                               |  4 +-
 authz/simple.c                                |  4 +-
 backends/confidential-guest-support.c         |  3 +-
 backends/cryptodev-builtin.c                  |  2 +-
 backends/cryptodev-lkcf.c                     |  2 +-
 backends/cryptodev-vhost-user.c               |  2 +-
 backends/cryptodev.c                          |  4 +-
 backends/dbus-vmstate.c                       |  4 +-
 backends/host_iommu_device.c                  |  2 +-
 backends/hostmem-epc.c                        |  2 +-
 backends/hostmem-file.c                       |  2 +-
 backends/hostmem-memfd.c                      |  2 +-
 backends/hostmem-ram.c                        |  2 +-
 backends/hostmem-shm.c                        |  2 +-
 backends/hostmem.c                            |  4 +-
 backends/iommufd.c                            |  6 +-
 backends/rng-builtin.c                        |  2 +-
 backends/rng-egd.c                            |  2 +-
 backends/rng-random.c                         |  2 +-
 backends/rng.c                                |  4 +-
 backends/tpm/tpm_emulator.c                   |  2 +-
 backends/tpm/tpm_passthrough.c                |  2 +-
 backends/vhost-user.c                         |  2 +-
 block/throttle-groups.c                       |  5 +-
 chardev/baum.c                                |  2 +-
 chardev/char-console.c                        |  2 +-
 chardev/char-fd.c                             |  2 +-
 chardev/char-file.c                           |  2 +-
 chardev/char-hub.c                            |  2 +-
 chardev/char-mux.c                            |  2 +-
 chardev/char-null.c                           |  2 +-
 chardev/char-parallel.c                       |  2 +-
 chardev/char-pipe.c                           |  2 +-
 chardev/char-pty.c                            |  2 +-
 chardev/char-ringbuf.c                        |  2 +-
 chardev/char-serial.c                         |  2 +-
 chardev/char-socket.c                         |  2 +-
 chardev/char-stdio.c                          |  2 +-
 chardev/char-udp.c                            |  2 +-
 chardev/char-win-stdio.c                      |  2 +-
 chardev/char-win.c                            |  2 +-
 chardev/char.c                                |  2 +-
 chardev/msmouse.c                             |  2 +-
 chardev/spice.c                               |  6 +-
 chardev/testdev.c                             |  2 +-
 chardev/wctablet.c                            |  2 +-
 crypto/secret.c                               |  2 +-
 crypto/secret_common.c                        |  4 +-
 crypto/secret_keyring.c                       |  2 +-
 crypto/tls-cipher-suites.c                    |  5 +-
 crypto/tlscreds.c                             |  2 +-
 crypto/tlscredsanon.c                         |  4 +-
 crypto/tlscredspsk.c                          |  4 +-
 crypto/tlscredsx509.c                         |  4 +-
 event-loop-base.c                             |  5 +-
 gdbstub/system.c                              |  2 +-
 hw/9pfs/virtio-9p-device.c                    |  2 +-
 hw/acpi/erst.c                                |  4 +-
 hw/acpi/generic_event_device.c                |  4 +-
 hw/acpi/pci.c                                 |  4 +-
 hw/acpi/piix4.c                               |  4 +-
 hw/acpi/vmclock.c                             |  2 +-
 hw/acpi/vmgenid.c                             |  2 +-
 hw/adc/aspeed_adc.c                           | 10 +-
 hw/adc/npcm7xx_adc.c                          |  2 +-
 hw/adc/stm32f2xx_adc.c                        |  2 +-
 hw/adc/zynq-xadc.c                            |  2 +-
 hw/alpha/typhoon.c                            |  2 +-
 hw/arm/allwinner-a10.c                        |  2 +-
 hw/arm/allwinner-h3.c                         |  2 +-
 hw/arm/allwinner-r40.c                        |  2 +-
 hw/arm/armsse.c                               |  6 +-
 hw/arm/armv7m.c                               |  4 +-
 hw/arm/aspeed.c                               | 56 ++++++-----
 hw/arm/aspeed_ast10x0.c                       |  2 +-
 hw/arm/aspeed_ast2400.c                       |  4 +-
 hw/arm/aspeed_ast2600.c                       |  2 +-
 hw/arm/aspeed_ast27x0.c                       |  2 +-
 hw/arm/aspeed_soc_common.c                    |  2 +-
 hw/arm/b-l475e-iot01a.c                       |  2 +-
 hw/arm/bcm2835_peripherals.c                  |  2 +-
 hw/arm/bcm2836.c                              |  8 +-
 hw/arm/bcm2838.c                              |  2 +-
 hw/arm/bcm2838_peripherals.c                  |  2 +-
 hw/arm/collie.c                               |  2 +-
 hw/arm/digic.c                                |  2 +-
 hw/arm/exynos4210.c                           |  2 +-
 hw/arm/exynos4_boards.c                       |  4 +-
 hw/arm/fby35.c                                |  2 +-
 hw/arm/fsl-imx25.c                            |  2 +-
 hw/arm/fsl-imx31.c                            |  2 +-
 hw/arm/fsl-imx6.c                             |  2 +-
 hw/arm/fsl-imx6ul.c                           |  2 +-
 hw/arm/fsl-imx7.c                             |  2 +-
 hw/arm/highbank.c                             |  6 +-
 hw/arm/integratorcp.c                         |  6 +-
 hw/arm/microbit.c                             |  2 +-
 hw/arm/mps2-tz.c                              | 12 +--
 hw/arm/mps2.c                                 | 10 +-
 hw/arm/mps3r.c                                |  4 +-
 hw/arm/msf2-soc.c                             |  2 +-
 hw/arm/musca.c                                |  6 +-
 hw/arm/musicpal.c                             | 14 +--
 hw/arm/npcm7xx.c                              |  6 +-
 hw/arm/npcm7xx_boards.c                       | 12 +--
 hw/arm/nrf51_soc.c                            |  2 +-
 hw/arm/omap_sx1.c                             |  4 +-
 hw/arm/raspi.c                                | 10 +-
 hw/arm/raspi4b.c                              |  2 +-
 hw/arm/realview.c                             |  8 +-
 hw/arm/sbsa-ref.c                             |  2 +-
 hw/arm/smmu-common.c                          |  2 +-
 hw/arm/smmuv3.c                               |  4 +-
 hw/arm/stellaris.c                            | 10 +-
 hw/arm/stm32f100_soc.c                        |  2 +-
 hw/arm/stm32f205_soc.c                        |  2 +-
 hw/arm/stm32f405_soc.c                        |  2 +-
 hw/arm/stm32l4x5_soc.c                        |  8 +-
 hw/arm/strongarm.c                            | 13 +--
 hw/arm/versatilepb.c                          |  6 +-
 hw/arm/vexpress.c                             |  6 +-
 hw/arm/virt.c                                 |  6 +-
 hw/arm/xen-pvh.c                              |  2 +-
 hw/arm/xilinx_zynq.c                          |  2 +-
 hw/arm/xlnx-versal-virt.c                     |  2 +-
 hw/arm/xlnx-versal.c                          |  2 +-
 hw/arm/xlnx-zcu102.c                          |  2 +-
 hw/arm/xlnx-zynqmp.c                          |  2 +-
 hw/audio/ac97.c                               |  4 +-
 hw/audio/adlib.c                              |  2 +-
 hw/audio/asc.c                                |  2 +-
 hw/audio/cs4231.c                             |  2 +-
 hw/audio/cs4231a.c                            |  2 +-
 hw/audio/es1370.c                             |  4 +-
 hw/audio/gus.c                                |  2 +-
 hw/audio/hda-codec.c                          |  8 +-
 hw/audio/intel-hda.c                          | 10 +-
 hw/audio/marvell_88w8618.c                    |  2 +-
 hw/audio/pcspk.c                              |  2 +-
 hw/audio/pl041.c                              |  2 +-
 hw/audio/sb16.c                               |  2 +-
 hw/audio/via-ac97.c                           |  8 +-
 hw/audio/virtio-snd-pci.c                     |  2 +-
 hw/audio/virtio-snd.c                         |  2 +-
 hw/audio/wm8750.c                             |  2 +-
 hw/avr/arduino.c                              | 10 +-
 hw/avr/atmega.c                               | 10 +-
 hw/block/fdc-isa.c                            |  4 +-
 hw/block/fdc-sysbus.c                         |  6 +-
 hw/block/fdc.c                                |  2 +-
 hw/block/m25p80.c                             |  6 +-
 hw/block/nand.c                               |  2 +-
 hw/block/pflash_cfi01.c                       |  2 +-
 hw/block/pflash_cfi02.c                       |  2 +-
 hw/block/swim.c                               |  4 +-
 hw/block/vhost-user-blk.c                     |  2 +-
 hw/block/virtio-blk.c                         |  2 +-
 hw/block/xen-block.c                          |  6 +-
 hw/char/avr_usart.c                           |  2 +-
 hw/char/bcm2835_aux.c                         |  2 +-
 hw/char/cadence_uart.c                        |  2 +-
 hw/char/cmsdk-apb-uart.c                      |  2 +-
 hw/char/debugcon.c                            |  2 +-
 hw/char/digic-uart.c                          |  2 +-
 hw/char/diva-gsp.c                            |  8 +-
 hw/char/escc.c                                |  2 +-
 hw/char/exynos4210_uart.c                     |  2 +-
 hw/char/goldfish_tty.c                        |  2 +-
 hw/char/grlib_apbuart.c                       |  2 +-
 hw/char/ibex_uart.c                           |  2 +-
 hw/char/imx_serial.c                          |  2 +-
 hw/char/ipoctal232.c                          |  2 +-
 hw/char/mcf_uart.c                            |  2 +-
 hw/char/mchp_pfsoc_mmuart.c                   |  2 +-
 hw/char/nrf51_uart.c                          |  2 +-
 hw/char/parallel.c                            |  4 +-
 hw/char/pl011.c                               |  2 +-
 hw/char/renesas_sci.c                         |  2 +-
 hw/char/sclpconsole-lm.c                      |  2 +-
 hw/char/sclpconsole.c                         |  2 +-
 hw/char/serial-isa.c                          |  4 +-
 hw/char/serial-mm.c                           |  2 +-
 hw/char/serial-pci-multi.c                    | 10 +-
 hw/char/serial-pci.c                          |  4 +-
 hw/char/serial.c                              |  2 +-
 hw/char/sh_serial.c                           |  2 +-
 hw/char/shakti_uart.c                         |  2 +-
 hw/char/sifive_uart.c                         |  2 +-
 hw/char/spapr_vty.c                           |  2 +-
 hw/char/stm32f2xx_usart.c                     |  2 +-
 hw/char/stm32l4x5_usart.c                     |  9 +-
 hw/char/terminal3270.c                        |  2 +-
 hw/char/virtio-console.c                      |  4 +-
 hw/char/virtio-serial-bus.c                   |  8 +-
 hw/char/xen_console.c                         |  2 +-
 hw/char/xilinx_uartlite.c                     |  2 +-
 hw/core/bus.c                                 |  4 +-
 hw/core/clock.c                               |  2 +-
 hw/core/cpu-common.c                          |  2 +-
 hw/core/generic-loader.c                      |  2 +-
 hw/core/guest-loader.c                        |  2 +-
 hw/core/machine.c                             |  4 +-
 hw/core/or-irq.c                              |  2 +-
 hw/core/platform-bus.c                        |  2 +-
 hw/core/qdev.c                                |  6 +-
 hw/core/register.c                            |  2 +-
 hw/core/reset.c                               |  2 +-
 hw/core/resetcontainer.c                      |  3 +-
 hw/core/split-irq.c                           |  2 +-
 hw/core/sysbus.c                              |  4 +-
 hw/cpu/a15mpcore.c                            |  2 +-
 hw/cpu/a9mpcore.c                             |  2 +-
 hw/cpu/arm11mpcore.c                          |  2 +-
 hw/cpu/cluster.c                              |  2 +-
 hw/cpu/core.c                                 |  2 +-
 hw/cpu/realview_mpcore.c                      |  2 +-
 hw/cxl/switch-mailbox-cci.c                   |  4 +-
 hw/display/artist.c                           |  2 +-
 hw/display/ati.c                              |  4 +-
 hw/display/bcm2835_fb.c                       |  2 +-
 hw/display/bochs-display.c                    |  4 +-
 hw/display/cg3.c                              |  2 +-
 hw/display/cirrus_vga.c                       |  4 +-
 hw/display/cirrus_vga_isa.c                   |  2 +-
 hw/display/dm163.c                            |  2 +-
 hw/display/dpcd.c                             |  2 +-
 hw/display/exynos4210_fimd.c                  |  2 +-
 hw/display/g364fb.c                           |  2 +-
 hw/display/i2c-ddc.c                          |  2 +-
 hw/display/jazz_led.c                         |  2 +-
 hw/display/macfb.c                            |  4 +-
 hw/display/next-fb.c                          |  2 +-
 hw/display/pl110.c                            |  2 +-
 hw/display/qxl.c                              |  8 +-
 hw/display/ramfb-standalone.c                 |  2 +-
 hw/display/sii9022.c                          |  2 +-
 hw/display/sm501.c                            |  6 +-
 hw/display/ssd0303.c                          |  2 +-
 hw/display/ssd0323.c                          |  2 +-
 hw/display/tcx.c                              |  2 +-
 hw/display/vga-isa.c                          |  2 +-
 hw/display/vga-mmio.c                         |  2 +-
 hw/display/vga-pci.c                          |  8 +-
 hw/display/vhost-user-gpu.c                   |  2 +-
 hw/display/virtio-gpu-base.c                  |  2 +-
 hw/display/virtio-gpu-gl.c                    |  2 +-
 hw/display/virtio-gpu-pci-rutabaga.c          |  2 +-
 hw/display/virtio-gpu-pci.c                   |  2 +-
 hw/display/virtio-gpu-rutabaga.c              |  2 +-
 hw/display/virtio-gpu.c                       |  2 +-
 hw/display/virtio-vga.c                       |  2 +-
 hw/display/vmware_vga.c                       |  4 +-
 hw/display/xlnx_dp.c                          |  2 +-
 hw/dma/bcm2835_dma.c                          |  2 +-
 hw/dma/i82374.c                               |  2 +-
 hw/dma/i8257.c                                |  4 +-
 hw/dma/pl080.c                                |  2 +-
 hw/dma/pl330.c                                |  2 +-
 hw/dma/rc4030.c                               |  4 +-
 hw/dma/sifive_pdma.c                          |  2 +-
 hw/dma/sparc32_dma.c                          | 10 +-
 hw/dma/xilinx_axidma.c                        |  9 +-
 hw/dma/xlnx-zdma.c                            |  2 +-
 hw/dma/xlnx-zynq-devcfg.c                     |  2 +-
 hw/dma/xlnx_csu_dma.c                         |  4 +-
 hw/dma/xlnx_dpdma.c                           |  2 +-
 hw/fsi/aspeed_apb2opb.c                       |  2 +-
 hw/fsi/cfam.c                                 |  2 +-
 hw/fsi/fsi-master.c                           |  2 +-
 hw/fsi/fsi.c                                  |  2 +-
 hw/fsi/lbus.c                                 |  2 +-
 hw/gpio/aspeed_gpio.c                         | 16 ++--
 hw/gpio/bcm2835_gpio.c                        |  2 +-
 hw/gpio/bcm2838_gpio.c                        |  2 +-
 hw/gpio/gpio_key.c                            |  2 +-
 hw/gpio/imx_gpio.c                            |  2 +-
 hw/gpio/mpc8xxx.c                             |  2 +-
 hw/gpio/npcm7xx_gpio.c                        |  2 +-
 hw/gpio/nrf51_gpio.c                          |  2 +-
 hw/gpio/omap_gpio.c                           |  2 +-
 hw/gpio/pca9552.c                             |  4 +-
 hw/gpio/pca9554.c                             |  2 +-
 hw/gpio/pcf8574.c                             |  2 +-
 hw/gpio/pl061.c                               |  2 +-
 hw/gpio/sifive_gpio.c                         |  2 +-
 hw/gpio/stm32l4x5_gpio.c                      |  2 +-
 hw/gpio/zaurus.c                              |  2 +-
 hw/hppa/machine.c                             |  8 +-
 hw/hyperv/hv-balloon.c                        |  2 +-
 hw/hyperv/hyperv.c                            |  2 +-
 hw/hyperv/hyperv_testdev.c                    |  2 +-
 hw/hyperv/syndbg.c                            |  2 +-
 hw/hyperv/vmbus.c                             |  6 +-
 hw/i2c/allwinner-i2c.c                        |  2 +-
 hw/i2c/aspeed_i2c.c                           | 17 ++--
 hw/i2c/bcm2835_i2c.c                          |  2 +-
 hw/i2c/bitbang_i2c.c                          |  2 +-
 hw/i2c/core.c                                 |  2 +-
 hw/i2c/exynos4210_i2c.c                       |  2 +-
 hw/i2c/i2c_mux_pca954x.c                      |  6 +-
 hw/i2c/imx_i2c.c                              |  2 +-
 hw/i2c/microbit_i2c.c                         |  2 +-
 hw/i2c/mpc_i2c.c                              |  2 +-
 hw/i2c/npcm7xx_smbus.c                        |  2 +-
 hw/i2c/omap_i2c.c                             |  2 +-
 hw/i2c/pmbus_device.c                         |  2 +-
 hw/i2c/ppc4xx_i2c.c                           |  2 +-
 hw/i2c/smbus_eeprom.c                         |  2 +-
 hw/i2c/smbus_ich9.c                           |  4 +-
 hw/i2c/smbus_slave.c                          |  2 +-
 hw/i386/amd_iommu.c                           |  9 +-
 hw/i386/intel_iommu.c                         |  4 +-
 hw/i386/kvm/apic.c                            |  2 +-
 hw/i386/kvm/clock.c                           |  2 +-
 hw/i386/kvm/i8254.c                           |  2 +-
 hw/i386/kvm/i8259.c                           |  2 +-
 hw/i386/kvm/ioapic.c                          |  2 +-
 hw/i386/kvm/xen_evtchn.c                      |  2 +-
 hw/i386/kvm/xen_gnttab.c                      |  2 +-
 hw/i386/kvm/xen_overlay.c                     |  2 +-
 hw/i386/kvm/xen_primary_console.c             |  2 +-
 hw/i386/kvm/xen_xenstore.c                    |  2 +-
 hw/i386/microvm.c                             |  4 +-
 hw/i386/nitro_enclave.c                       |  2 +-
 hw/i386/pc.c                                  |  4 +-
 hw/i386/port92.c                              |  2 +-
 hw/i386/sgx-epc.c                             |  4 +-
 hw/i386/vapic.c                               |  2 +-
 hw/i386/vmmouse.c                             |  2 +-
 hw/i386/vmport.c                              |  2 +-
 hw/i386/x86-iommu.c                           |  2 +-
 hw/i386/x86.c                                 |  4 +-
 hw/i386/xen/xen-pvh.c                         |  2 +-
 hw/i386/xen/xen_apic.c                        |  2 +-
 hw/i386/xen/xen_platform.c                    |  4 +-
 hw/i386/xen/xen_pvdevice.c                    |  4 +-
 hw/ide/ahci-allwinner.c                       |  2 +-
 hw/ide/ahci-sysbus.c                          |  2 +-
 hw/ide/cf.c                                   |  2 +-
 hw/ide/cmd646.c                               |  2 +-
 hw/ide/ich.c                                  |  4 +-
 hw/ide/ide-bus.c                              |  2 +-
 hw/ide/ide-dev.c                              |  6 +-
 hw/ide/isa.c                                  |  2 +-
 hw/ide/macio.c                                |  2 +-
 hw/ide/mmio.c                                 |  2 +-
 hw/ide/pci.c                                  |  2 +-
 hw/ide/piix.c                                 |  4 +-
 hw/ide/sii3112.c                              |  2 +-
 hw/ide/via.c                                  |  2 +-
 hw/input/adb-kbd.c                            |  2 +-
 hw/input/adb-mouse.c                          |  2 +-
 hw/input/adb.c                                |  4 +-
 hw/input/lasips2.c                            |  8 +-
 hw/input/pckbd.c                              |  6 +-
 hw/input/pl050.c                              |  6 +-
 hw/input/ps2.c                                |  6 +-
 hw/input/stellaris_gamepad.c                  |  2 +-
 hw/input/virtio-input-hid.c                   |  6 +-
 hw/input/virtio-input-host.c                  |  2 +-
 hw/input/virtio-input.c                       |  2 +-
 hw/intc/allwinner-a10-pic.c                   |  2 +-
 hw/intc/apic.c                                |  2 +-
 hw/intc/apic_common.c                         |  2 +-
 hw/intc/arm_gic.c                             |  2 +-
 hw/intc/arm_gic_common.c                      |  4 +-
 hw/intc/arm_gic_kvm.c                         |  2 +-
 hw/intc/arm_gicv2m.c                          |  2 +-
 hw/intc/arm_gicv3.c                           |  2 +-
 hw/intc/arm_gicv3_common.c                    |  4 +-
 hw/intc/arm_gicv3_its.c                       |  2 +-
 hw/intc/arm_gicv3_its_common.c                |  2 +-
 hw/intc/arm_gicv3_its_kvm.c                   |  2 +-
 hw/intc/arm_gicv3_kvm.c                       |  2 +-
 hw/intc/armv7m_nvic.c                         |  2 +-
 hw/intc/aspeed_intc.c                         |  4 +-
 hw/intc/aspeed_vic.c                          |  2 +-
 hw/intc/bcm2835_ic.c                          |  2 +-
 hw/intc/bcm2836_control.c                     |  2 +-
 hw/intc/exynos4210_combiner.c                 |  2 +-
 hw/intc/exynos4210_gic.c                      |  2 +-
 hw/intc/goldfish_pic.c                        |  4 +-
 hw/intc/grlib_irqmp.c                         |  2 +-
 hw/intc/heathrow_pic.c                        |  2 +-
 hw/intc/i8259.c                               |  2 +-
 hw/intc/i8259_common.c                        |  4 +-
 hw/intc/imx_avic.c                            |  2 +-
 hw/intc/imx_gpcv2.c                           |  2 +-
 hw/intc/ioapic.c                              |  2 +-
 hw/intc/ioapic_common.c                       |  4 +-
 hw/intc/loongarch_extioi.c                    |  2 +-
 hw/intc/loongarch_extioi_common.c             |  3 +-
 hw/intc/loongarch_ipi.c                       |  2 +-
 hw/intc/loongarch_pch_msi.c                   |  2 +-
 hw/intc/loongarch_pch_pic.c                   |  2 +-
 hw/intc/loongarch_pic_common.c                |  3 +-
 hw/intc/loongson_ipi.c                        |  2 +-
 hw/intc/loongson_ipi_common.c                 |  2 +-
 hw/intc/m68k_irqc.c                           |  4 +-
 hw/intc/mips_gic.c                            |  2 +-
 hw/intc/omap_intc.c                           |  2 +-
 hw/intc/ompic.c                               |  2 +-
 hw/intc/openpic.c                             |  2 +-
 hw/intc/openpic_kvm.c                         |  2 +-
 hw/intc/pl190.c                               |  2 +-
 hw/intc/pnv_xive.c                            |  4 +-
 hw/intc/pnv_xive2.c                           |  4 +-
 hw/intc/ppc-uic.c                             |  2 +-
 hw/intc/realview_gic.c                        |  2 +-
 hw/intc/riscv_aclint.c                        |  4 +-
 hw/intc/riscv_aplic.c                         |  2 +-
 hw/intc/riscv_imsic.c                         |  2 +-
 hw/intc/rx_icu.c                              |  2 +-
 hw/intc/s390_flic.c                           |  4 +-
 hw/intc/s390_flic_kvm.c                       |  2 +-
 hw/intc/sifive_plic.c                         |  2 +-
 hw/intc/slavio_intctl.c                       |  4 +-
 hw/intc/spapr_xive.c                          |  4 +-
 hw/intc/xics.c                                |  4 +-
 hw/intc/xics_pnv.c                            |  2 +-
 hw/intc/xics_spapr.c                          |  4 +-
 hw/intc/xilinx_intc.c                         |  2 +-
 hw/intc/xive.c                                | 10 +-
 hw/intc/xive2.c                               |  6 +-
 hw/intc/xlnx-pmu-iomod-intc.c                 |  2 +-
 hw/intc/xlnx-zynqmp-ipi.c                     |  2 +-
 hw/ipack/ipack.c                              |  2 +-
 hw/ipack/tpci200.c                            |  4 +-
 hw/ipmi/ipmi.c                                |  4 +-
 hw/ipmi/ipmi_bmc_extern.c                     |  2 +-
 hw/ipmi/ipmi_bmc_sim.c                        |  2 +-
 hw/ipmi/isa_ipmi_bt.c                         |  4 +-
 hw/ipmi/isa_ipmi_kcs.c                        |  4 +-
 hw/ipmi/pci_ipmi_bt.c                         |  4 +-
 hw/ipmi/pci_ipmi_kcs.c                        |  4 +-
 hw/ipmi/smbus_ipmi.c                          |  4 +-
 hw/isa/fdc37m81x-superio.c                    |  2 +-
 hw/isa/i82378.c                               |  4 +-
 hw/isa/isa-bus.c                              |  6 +-
 hw/isa/isa-superio.c                          |  2 +-
 hw/isa/lpc_ich9.c                             |  4 +-
 hw/isa/pc87312.c                              |  2 +-
 hw/isa/piix.c                                 |  8 +-
 hw/isa/smc37c669-superio.c                    |  2 +-
 hw/isa/vt82c686.c                             | 22 ++---
 hw/loongarch/virt.c                           |  4 +-
 hw/m68k/mcf5206.c                             |  2 +-
 hw/m68k/mcf_intc.c                            |  2 +-
 hw/m68k/next-cube.c                           |  8 +-
 hw/m68k/next-kbd.c                            |  2 +-
 hw/m68k/q800-glue.c                           |  4 +-
 hw/m68k/q800.c                                |  2 +-
 hw/m68k/virt.c                                |  4 +-
 hw/mem/cxl_type3.c                            |  4 +-
 hw/mem/npcm7xx_mc.c                           |  2 +-
 hw/mem/nvdimm.c                               |  2 +-
 hw/mem/pc-dimm.c                              |  4 +-
 hw/mem/sparse-mem.c                           |  2 +-
 hw/microblaze/petalogix_s3adsp1800_mmu.c      |  3 +-
 hw/microblaze/xlnx-zynqmp-pmu.c               |  2 +-
 hw/mips/cps.c                                 |  2 +-
 hw/mips/jazz.c                                |  4 +-
 hw/mips/loongson3_virt.c                      |  2 +-
 hw/misc/a9scu.c                               |  2 +-
 hw/misc/allwinner-a10-ccm.c                   |  2 +-
 hw/misc/allwinner-a10-dramc.c                 |  2 +-
 hw/misc/allwinner-cpucfg.c                    |  2 +-
 hw/misc/allwinner-h3-ccu.c                    |  2 +-
 hw/misc/allwinner-h3-dramc.c                  |  2 +-
 hw/misc/allwinner-h3-sysctrl.c                |  3 +-
 hw/misc/allwinner-r40-ccu.c                   |  2 +-
 hw/misc/allwinner-r40-dramc.c                 |  2 +-
 hw/misc/allwinner-sid.c                       |  2 +-
 hw/misc/allwinner-sramc.c                     |  4 +-
 hw/misc/applesmc.c                            |  4 +-
 hw/misc/arm11scu.c                            |  2 +-
 hw/misc/arm_l2x0.c                            |  2 +-
 hw/misc/arm_sysctl.c                          |  2 +-
 hw/misc/armsse-cpu-pwrctrl.c                  |  2 +-
 hw/misc/armsse-cpuid.c                        |  2 +-
 hw/misc/armsse-mhu.c                          |  2 +-
 hw/misc/armv7m_ras.c                          |  2 +-
 hw/misc/aspeed_hace.c                         | 10 +-
 hw/misc/aspeed_i3c.c                          |  4 +-
 hw/misc/aspeed_lpc.c                          |  2 +-
 hw/misc/aspeed_peci.c                         |  2 +-
 hw/misc/aspeed_sbc.c                          |  4 +-
 hw/misc/aspeed_scu.c                          | 14 +--
 hw/misc/aspeed_sdmc.c                         | 10 +-
 hw/misc/aspeed_sli.c                          |  6 +-
 hw/misc/aspeed_xdma.c                         |  8 +-
 hw/misc/auxbus.c                              |  6 +-
 hw/misc/avr_power.c                           |  2 +-
 hw/misc/axp2xx.c                              |  6 +-
 hw/misc/bcm2835_cprman.c                      | 10 +-
 hw/misc/bcm2835_mbox.c                        |  2 +-
 hw/misc/bcm2835_mphi.c                        |  2 +-
 hw/misc/bcm2835_powermgt.c                    |  2 +-
 hw/misc/bcm2835_property.c                    |  2 +-
 hw/misc/bcm2835_rng.c                         |  2 +-
 hw/misc/bcm2835_thermal.c                     |  2 +-
 hw/misc/debugexit.c                           |  2 +-
 hw/misc/djmemc.c                              |  2 +-
 hw/misc/eccmemctl.c                           |  2 +-
 hw/misc/edu.c                                 |  4 +-
 hw/misc/empty_slot.c                          |  2 +-
 hw/misc/exynos4210_clk.c                      |  2 +-
 hw/misc/exynos4210_pmu.c                      |  2 +-
 hw/misc/exynos4210_rng.c                      |  2 +-
 hw/misc/grlib_ahb_apb_pnp.c                   |  4 +-
 hw/misc/i2c-echo.c                            |  2 +-
 hw/misc/imx25_ccm.c                           |  2 +-
 hw/misc/imx31_ccm.c                           |  2 +-
 hw/misc/imx6_ccm.c                            |  2 +-
 hw/misc/imx6_src.c                            |  2 +-
 hw/misc/imx6ul_ccm.c                          |  2 +-
 hw/misc/imx7_ccm.c                            |  4 +-
 hw/misc/imx7_gpr.c                            |  2 +-
 hw/misc/imx7_snvs.c                           |  2 +-
 hw/misc/imx7_src.c                            |  2 +-
 hw/misc/imx_rngc.c                            |  2 +-
 hw/misc/iosb.c                                |  2 +-
 hw/misc/iotkit-secctl.c                       |  2 +-
 hw/misc/iotkit-sysctl.c                       |  2 +-
 hw/misc/iotkit-sysinfo.c                      |  2 +-
 hw/misc/ivshmem-flat.c                        |  2 +-
 hw/misc/ivshmem-pci.c                         |  8 +-
 hw/misc/lasi.c                                |  2 +-
 hw/misc/led.c                                 |  2 +-
 hw/misc/mac_via.c                             |  4 +-
 hw/misc/macio/cuda.c                          |  4 +-
 hw/misc/macio/gpio.c                          |  4 +-
 hw/misc/macio/mac_dbdma.c                     |  2 +-
 hw/misc/macio/macio.c                         |  8 +-
 hw/misc/macio/pmu.c                           |  4 +-
 hw/misc/mchp_pfsoc_dmc.c                      |  5 +-
 hw/misc/mchp_pfsoc_ioscb.c                    |  2 +-
 hw/misc/mchp_pfsoc_sysreg.c                   |  2 +-
 hw/misc/mips_cmgcr.c                          |  2 +-
 hw/misc/mips_cpc.c                            |  2 +-
 hw/misc/mips_itu.c                            |  2 +-
 hw/misc/mos6522.c                             |  2 +-
 hw/misc/mps2-fpgaio.c                         |  2 +-
 hw/misc/mps2-scc.c                            |  2 +-
 hw/misc/msf2-sysreg.c                         |  2 +-
 hw/misc/npcm7xx_clk.c                         |  8 +-
 hw/misc/npcm7xx_gcr.c                         |  2 +-
 hw/misc/npcm7xx_mft.c                         |  2 +-
 hw/misc/npcm7xx_pwm.c                         |  2 +-
 hw/misc/npcm7xx_rng.c                         |  2 +-
 hw/misc/nrf51_rng.c                           |  2 +-
 hw/misc/pc-testdev.c                          |  2 +-
 hw/misc/pci-testdev.c                         |  4 +-
 hw/misc/pvpanic-isa.c                         |  4 +-
 hw/misc/pvpanic-pci.c                         |  4 +-
 hw/misc/sbsa_ec.c                             |  2 +-
 hw/misc/sifive_e_aon.c                        |  2 +-
 hw/misc/sifive_u_otp.c                        |  2 +-
 hw/misc/sifive_u_prci.c                       |  2 +-
 hw/misc/slavio_misc.c                         |  2 +-
 hw/misc/stm32_rcc.c                           |  2 +-
 hw/misc/stm32f2xx_syscfg.c                    |  2 +-
 hw/misc/stm32f4xx_exti.c                      |  2 +-
 hw/misc/stm32f4xx_syscfg.c                    |  2 +-
 hw/misc/stm32l4x5_exti.c                      |  2 +-
 hw/misc/stm32l4x5_rcc.c                       |  6 +-
 hw/misc/stm32l4x5_syscfg.c                    |  2 +-
 hw/misc/tz-mpc.c                              |  4 +-
 hw/misc/tz-msc.c                              |  2 +-
 hw/misc/tz-ppc.c                              |  2 +-
 hw/misc/unimp.c                               |  2 +-
 hw/misc/virt_ctrl.c                           |  2 +-
 hw/misc/vmcoreinfo.c                          |  2 +-
 hw/misc/xlnx-versal-cframe-reg.c              |  6 +-
 hw/misc/xlnx-versal-cfu.c                     | 10 +-
 hw/misc/xlnx-versal-crl.c                     |  2 +-
 hw/misc/xlnx-versal-pmc-iou-slcr.c            |  3 +-
 hw/misc/xlnx-versal-trng.c                    |  2 +-
 hw/misc/xlnx-versal-xramc.c                   |  2 +-
 hw/misc/xlnx-zynqmp-apu-ctrl.c                |  2 +-
 hw/misc/xlnx-zynqmp-crf.c                     |  2 +-
 hw/misc/zynq_slcr.c                           |  2 +-
 hw/net/allwinner-sun8i-emac.c                 |  3 +-
 hw/net/allwinner_emac.c                       |  2 +-
 hw/net/cadence_gem.c                          |  2 +-
 hw/net/can/can_kvaser_pci.c                   |  4 +-
 hw/net/can/can_mioe3680_pci.c                 |  4 +-
 hw/net/can/can_pcm3680_pci.c                  |  4 +-
 hw/net/can/ctucan_pci.c                       |  4 +-
 hw/net/can/xlnx-versal-canfd.c                |  2 +-
 hw/net/can/xlnx-zynqmp-can.c                  |  2 +-
 hw/net/dp8393x.c                              |  2 +-
 hw/net/e1000.c                                | 16 ++--
 hw/net/e1000e.c                               |  4 +-
 hw/net/eepro100.c                             |  4 +-
 hw/net/fsl_etsec/etsec.c                      |  2 +-
 hw/net/ftgmac100.c                            |  4 +-
 hw/net/igb.c                                  |  4 +-
 hw/net/igbvf.c                                |  4 +-
 hw/net/imx_fec.c                              |  2 +-
 hw/net/lan9118.c                              |  2 +-
 hw/net/lan9118_phy.c                          |  2 +-
 hw/net/lance.c                                |  2 +-
 hw/net/lasi_i82596.c                          |  2 +-
 hw/net/mcf_fec.c                              |  2 +-
 hw/net/mipsnet.c                              |  2 +-
 hw/net/msf2-emac.c                            |  2 +-
 hw/net/mv88w8618_eth.c                        |  2 +-
 hw/net/ne2000-isa.c                           |  2 +-
 hw/net/ne2000-pci.c                           |  4 +-
 hw/net/npcm7xx_emc.c                          |  2 +-
 hw/net/npcm_gmac.c                            |  2 +-
 hw/net/opencores_eth.c                        |  2 +-
 hw/net/pcnet-pci.c                            |  4 +-
 hw/net/rocker/rocker.c                        |  4 +-
 hw/net/rtl8139.c                              |  4 +-
 hw/net/smc91c111.c                            |  2 +-
 hw/net/spapr_llan.c                           |  2 +-
 hw/net/stellaris_enet.c                       |  2 +-
 hw/net/sungem.c                               |  4 +-
 hw/net/sunhme.c                               |  4 +-
 hw/net/tulip.c                                |  4 +-
 hw/net/virtio-net.c                           |  2 +-
 hw/net/vmxnet3.c                              |  4 +-
 hw/net/xen_nic.c                              |  2 +-
 hw/net/xgmac.c                                |  2 +-
 hw/net/xilinx_axienet.c                       | 11 ++-
 hw/net/xilinx_ethlite.c                       |  2 +-
 hw/nubus/mac-nubus-bridge.c                   |  2 +-
 hw/nubus/nubus-bridge.c                       |  2 +-
 hw/nubus/nubus-bus.c                          |  2 +-
 hw/nubus/nubus-device.c                       |  2 +-
 hw/nubus/nubus-virtio-mmio.c                  |  2 +-
 hw/nvme/ctrl.c                                |  4 +-
 hw/nvme/ns.c                                  |  2 +-
 hw/nvme/subsys.c                              |  2 +-
 hw/nvram/bcm2835_otp.c                        |  2 +-
 hw/nvram/ds1225y.c                            |  2 +-
 hw/nvram/eeprom_at24c.c                       |  2 +-
 hw/nvram/fw_cfg.c                             |  6 +-
 hw/nvram/mac_nvram.c                          |  2 +-
 hw/nvram/npcm7xx_otp.c                        |  6 +-
 hw/nvram/nrf51_nvm.c                          |  2 +-
 hw/nvram/spapr_nvram.c                        |  2 +-
 hw/nvram/xlnx-bbram.c                         |  2 +-
 hw/nvram/xlnx-efuse.c                         |  2 +-
 hw/nvram/xlnx-versal-efuse-cache.c            |  2 +-
 hw/nvram/xlnx-versal-efuse-ctrl.c             |  2 +-
 hw/nvram/xlnx-zynqmp-efuse.c                  |  2 +-
 hw/openrisc/openrisc_sim.c                    |  2 +-
 hw/openrisc/virt.c                            |  2 +-
 hw/pci-bridge/cxl_downstream.c                |  4 +-
 hw/pci-bridge/cxl_root_port.c                 |  4 +-
 hw/pci-bridge/cxl_upstream.c                  |  4 +-
 hw/pci-bridge/gen_pcie_root_port.c            |  2 +-
 hw/pci-bridge/i82801b11.c                     |  4 +-
 hw/pci-bridge/ioh3420.c                       |  2 +-
 hw/pci-bridge/pci_bridge_dev.c                |  6 +-
 hw/pci-bridge/pci_expander_bridge.c           | 18 ++--
 hw/pci-bridge/pcie_pci_bridge.c               |  4 +-
 hw/pci-bridge/pcie_root_port.c                |  4 +-
 hw/pci-bridge/simba.c                         |  4 +-
 hw/pci-bridge/xio3130_downstream.c            |  4 +-
 hw/pci-bridge/xio3130_upstream.c              |  4 +-
 hw/pci-host/articia.c                         | 10 +-
 hw/pci-host/astro.c                           |  6 +-
 hw/pci-host/bonito.c                          |  6 +-
 hw/pci-host/designware.c                      |  8 +-
 hw/pci-host/dino.c                            |  2 +-
 hw/pci-host/gpex.c                            |  6 +-
 hw/pci-host/grackle.c                         |  6 +-
 hw/pci-host/gt64120.c                         |  6 +-
 hw/pci-host/i440fx.c                          |  6 +-
 hw/pci-host/mv64361.c                         |  8 +-
 hw/pci-host/pnv_phb.c                         |  4 +-
 hw/pci-host/pnv_phb3.c                        |  6 +-
 hw/pci-host/pnv_phb3_msi.c                    |  2 +-
 hw/pci-host/pnv_phb3_pbcq.c                   |  4 +-
 hw/pci-host/pnv_phb4.c                        |  8 +-
 hw/pci-host/pnv_phb4_pec.c                    |  8 +-
 hw/pci-host/ppc440_pcix.c                     |  2 +-
 hw/pci-host/ppc4xx_pci.c                      |  6 +-
 hw/pci-host/ppce500.c                         |  6 +-
 hw/pci-host/q35.c                             |  6 +-
 hw/pci-host/raven.c                           |  6 +-
 hw/pci-host/remote.c                          |  2 +-
 hw/pci-host/sabre.c                           |  6 +-
 hw/pci-host/sh_pci.c                          |  6 +-
 hw/pci-host/uninorth.c                        | 27 +++---
 hw/pci-host/versatile.c                       |  6 +-
 hw/pci-host/xen_igd_pt.c                      |  3 +-
 hw/pci-host/xilinx-pcie.c                     |  6 +-
 hw/pci/pci.c                                  | 10 +-
 hw/pci/pci_bridge.c                           |  4 +-
 hw/pci/pci_host.c                             |  2 +-
 hw/pci/pcie_port.c                            |  6 +-
 hw/ppc/e500plat.c                             |  4 +-
 hw/ppc/mac_newworld.c                         |  4 +-
 hw/ppc/mac_oldworld.c                         |  4 +-
 hw/ppc/mpc8544ds.c                            |  2 +-
 hw/ppc/pef.c                                  |  2 +-
 hw/ppc/pegasos2.c                             |  4 +-
 hw/ppc/pnv.c                                  | 33 +++----
 hw/ppc/pnv_adu.c                              |  4 +-
 hw/ppc/pnv_chiptod.c                          | 10 +-
 hw/ppc/pnv_core.c                             | 14 +--
 hw/ppc/pnv_homer.c                            |  8 +-
 hw/ppc/pnv_i2c.c                              |  4 +-
 hw/ppc/pnv_lpc.c                              | 10 +-
 hw/ppc/pnv_n1_chiplet.c                       |  4 +-
 hw/ppc/pnv_nest_pervasive.c                   |  4 +-
 hw/ppc/pnv_occ.c                              |  8 +-
 hw/ppc/pnv_pnor.c                             |  2 +-
 hw/ppc/pnv_psi.c                              | 12 +--
 hw/ppc/pnv_sbe.c                              |  6 +-
 hw/ppc/ppc405_boards.c                        |  6 +-
 hw/ppc/ppc405_uc.c                            | 16 ++--
 hw/ppc/ppc440_uc.c                            |  2 +-
 hw/ppc/ppc4xx_devs.c                          |  8 +-
 hw/ppc/ppc4xx_sdram.c                         |  4 +-
 hw/ppc/ppce500_spin.c                         |  2 +-
 hw/ppc/prep_systemio.c                        |  2 +-
 hw/ppc/rs6000_mc.c                            |  2 +-
 hw/ppc/spapr.c                                |  6 +-
 hw/ppc/spapr_cpu_core.c                       |  4 +-
 hw/ppc/spapr_drc.c                            | 16 ++--
 hw/ppc/spapr_iommu.c                          |  5 +-
 hw/ppc/spapr_nvdimm.c                         |  2 +-
 hw/ppc/spapr_pci.c                            |  4 +-
 hw/ppc/spapr_rng.c                            |  2 +-
 hw/ppc/spapr_rtc.c                            |  2 +-
 hw/ppc/spapr_tpm_proxy.c                      |  2 +-
 hw/ppc/spapr_vio.c                            |  6 +-
 hw/remote/machine.c                           |  4 +-
 hw/remote/proxy.c                             |  4 +-
 hw/remote/remote-obj.c                        |  4 +-
 hw/remote/vfio-user-obj.c                     |  4 +-
 hw/riscv/microchip_pfsoc.c                    |  5 +-
 hw/riscv/opentitan.c                          |  4 +-
 hw/riscv/riscv-iommu-pci.c                    |  4 +-
 hw/riscv/riscv-iommu-sys.c                    |  2 +-
 hw/riscv/riscv-iommu.c                        |  4 +-
 hw/riscv/riscv_hart.c                         |  2 +-
 hw/riscv/shakti_c.c                           |  4 +-
 hw/riscv/sifive_e.c                           |  4 +-
 hw/riscv/sifive_u.c                           |  4 +-
 hw/riscv/spike.c                              |  2 +-
 hw/riscv/virt.c                               |  4 +-
 hw/rtc/allwinner-rtc.c                        |  8 +-
 hw/rtc/aspeed_rtc.c                           |  2 +-
 hw/rtc/ds1338.c                               |  2 +-
 hw/rtc/exynos4210_rtc.c                       |  2 +-
 hw/rtc/goldfish_rtc.c                         |  2 +-
 hw/rtc/ls7a_rtc.c                             |  2 +-
 hw/rtc/m41t80.c                               |  2 +-
 hw/rtc/m48t59-isa.c                           | 30 +++---
 hw/rtc/m48t59.c                               | 31 ++++---
 hw/rtc/mc146818rtc.c                          |  4 +-
 hw/rtc/pl031.c                                |  2 +-
 hw/rtc/sun4v-rtc.c                            |  2 +-
 hw/rtc/xlnx-zynqmp-rtc.c                      |  2 +-
 hw/rx/rx-gdbsim.c                             |  6 +-
 hw/rx/rx62n.c                                 |  6 +-
 hw/s390x/3270-ccw.c                           |  2 +-
 hw/s390x/ap-bridge.c                          |  6 +-
 hw/s390x/ap-device.c                          |  2 +-
 hw/s390x/ccw-device.c                         |  2 +-
 hw/s390x/css-bridge.c                         |  6 +-
 hw/s390x/event-facility.c                     |  4 +-
 hw/s390x/ipl.c                                |  2 +-
 hw/s390x/s390-ccw.c                           |  2 +-
 hw/s390x/s390-pci-bus.c                       |  9 +-
 hw/s390x/s390-skeys-kvm.c                     |  2 +-
 hw/s390x/s390-skeys.c                         |  4 +-
 hw/s390x/s390-stattrib-kvm.c                  |  2 +-
 hw/s390x/s390-stattrib.c                      |  4 +-
 hw/s390x/s390-virtio-ccw.c                    |  6 +-
 hw/s390x/sclp.c                               |  2 +-
 hw/s390x/sclpcpu.c                            |  2 +-
 hw/s390x/sclpquiesce.c                        |  2 +-
 hw/s390x/tod-kvm.c                            |  2 +-
 hw/s390x/tod-tcg.c                            |  2 +-
 hw/s390x/tod.c                                |  2 +-
 hw/s390x/vhost-scsi-ccw.c                     |  2 +-
 hw/s390x/vhost-user-fs-ccw.c                  |  2 +-
 hw/s390x/vhost-vsock-ccw.c                    |  2 +-
 hw/s390x/virtio-ccw-9p.c                      |  2 +-
 hw/s390x/virtio-ccw-balloon.c                 |  2 +-
 hw/s390x/virtio-ccw-blk.c                     |  2 +-
 hw/s390x/virtio-ccw-crypto.c                  |  2 +-
 hw/s390x/virtio-ccw-gpu.c                     |  2 +-
 hw/s390x/virtio-ccw-input.c                   |  2 +-
 hw/s390x/virtio-ccw-md.c                      |  2 +-
 hw/s390x/virtio-ccw-mem.c                     |  2 +-
 hw/s390x/virtio-ccw-net.c                     |  2 +-
 hw/s390x/virtio-ccw-rng.c                     |  2 +-
 hw/s390x/virtio-ccw-scsi.c                    |  2 +-
 hw/s390x/virtio-ccw-serial.c                  |  2 +-
 hw/s390x/virtio-ccw.c                         |  4 +-
 hw/scsi/esp-pci.c                             |  6 +-
 hw/scsi/esp.c                                 |  4 +-
 hw/scsi/lsi53c895a.c                          |  6 +-
 hw/scsi/megasas.c                             | 24 ++---
 hw/scsi/mptsas.c                              |  4 +-
 hw/scsi/scsi-bus.c                            |  6 +-
 hw/scsi/scsi-disk.c                           |  8 +-
 hw/scsi/scsi-generic.c                        |  2 +-
 hw/scsi/spapr_vscsi.c                         |  2 +-
 hw/scsi/vhost-scsi.c                          |  4 +-
 hw/scsi/vhost-user-scsi.c                     |  4 +-
 hw/scsi/virtio-scsi.c                         |  6 +-
 hw/scsi/vmw_pvscsi.c                          |  4 +-
 hw/sd/allwinner-sdhost.c                      | 15 +--
 hw/sd/aspeed_sdhci.c                          | 10 +-
 hw/sd/bcm2835_sdhost.c                        |  2 +-
 hw/sd/cadence_sdhci.c                         |  2 +-
 hw/sd/npcm7xx_sdhci.c                         |  2 +-
 hw/sd/omap_mmc.c                              |  2 +-
 hw/sd/pl181.c                                 |  4 +-
 hw/sd/sd.c                                    |  8 +-
 hw/sd/sdhci-pci.c                             |  4 +-
 hw/sd/sdhci.c                                 |  6 +-
 hw/sd/ssi-sd.c                                |  2 +-
 hw/sensor/adm1266.c                           |  2 +-
 hw/sensor/adm1272.c                           |  2 +-
 hw/sensor/dps310.c                            |  2 +-
 hw/sensor/emc141x.c                           |  6 +-
 hw/sensor/isl_pmbus_vr.c                      | 10 +-
 hw/sensor/lsm303dlhc_mag.c                    |  2 +-
 hw/sensor/max31785.c                          |  2 +-
 hw/sensor/max34451.c                          |  2 +-
 hw/sensor/tmp105.c                            |  2 +-
 hw/sensor/tmp421.c                            |  6 +-
 hw/sparc/sun4m.c                              | 28 +++---
 hw/sparc/sun4m_iommu.c                        |  5 +-
 hw/sparc64/niagara.c                          |  2 +-
 hw/sparc64/sun4u.c                            | 16 ++--
 hw/sparc64/sun4u_iommu.c                      |  5 +-
 hw/ssi/allwinner-a10-spi.c                    |  2 +-
 hw/ssi/aspeed_smc.c                           | 36 ++++----
 hw/ssi/bcm2835_spi.c                          |  2 +-
 hw/ssi/ibex_spi_host.c                        |  2 +-
 hw/ssi/imx_spi.c                              |  2 +-
 hw/ssi/mss-spi.c                              |  2 +-
 hw/ssi/npcm7xx_fiu.c                          |  2 +-
 hw/ssi/npcm_pspi.c                            |  2 +-
 hw/ssi/pl022.c                                |  2 +-
 hw/ssi/pnv_spi.c                              |  4 +-
 hw/ssi/sifive_spi.c                           |  2 +-
 hw/ssi/ssi.c                                  |  4 +-
 hw/ssi/stm32f2xx_spi.c                        |  2 +-
 hw/ssi/xilinx_spi.c                           |  2 +-
 hw/ssi/xilinx_spips.c                         |  6 +-
 hw/ssi/xlnx-versal-ospi.c                     |  2 +-
 hw/timer/a9gtimer.c                           |  2 +-
 hw/timer/allwinner-a10-pit.c                  |  2 +-
 hw/timer/arm_mptimer.c                        |  2 +-
 hw/timer/arm_timer.c                          |  2 +-
 hw/timer/armv7m_systick.c                     |  2 +-
 hw/timer/aspeed_timer.c                       | 12 +--
 hw/timer/avr_timer16.c                        |  2 +-
 hw/timer/bcm2835_systmr.c                     |  2 +-
 hw/timer/cadence_ttc.c                        |  2 +-
 hw/timer/cmsdk-apb-dualtimer.c                |  2 +-
 hw/timer/cmsdk-apb-timer.c                    |  2 +-
 hw/timer/digic-timer.c                        |  2 +-
 hw/timer/exynos4210_mct.c                     |  2 +-
 hw/timer/exynos4210_pwm.c                     |  2 +-
 hw/timer/grlib_gptimer.c                      |  2 +-
 hw/timer/hpet.c                               |  2 +-
 hw/timer/i8254.c                              |  2 +-
 hw/timer/i8254_common.c                       |  2 +-
 hw/timer/ibex_timer.c                         |  2 +-
 hw/timer/imx_epit.c                           |  2 +-
 hw/timer/imx_gpt.c                            |  2 +-
 hw/timer/mss-timer.c                          |  2 +-
 hw/timer/npcm7xx_timer.c                      |  2 +-
 hw/timer/nrf51_timer.c                        |  2 +-
 hw/timer/pxa2xx_timer.c                       |  4 +-
 hw/timer/renesas_cmt.c                        |  2 +-
 hw/timer/renesas_tmr.c                        |  2 +-
 hw/timer/sifive_pwm.c                         |  2 +-
 hw/timer/slavio_timer.c                       |  2 +-
 hw/timer/sse-counter.c                        |  2 +-
 hw/timer/sse-timer.c                          |  2 +-
 hw/timer/stellaris-gptm.c                     |  2 +-
 hw/timer/stm32f2xx_timer.c                    |  2 +-
 hw/timer/xilinx_timer.c                       |  2 +-
 hw/tpm/tpm_crb.c                              |  4 +-
 hw/tpm/tpm_spapr.c                            |  4 +-
 hw/tpm/tpm_tis_i2c.c                          |  4 +-
 hw/tpm/tpm_tis_isa.c                          |  4 +-
 hw/tpm/tpm_tis_sysbus.c                       |  4 +-
 hw/tricore/tc27x_soc.c                        |  4 +-
 hw/tricore/triboard.c                         |  2 +-
 hw/tricore/tricore_testdevice.c               |  2 +-
 hw/ufs/lu.c                                   |  2 +-
 hw/ufs/ufs.c                                  |  6 +-
 hw/usb/bus.c                                  |  6 +-
 hw/usb/canokey.c                              |  2 +-
 hw/usb/ccid-card-emulated.c                   |  2 +-
 hw/usb/ccid-card-passthru.c                   |  2 +-
 hw/usb/chipidea.c                             |  2 +-
 hw/usb/dev-audio.c                            |  2 +-
 hw/usb/dev-hid.c                              |  8 +-
 hw/usb/dev-hub.c                              |  2 +-
 hw/usb/dev-mtp.c                              |  2 +-
 hw/usb/dev-network.c                          |  2 +-
 hw/usb/dev-serial.c                           |  6 +-
 hw/usb/dev-smartcard-reader.c                 |  6 +-
 hw/usb/dev-storage-bot.c                      |  2 +-
 hw/usb/dev-storage-classic.c                  |  2 +-
 hw/usb/dev-storage.c                          |  2 +-
 hw/usb/dev-uas.c                              |  2 +-
 hw/usb/dev-wacom.c                            |  2 +-
 hw/usb/hcd-dwc2.c                             |  2 +-
 hw/usb/hcd-dwc3.c                             |  2 +-
 hw/usb/hcd-ehci-pci.c                         | 28 +++---
 hw/usb/hcd-ehci-sysbus.c                      | 16 ++--
 hw/usb/hcd-ohci-pci.c                         |  4 +-
 hw/usb/hcd-ohci-sysbus.c                      |  2 +-
 hw/usb/hcd-uhci.c                             | 28 +++---
 hw/usb/hcd-xhci-nec.c                         |  2 +-
 hw/usb/hcd-xhci-pci.c                         |  6 +-
 hw/usb/hcd-xhci-sysbus.c                      |  2 +-
 hw/usb/hcd-xhci.c                             |  2 +-
 hw/usb/host-libusb.c                          |  2 +-
 hw/usb/imx-usb-phy.c                          |  2 +-
 hw/usb/redirect.c                             |  2 +-
 hw/usb/u2f-emulated.c                         |  2 +-
 hw/usb/u2f-passthru.c                         |  2 +-
 hw/usb/u2f.c                                  |  2 +-
 hw/usb/vt82c686-uhci-pci.c                    |  6 +-
 hw/usb/xlnx-usb-subsystem.c                   |  2 +-
 hw/usb/xlnx-versal-usb2-ctrl-regs.c           |  2 +-
 hw/vfio/amd-xgbe.c                            |  2 +-
 hw/vfio/ap.c                                  |  2 +-
 hw/vfio/calxeda-xgmac.c                       |  2 +-
 hw/vfio/ccw.c                                 |  2 +-
 hw/vfio/container.c                           |  4 +-
 hw/vfio/igd.c                                 |  5 +-
 hw/vfio/iommufd.c                             |  4 +-
 hw/vfio/pci.c                                 |  7 +-
 hw/vfio/platform.c                            |  2 +-
 hw/vfio/spapr.c                               |  2 +-
 hw/virtio/vdpa-dev-pci.c                      |  3 +-
 hw/virtio/vdpa-dev.c                          |  2 +-
 hw/virtio/vhost-scsi-pci.c                    |  2 +-
 hw/virtio/vhost-user-base.c                   |  2 +-
 hw/virtio/vhost-user-blk-pci.c                |  2 +-
 hw/virtio/vhost-user-device-pci.c             |  3 +-
 hw/virtio/vhost-user-device.c                 |  2 +-
 hw/virtio/vhost-user-fs-pci.c                 |  2 +-
 hw/virtio/vhost-user-fs.c                     |  2 +-
 hw/virtio/vhost-user-gpio-pci.c               |  2 +-
 hw/virtio/vhost-user-gpio.c                   |  2 +-
 hw/virtio/vhost-user-i2c-pci.c                |  2 +-
 hw/virtio/vhost-user-i2c.c                    |  2 +-
 hw/virtio/vhost-user-input.c                  |  2 +-
 hw/virtio/vhost-user-rng-pci.c                |  2 +-
 hw/virtio/vhost-user-rng.c                    |  2 +-
 hw/virtio/vhost-user-scmi-pci.c               |  2 +-
 hw/virtio/vhost-user-scmi.c                   |  2 +-
 hw/virtio/vhost-user-scsi-pci.c               |  2 +-
 hw/virtio/vhost-user-snd-pci.c                |  2 +-
 hw/virtio/vhost-user-snd.c                    |  2 +-
 hw/virtio/vhost-user-vsock-pci.c              |  3 +-
 hw/virtio/vhost-user-vsock.c                  |  2 +-
 hw/virtio/vhost-vsock-common.c                |  2 +-
 hw/virtio/vhost-vsock-pci.c                   |  2 +-
 hw/virtio/vhost-vsock.c                       |  2 +-
 hw/virtio/virtio-9p-pci.c                     |  2 +-
 hw/virtio/virtio-balloon-pci.c                |  2 +-
 hw/virtio/virtio-balloon.c                    |  2 +-
 hw/virtio/virtio-blk-pci.c                    |  2 +-
 hw/virtio/virtio-bus.c                        |  2 +-
 hw/virtio/virtio-crypto-pci.c                 |  2 +-
 hw/virtio/virtio-crypto.c                     |  2 +-
 hw/virtio/virtio-input-pci.c                  |  7 +-
 hw/virtio/virtio-iommu-pci.c                  |  2 +-
 hw/virtio/virtio-iommu.c                      |  4 +-
 hw/virtio/virtio-md-pci.c                     |  2 +-
 hw/virtio/virtio-mem-pci.c                    |  2 +-
 hw/virtio/virtio-mem.c                        |  7 +-
 hw/virtio/virtio-mmio.c                       |  4 +-
 hw/virtio/virtio-net-pci.c                    |  2 +-
 hw/virtio/virtio-nsm-pci.c                    |  2 +-
 hw/virtio/virtio-nsm.c                        |  2 +-
 hw/virtio/virtio-pci.c                        | 76 ++++++++-------
 hw/virtio/virtio-pmem-pci.c                   |  2 +-
 hw/virtio/virtio-pmem.c                       |  2 +-
 hw/virtio/virtio-rng-pci.c                    |  2 +-
 hw/virtio/virtio-rng.c                        |  2 +-
 hw/virtio/virtio-scsi-pci.c                   |  2 +-
 hw/virtio/virtio-serial-pci.c                 |  2 +-
 hw/virtio/virtio.c                            |  2 +-
 hw/watchdog/allwinner-wdt.c                   |  6 +-
 hw/watchdog/cmsdk-apb-watchdog.c              |  2 +-
 hw/watchdog/sbsa_gwdt.c                       |  2 +-
 hw/watchdog/spapr_watchdog.c                  |  2 +-
 hw/watchdog/wdt_aspeed.c                      | 12 +--
 hw/watchdog/wdt_diag288.c                     |  2 +-
 hw/watchdog/wdt_i6300esb.c                    |  4 +-
 hw/watchdog/wdt_ib700.c                       |  2 +-
 hw/watchdog/wdt_imx2.c                        |  2 +-
 hw/xen/xen-bus.c                              |  6 +-
 hw/xen/xen-legacy-backend.c                   |  6 +-
 hw/xen/xen-pvh-common.c                       |  2 +-
 hw/xen/xen_pt.c                               |  4 +-
 hw/xen/xen_pt_graphics.c                      |  4 +-
 hw/xtensa/xtfpga.c                            | 16 ++--
 io/channel-buffer.c                           |  2 +-
 io/channel-command.c                          |  2 +-
 io/channel-file.c                             |  2 +-
 io/channel-null.c                             |  2 +-
 io/channel-socket.c                           |  2 +-
 io/channel-tls.c                              |  2 +-
 io/channel-websock.c                          |  2 +-
 iothread.c                                    |  2 +-
 migration/channel-block.c                     |  2 +-
 migration/migration.c                         |  2 +-
 migration/rdma.c                              |  2 +-
 net/can/can_core.c                            |  4 +-
 net/can/can_host.c                            |  4 +-
 net/can/can_socketcan.c                       |  2 +-
 net/colo-compare.c                            |  4 +-
 net/dump.c                                    |  2 +-
 net/filter-buffer.c                           |  2 +-
 net/filter-mirror.c                           |  4 +-
 net/filter-replay.c                           |  2 +-
 net/filter-rewriter.c                         |  2 +-
 net/filter.c                                  |  4 +-
 qom/object.c                                  |  8 +-
 scsi/pr-manager-helper.c                      |  2 +-
 scsi/pr-manager.c                             |  2 +-
 system/qtest.c                                |  4 +-
 target/alpha/cpu.c                            |  2 +-
 target/arm/cpu.c                              |  6 +-
 target/arm/cpu64.c                            |  6 +-
 target/arm/tcg/cpu-v7m.c                      |  2 +-
 target/avr/cpu.c                              |  2 +-
 target/hexagon/cpu.c                          |  2 +-
 target/hppa/cpu.c                             |  2 +-
 target/i386/confidential-guest.c              |  2 +-
 target/i386/cpu.c                             | 16 ++--
 target/i386/host-cpu.c                        |  2 +-
 target/i386/hvf/hvf-cpu.c                     |  2 +-
 target/i386/kvm/kvm-cpu.c                     |  2 +-
 target/i386/nvmm/nvmm-accel-ops.c             |  2 +-
 target/i386/nvmm/nvmm-all.c                   |  2 +-
 target/i386/sev.c                             |  8 +-
 target/i386/tcg/tcg-cpu.c                     |  2 +-
 target/i386/whpx/whpx-accel-ops.c             |  2 +-
 target/i386/whpx/whpx-all.c                   |  2 +-
 target/i386/whpx/whpx-apic.c                  |  2 +-
 target/loongarch/cpu.c                        |  6 +-
 target/m68k/cpu.c                             |  6 +-
 target/microblaze/cpu.c                       |  2 +-
 target/mips/cpu.c                             |  6 +-
 target/openrisc/cpu.c                         |  2 +-
 target/ppc/cpu-models.c                       |  2 +-
 target/ppc/cpu_init.c                         | 92 +++++++++----------
 target/ppc/kvm.c                              |  4 +-
 target/riscv/cpu.c                            | 16 ++--
 target/riscv/kvm/kvm-cpu.c                    |  2 +-
 target/riscv/tcg/tcg-cpu.c                    |  2 +-
 target/rx/cpu.c                               |  2 +-
 target/s390x/cpu.c                            |  2 +-
 target/s390x/cpu_models.c                     | 14 +--
 target/s390x/kvm/pv.c                         |  2 +-
 target/sh4/cpu.c                              |  8 +-
 target/sparc/cpu.c                            |  6 +-
 target/tricore/cpu.c                          |  2 +-
 target/xtensa/cpu.c                           |  2 +-
 target/xtensa/helper.c                        |  9 +-
 tests/unit/check-qom-interface.c              |  4 +-
 tests/unit/check-qom-proplist.c               |  8 +-
 tests/unit/test-qdev-global-props.c           |  8 +-
 tests/unit/test-smp-parse.c                   | 23 +++--
 ui/console-vc.c                               |  6 +-
 ui/console.c                                  |  4 +-
 ui/dbus-chardev.c                             |  2 +-
 ui/dbus.c                                     |  6 +-
 ui/gtk.c                                      |  2 +-
 ui/input-barrier.c                            |  4 +-
 ui/input-linux.c                              |  4 +-
 ui/spice-app.c                                |  2 +-
 ui/vdagent.c                                  |  2 +-
 util/main-loop.c                              |  2 +-
 util/thread-context.c                         |  4 +-
 hw/display/apple-gfx-mmio.m                   |  2 +-
 hw/display/apple-gfx-pci.m                    |  4 +-
 rust/qemu-api/src/qom.rs                      |  8 +-
 .../codeconverter/qom_type_info.py            |  3 +-
 .../codeconverter/test_regexps.py             | 12 +--
 1119 files changed, 2149 insertions(+), 2089 deletions(-)
Signature · 1 line
2.47.1
#1 lore raw

PATCH v3 1/19 hw: Declare various const data as 'const'

---
 hw/isa/vt82c686.c     | 2 +-
 hw/rtc/m48t59-isa.c   | 2 +-
 hw/rtc/m48t59.c       | 2 +-
 hw/sensor/tmp421.c    | 2 +-
 hw/usb/hcd-ehci-pci.c | 2 +-
 hw/usb/hcd-uhci.c     | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
hw/isa/vt82c686.c +1 -1
index 6f44b381a5f..43bd67eeef2 100644
@@ -224,7 +224,7 @@ static void via_pm_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
-    ViaPMInitInfo *info = data;
+    const ViaPMInitInfo *info = data;
 
     k->realize = via_pm_realize;
     k->config_write = pm_write_config;
hw/rtc/m48t59-isa.c +1 -1
index 38bc8dcf100..9c3855a3ef1 100644
@@ -129,7 +129,7 @@ static void m48txx_isa_class_init(ObjectClass *klass, void *data)
 static void m48txx_isa_concrete_class_init(ObjectClass *klass, void *data)
 {
     M48txxISADeviceClass *u = M48TXX_ISA_CLASS(klass);
-    M48txxInfo *info = data;
+    const M48txxInfo *info = data;
 
     u->info = *info;
 }
hw/rtc/m48t59.c +1 -1
index c9bd6f878fe..3fb2f27d9d1 100644
@@ -639,7 +639,7 @@ static void m48txx_sysbus_class_init(ObjectClass *klass, void *data)
 static void m48txx_sysbus_concrete_class_init(ObjectClass *klass, void *data)
 {
     M48txxSysBusDeviceClass *u = M48TXX_SYS_BUS_CLASS(klass);
-    M48txxInfo *info = data;
+    const M48txxInfo *info = data;
 
     u->info = *info;
 }
hw/sensor/tmp421.c +1 -1
index 82e604279c5..007f7cd018b 100644
@@ -68,7 +68,7 @@ struct TMP421State {
 
 struct TMP421Class {
     I2CSlaveClass parent_class;
-    DeviceInfo *dev;
+    const DeviceInfo *dev;
 };
 
 #define TYPE_TMP421 "tmp421-generic"
hw/usb/hcd-ehci-pci.c +1 -1
index d410c38a8a2..e00316721ac 100644
@@ -182,7 +182,7 @@ static void ehci_data_class_init(ObjectClass *klass, void *data)
 {
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
     DeviceClass *dc = DEVICE_CLASS(klass);
-    EHCIPCIInfo *i = data;
+    const EHCIPCIInfo *i = data;
 
     k->vendor_id = i->vendor_id;
     k->device_id = i->device_id;
hw/usb/hcd-uhci.c +1 -1
index 8528d493d63..0561a6d801a 100644
@@ -1289,7 +1289,7 @@ void uhci_data_class_init(ObjectClass *klass, void *data)
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
     DeviceClass *dc = DEVICE_CLASS(klass);
     UHCIPCIDeviceClass *u = UHCI_CLASS(klass);
-    UHCIInfo *info = data;
+    const UHCIInfo *info = data;
 
     k->realize = info->realize ? info->realize : usb_uhci_common_realize;
     k->exit = info->unplug ? usb_uhci_exit : NULL;
Signature · 1 line
2.47.1
#2 lore raw

PATCH v3 2/19 hw: Make class data 'const'

In reply to Philippe Mathieu-Daudé

When the %data argument is not modified, we can declare it const.

---
 hw/sd/sdhci-internal.h   | 2 +-
 hw/sd/sdhci.c            | 2 +-
 hw/sensor/emc141x.c      | 2 +-
 hw/sensor/isl_pmbus_vr.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
hw/sd/sdhci-internal.h +1 -1
index 5f3765f12d2..9f768c418e0 100644
@@ -322,6 +322,6 @@ void sdhci_initfn(SDHCIState *s);
 void sdhci_uninitfn(SDHCIState *s);
 void sdhci_common_realize(SDHCIState *s, Error **errp);
 void sdhci_common_unrealize(SDHCIState *s);
-void sdhci_common_class_init(ObjectClass *klass, void *data);
+void sdhci_common_class_init(ObjectClass *klass, const void *data);
 
 #endif
hw/sd/sdhci.c +1 -1
index 99dd4a4e952..1f45a77566c 100644
@@ -1542,7 +1542,7 @@ const VMStateDescription sdhci_vmstate = {
     },
 };
 
-void sdhci_common_class_init(ObjectClass *klass, void *data)
+void sdhci_common_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/sensor/emc141x.c +1 -1
index aeccd2a3c94..33c1bd330fd 100644
@@ -265,7 +265,7 @@ static void emc141x_initfn(Object *obj)
                         emc141x_set_temperature, NULL, NULL);
 }
 
-static void emc141x_class_init(ObjectClass *klass, void *data)
+static void emc141x_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     I2CSlaveClass *k = I2C_SLAVE_CLASS(klass);
hw/sensor/isl_pmbus_vr.c +1 -1
index 304a66ea8b0..c60282cfe77 100644
@@ -233,7 +233,7 @@ static void raa228000_init(Object *obj)
     isl_pmbus_vr_add_props(obj, flags, 1);
 }
 
-static void isl_pmbus_vr_class_init(ObjectClass *klass, void *data,
+static void isl_pmbus_vr_class_init(ObjectClass *klass, const void *data,
                                     uint8_t pages)
 {
     PMBusDeviceClass *k = PMBUS_DEVICE_CLASS(klass);
Signature · 1 line
2.47.1
#3 lore raw

PATCH v3 3/19 target/i386: Constify X86CPUModel uses

In reply to Philippe Mathieu-Daudé
---
 target/i386/cpu.h | 2 +-
 target/i386/cpu.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
target/i386/cpu.h +1 -1
index c67b42d34fc..f9ce6970ee1 100644
@@ -2288,7 +2288,7 @@ struct X86CPUClass {
      * CPU definition, automatically loaded by instance_init if not NULL.
      * Should be eventually replaced by subclass-specific property defaults.
      */
-    X86CPUModel *model;
+    const X86CPUModel *model;
 
     bool host_cpuid_required;
     int ordering;
target/i386/cpu.c +4 -4
index b5dd60d2812..4b2da45366b 100644
@@ -6436,7 +6436,7 @@ void x86_cpu_apply_props(X86CPU *cpu, PropValue *props)
  * Only for builtin_x86_defs models initialized with x86_register_cpudef_types.
  */
 
-static void x86_cpu_apply_version_props(X86CPU *cpu, X86CPUModel *model)
+static void x86_cpu_apply_version_props(X86CPU *cpu, const X86CPUModel *model)
 {
     const X86CPUVersionDefinition *vdef;
     X86CPUVersion version = x86_cpu_model_resolve_version(model);
@@ -6465,7 +6465,7 @@ static void x86_cpu_apply_version_props(X86CPU *cpu, X86CPUModel *model)
 }
 
 static const CPUCaches *x86_cpu_get_versioned_cache_info(X86CPU *cpu,
-                                                         X86CPUModel *model)
+                                                       const X86CPUModel *model)
 {
     const X86CPUVersionDefinition *vdef;
     X86CPUVersion version = x86_cpu_model_resolve_version(model);
@@ -6493,7 +6493,7 @@ static const CPUCaches *x86_cpu_get_versioned_cache_info(X86CPU *cpu,
  * Load data from X86CPUDefinition into a X86CPU object.
  * Only for builtin_x86_defs models initialized with x86_register_cpudef_types.
  */
-static void x86_cpu_load_model(X86CPU *cpu, X86CPUModel *model)
+static void x86_cpu_load_model(X86CPU *cpu, const X86CPUModel *model)
 {
     const X86CPUDefinition *def = model->cpudef;
     CPUX86State *env = &cpu->env;
@@ -6563,7 +6563,7 @@ static const gchar *x86_gdb_arch_name(CPUState *cs)
 
 static void x86_cpu_cpudef_class_init(ObjectClass *oc, void *data)
 {
-    X86CPUModel *model = data;
+    const X86CPUModel *model = data;
     X86CPUClass *xcc = X86_CPU_CLASS(oc);
     CPUClass *cc = CPU_CLASS(oc);
 
Signature · 1 line
2.47.1
#4 lore raw

PATCH v3 4/19 target/sparc: Constify SPARCCPUClass::cpu_def

In reply to Philippe Mathieu-Daudé
---
 target/sparc/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/sparc/cpu.h +1 -1
index dda811503b5..462bcb6c0e6 100644
@@ -574,7 +574,7 @@ struct SPARCCPUClass {
 
     DeviceRealize parent_realize;
     ResettablePhases parent_phases;
-    sparc_def_t *cpu_def;
+    const sparc_def_t *cpu_def;
 };
 
 #ifndef CONFIG_USER_ONLY
Signature · 1 line
2.47.1
#5 lore raw

PATCH v3 5/19 target/xtensa: Finalize config in xtensa_register_core()

In reply to Philippe Mathieu-Daudé

Make XtensaConfigList::config not const. Only modify XtensaConfig within xtensa_register_core(), when the class is registered, not when it is initialized.

---
 target/xtensa/cpu.h    | 2 +-
 target/xtensa/helper.c | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
target/xtensa/cpu.h +1 -1
index 0e6302c5bd3..8d70bfc0cd4 100644
@@ -490,7 +490,7 @@ typedef struct XtensaConfig {
 } XtensaConfig;
 
 typedef struct XtensaConfigList {
-    const XtensaConfig *config;
+    XtensaConfig *config;
     struct XtensaConfigList *next;
 } XtensaConfigList;
 
target/xtensa/helper.c +3 -2
index 2978c471c1f..f64699b116d 100644
@@ -173,9 +173,8 @@ static void xtensa_core_class_init(ObjectClass *oc, void *data)
 {
     CPUClass *cc = CPU_CLASS(oc);
     XtensaCPUClass *xcc = XTENSA_CPU_CLASS(oc);
-    XtensaConfig *config = data;
+    const XtensaConfig *config = data;
 
-    xtensa_finalize_config(config);
     xcc->config = config;
 
     /*
@@ -195,6 +194,8 @@ void xtensa_register_core(XtensaConfigList *node)
         .class_data = (void *)node->config,
     };
 
+    xtensa_finalize_config(node->config);
+
     node->next = xtensa_cores;
     xtensa_cores = node;
     type.name = g_strdup_printf(XTENSA_CPU_TYPE_NAME("%s"), node->config->name);
Signature · 1 line
2.47.1
#6 lore raw

PATCH v3 6/19 target/riscv: Declare RISCVCPUClass::misa_mxl_max as RISCVMXL

In reply to Philippe Mathieu-Daudé
---
 target/riscv/cpu.h | 2 +-
 target/riscv/cpu.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
target/riscv/cpu.h +1 -1
index 97713681cbe..fbe5548cf5a 100644
@@ -529,7 +529,7 @@ struct RISCVCPUClass {
 
     DeviceRealize parent_realize;
     ResettablePhases parent_phases;
-    uint32_t misa_mxl_max;  /* max mxl for this cpu */
+    RISCVMXL misa_mxl_max;  /* max mxl for this cpu */
 };
 
 static inline int riscv_has_ext(CPURISCVState *env, target_ulong ext)
target/riscv/cpu.c +1 -1
index 3d4bd157d2c..f3ad7f88f0e 100644
@@ -2955,7 +2955,7 @@ static void riscv_cpu_class_init(ObjectClass *c, void *data)
 {
     RISCVCPUClass *mcc = RISCV_CPU_CLASS(c);
 
-    mcc->misa_mxl_max = (uint32_t)(uintptr_t)data;
+    mcc->misa_mxl_max = (RISCVMXL)(uintptr_t)data;
     riscv_cpu_validate_misa_mxl(mcc);
 }
 
Signature · 1 line
2.47.1
Reviewed-by on v3 6/19
#7 lore raw

Re: [PATCH v3 06/19] target/riscv: Declare RISCVCPUClass::misa_mxl_max as RISCVMXL

Quoted 3 lines · Philippe Mathieu-Daudé

Alistair

Quoted 35 lines
---
 target/riscv/cpu.h | 2 +-
 target/riscv/cpu.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
target/riscv/cpu.h +1 -1
index 97713681cbe..fbe5548cf5a 100644
@@ -529,7 +529,7 @@ struct RISCVCPUClass {
 
     DeviceRealize parent_realize;
     ResettablePhases parent_phases;
-    uint32_t misa_mxl_max;  /* max mxl for this cpu */
+    RISCVMXL misa_mxl_max;  /* max mxl for this cpu */
 };
 
 static inline int riscv_has_ext(CPURISCVState *env, target_ulong ext)
target/riscv/cpu.c +1 -2
index 3d4bd157d2c..f3ad7f88f0e 100644
@@ -2955,7 +2955,7 @@ static void riscv_cpu_class_init(ObjectClass *c, void *data)
 {
     RISCVCPUClass *mcc = RISCV_CPU_CLASS(c);
 
-    mcc->misa_mxl_max = (uint32_t)(uintptr_t)data;
+    mcc->misa_mxl_max = (RISCVMXL)(uintptr_t)data;
     riscv_cpu_validate_misa_mxl(mcc);
 }
 
--

2.47.1

#8 lore raw

PATCH v3 7/19 target/riscv: Convert misa_mxl_max using GLib macros

In reply to Philippe Mathieu-Daudé

Use GLib conversion macros to pass misa_mxl_max as riscv_cpu_class_init() class data.

---
 target/riscv/cpu.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
target/riscv/cpu.c +6 -6
index f3ad7f88f0e..9fe1b23a297 100644
@@ -2955,7 +2955,7 @@ static void riscv_cpu_class_init(ObjectClass *c, void *data)
 {
     RISCVCPUClass *mcc = RISCV_CPU_CLASS(c);
 
-    mcc->misa_mxl_max = (RISCVMXL)(uintptr_t)data;
+    mcc->misa_mxl_max = (RISCVMXL)GPOINTER_TO_UINT(data);
     riscv_cpu_validate_misa_mxl(mcc);
 }
 
@@ -3057,7 +3057,7 @@ void riscv_isa_write_fdt(RISCVCPU *cpu, void *fdt, char *nodename)
         .parent = TYPE_RISCV_CPU,                           \
         .instance_init = (initfn),                          \
         .class_init = riscv_cpu_class_init,                 \
-        .class_data = (void *)(misa_mxl_max)                \
+        .class_data = GUINT_TO_POINTER(misa_mxl_max)        \
     }
 
 #define DEFINE_DYNAMIC_CPU(type_name, misa_mxl_max, initfn) \
@@ -3066,7 +3066,7 @@ void riscv_isa_write_fdt(RISCVCPU *cpu, void *fdt, char *nodename)
         .parent = TYPE_RISCV_DYNAMIC_CPU,                   \
         .instance_init = (initfn),                          \
         .class_init = riscv_cpu_class_init,                 \
-        .class_data = (void *)(misa_mxl_max)                \
+        .class_data = GUINT_TO_POINTER(misa_mxl_max)        \
     }
 
 #define DEFINE_VENDOR_CPU(type_name, misa_mxl_max, initfn)  \
@@ -3075,7 +3075,7 @@ void riscv_isa_write_fdt(RISCVCPU *cpu, void *fdt, char *nodename)
         .parent = TYPE_RISCV_VENDOR_CPU,                    \
         .instance_init = (initfn),                          \
         .class_init = riscv_cpu_class_init,                 \
-        .class_data = (void *)(misa_mxl_max)                \
+        .class_data = GUINT_TO_POINTER(misa_mxl_max)        \
     }
 
 #define DEFINE_BARE_CPU(type_name, misa_mxl_max, initfn)    \
@@ -3084,7 +3084,7 @@ void riscv_isa_write_fdt(RISCVCPU *cpu, void *fdt, char *nodename)
         .parent = TYPE_RISCV_BARE_CPU,                      \
         .instance_init = (initfn),                          \
         .class_init = riscv_cpu_class_init,                 \
-        .class_data = (void *)(misa_mxl_max)                \
+        .class_data = GUINT_TO_POINTER(misa_mxl_max)        \
     }
 
 #define DEFINE_PROFILE_CPU(type_name, misa_mxl_max, initfn) \
@@ -3093,7 +3093,7 @@ void riscv_isa_write_fdt(RISCVCPU *cpu, void *fdt, char *nodename)
         .parent = TYPE_RISCV_BARE_CPU,                      \
         .instance_init = (initfn),                          \
         .class_init = riscv_cpu_class_init,                 \
-        .class_data = (void *)(misa_mxl_max)                \
+        .class_data = GUINT_TO_POINTER(misa_mxl_max)        \
     }
 
 static const TypeInfo riscv_cpu_type_infos[] = {
Signature · 1 line
2.47.1
Reviewed-by on v3 7/19
#9 lore raw

Re: [PATCH v3 07/19] target/riscv: Convert misa_mxl_max using GLib macros

Quoted 6 lines · Philippe Mathieu-Daudé

Use GLib conversion macros to pass misa_mxl_max as riscv_cpu_class_init() class data.

Alistair

Quoted 66 lines
---
 target/riscv/cpu.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
target/riscv/cpu.c +6 -7
index f3ad7f88f0e..9fe1b23a297 100644
@@ -2955,7 +2955,7 @@ static void riscv_cpu_class_init(ObjectClass *c, void *data)
 {
     RISCVCPUClass *mcc = RISCV_CPU_CLASS(c);
 
-    mcc->misa_mxl_max = (RISCVMXL)(uintptr_t)data;
+    mcc->misa_mxl_max = (RISCVMXL)GPOINTER_TO_UINT(data);
     riscv_cpu_validate_misa_mxl(mcc);
 }
 
@@ -3057,7 +3057,7 @@ void riscv_isa_write_fdt(RISCVCPU *cpu, void *fdt, char *nodename)
         .parent = TYPE_RISCV_CPU,                           \
         .instance_init = (initfn),                          \
         .class_init = riscv_cpu_class_init,                 \
-        .class_data = (void *)(misa_mxl_max)                \
+        .class_data = GUINT_TO_POINTER(misa_mxl_max)        \
     }
 
 #define DEFINE_DYNAMIC_CPU(type_name, misa_mxl_max, initfn) \
@@ -3066,7 +3066,7 @@ void riscv_isa_write_fdt(RISCVCPU *cpu, void *fdt, char *nodename)
         .parent = TYPE_RISCV_DYNAMIC_CPU,                   \
         .instance_init = (initfn),                          \
         .class_init = riscv_cpu_class_init,                 \
-        .class_data = (void *)(misa_mxl_max)                \
+        .class_data = GUINT_TO_POINTER(misa_mxl_max)        \
     }
 
 #define DEFINE_VENDOR_CPU(type_name, misa_mxl_max, initfn)  \
@@ -3075,7 +3075,7 @@ void riscv_isa_write_fdt(RISCVCPU *cpu, void *fdt, char *nodename)
         .parent = TYPE_RISCV_VENDOR_CPU,                    \
         .instance_init = (initfn),                          \
         .class_init = riscv_cpu_class_init,                 \
-        .class_data = (void *)(misa_mxl_max)                \
+        .class_data = GUINT_TO_POINTER(misa_mxl_max)        \
     }
 
 #define DEFINE_BARE_CPU(type_name, misa_mxl_max, initfn)    \
@@ -3084,7 +3084,7 @@ void riscv_isa_write_fdt(RISCVCPU *cpu, void *fdt, char *nodename)
         .parent = TYPE_RISCV_BARE_CPU,                      \
         .instance_init = (initfn),                          \
         .class_init = riscv_cpu_class_init,                 \
-        .class_data = (void *)(misa_mxl_max)                \
+        .class_data = GUINT_TO_POINTER(misa_mxl_max)        \
     }
 
 #define DEFINE_PROFILE_CPU(type_name, misa_mxl_max, initfn) \
@@ -3093,7 +3093,7 @@ void riscv_isa_write_fdt(RISCVCPU *cpu, void *fdt, char *nodename)
         .parent = TYPE_RISCV_BARE_CPU,                      \
         .instance_init = (initfn),                          \
         .class_init = riscv_cpu_class_init,                 \
-        .class_data = (void *)(misa_mxl_max)                \
+        .class_data = GUINT_TO_POINTER(misa_mxl_max)        \
     }
 
 static const TypeInfo riscv_cpu_type_infos[] = {
--

2.47.1

#10 lore raw

PATCH v3 8/19 qom: Have class_base_init() take a const data argument

In reply to Philippe Mathieu-Daudé
---
 include/qom/object.h     | 2 +-
 hw/core/machine.c        | 2 +-
 hw/core/qdev.c           | 2 +-
 hw/pci/pci.c             | 2 +-
 qom/object.c             | 2 +-
 rust/qemu-api/src/qom.rs | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
include/qom/object.h +1 -1
index 9192265db76..7bb14ca7067 100644
@@ -487,7 +487,7 @@ struct TypeInfo
     size_t class_size;
 
     void (*class_init)(ObjectClass *klass, void *data);
-    void (*class_base_init)(ObjectClass *klass, void *data);
+    void (*class_base_init)(ObjectClass *klass, const void *data);
     void *class_data;
 
     InterfaceInfo *interfaces;
hw/core/machine.c +1 -1
index 254cc20c4cb..7bdde9286c2 100644
@@ -1236,7 +1236,7 @@ static void machine_class_init(ObjectClass *oc, void *data)
         "Memory size configuration");
 }
 
-static void machine_class_base_init(ObjectClass *oc, void *data)
+static void machine_class_base_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     mc->max_cpus = mc->max_cpus ?: 1;
hw/core/qdev.c +1 -1
index 2745b5e0929..1e0f47cc848 100644
@@ -693,7 +693,7 @@ static void device_finalize(Object *obj)
     g_free(dev->id);
 }
 
-static void device_class_base_init(ObjectClass *class, void *data)
+static void device_class_base_init(ObjectClass *class, const void *data)
 {
     DeviceClass *klass = DEVICE_CLASS(class);
 
hw/pci/pci.c +1 -1
index 2afa423925c..00f50e6f2cc 100644
@@ -2712,7 +2712,7 @@ static void pci_device_class_init(ObjectClass *klass, void *data)
         "access to indirect DMA memory");
 }
 
-static void pci_device_class_base_init(ObjectClass *klass, void *data)
+static void pci_device_class_base_init(ObjectClass *klass, const void *data)
 {
     if (!object_class_is_abstract(klass)) {
         ObjectClass *conventional =
qom/object.c +1 -1
index 01618d06bd8..dfd59502d11 100644
@@ -55,7 +55,7 @@ struct TypeImpl
     size_t instance_align;
 
     void (*class_init)(ObjectClass *klass, void *data);
-    void (*class_base_init)(ObjectClass *klass, void *data);
+    void (*class_base_init)(ObjectClass *klass, const void *data);
 
     void *class_data;
 
rust/qemu-api/src/qom.rs +1 -1
index f50ee371aac..f3d43e066ef 100644
@@ -475,7 +475,7 @@ pub trait ObjectImpl: ObjectType + ClassInitImpl<Self::Class> {
     /// the effects of copying the contents of the parent's class struct
     /// to the descendants.
     const CLASS_BASE_INIT: Option<
-        unsafe extern "C" fn(klass: *mut ObjectClass, data: *mut c_void),
+        unsafe extern "C" fn(klass: *mut ObjectClass, data: *const c_void),
     > = None;
 
     const TYPE_INFO: TypeInfo = TypeInfo {
Signature · 1 line
2.47.1
#11 lore raw

PATCH v3 9/19 qom: Have class_init() take a const data argument

In reply to Philippe Mathieu-Daudé

Mechanical change using gsed, then style manually adapted to pass checkpatch.pl script.

---
 docs/devel/qom.rst                            |  8 +-
 docs/devel/reset.rst                          |  2 +-
 docs/devel/virtio-backends.rst                |  2 +-
 hw/usb/hcd-uhci.h                             |  2 +-
 include/hw/boards.h                           |  2 +-
 include/hw/i386/pc.h                          |  5 +-
 include/hw/virtio/virtio-pci.h                |  2 +-
 include/qom/object.h                          |  4 +-
 target/arm/cpu.h                              |  2 +-
 target/ppc/cpu.h                              |  3 +-
 accel/hvf/hvf-accel-ops.c                     |  4 +-
 accel/kvm/kvm-accel-ops.c                     |  2 +-
 accel/kvm/kvm-all.c                           |  2 +-
 accel/qtest/qtest.c                           |  4 +-
 accel/tcg/tcg-accel-ops.c                     |  2 +-
 accel/tcg/tcg-all.c                           |  2 +-
 accel/xen/xen-all.c                           |  4 +-
 authz/list.c                                  |  2 +-
 authz/listfile.c                              |  2 +-
 authz/pamacct.c                               |  2 +-
 authz/simple.c                                |  2 +-
 backends/confidential-guest-support.c         |  3 +-
 backends/cryptodev-builtin.c                  |  2 +-
 backends/cryptodev-lkcf.c                     |  2 +-
 backends/cryptodev-vhost-user.c               |  2 +-
 backends/cryptodev.c                          |  2 +-
 backends/dbus-vmstate.c                       |  2 +-
 backends/host_iommu_device.c                  |  2 +-
 backends/hostmem-epc.c                        |  2 +-
 backends/hostmem-file.c                       |  2 +-
 backends/hostmem-memfd.c                      |  2 +-
 backends/hostmem-ram.c                        |  2 +-
 backends/hostmem-shm.c                        |  2 +-
 backends/hostmem.c                            |  2 +-
 backends/iommufd.c                            |  4 +-
 backends/rng-builtin.c                        |  2 +-
 backends/rng-egd.c                            |  2 +-
 backends/rng-random.c                         |  2 +-
 backends/rng.c                                |  2 +-
 backends/tpm/tpm_emulator.c                   |  2 +-
 backends/tpm/tpm_passthrough.c                |  2 +-
 backends/vhost-user.c                         |  2 +-
 block/throttle-groups.c                       |  3 +-
 chardev/baum.c                                |  2 +-
 chardev/char-console.c                        |  2 +-
 chardev/char-fd.c                             |  2 +-
 chardev/char-file.c                           |  2 +-
 chardev/char-hub.c                            |  2 +-
 chardev/char-mux.c                            |  2 +-
 chardev/char-null.c                           |  2 +-
 chardev/char-parallel.c                       |  2 +-
 chardev/char-pipe.c                           |  2 +-
 chardev/char-pty.c                            |  2 +-
 chardev/char-ringbuf.c                        |  2 +-
 chardev/char-serial.c                         |  2 +-
 chardev/char-socket.c                         |  2 +-
 chardev/char-stdio.c                          |  2 +-
 chardev/char-udp.c                            |  2 +-
 chardev/char-win-stdio.c                      |  2 +-
 chardev/char-win.c                            |  2 +-
 chardev/char.c                                |  2 +-
 chardev/msmouse.c                             |  2 +-
 chardev/spice.c                               |  6 +-
 chardev/testdev.c                             |  2 +-
 chardev/wctablet.c                            |  2 +-
 crypto/secret.c                               |  2 +-
 crypto/secret_common.c                        |  2 +-
 crypto/secret_keyring.c                       |  2 +-
 crypto/tls-cipher-suites.c                    |  3 +-
 crypto/tlscreds.c                             |  2 +-
 crypto/tlscredsanon.c                         |  2 +-
 crypto/tlscredspsk.c                          |  2 +-
 crypto/tlscredsx509.c                         |  2 +-
 event-loop-base.c                             |  3 +-
 gdbstub/system.c                              |  2 +-
 hw/9pfs/virtio-9p-device.c                    |  2 +-
 hw/acpi/erst.c                                |  2 +-
 hw/acpi/generic_event_device.c                |  2 +-
 hw/acpi/pci.c                                 |  4 +-
 hw/acpi/piix4.c                               |  2 +-
 hw/acpi/vmclock.c                             |  2 +-
 hw/acpi/vmgenid.c                             |  2 +-
 hw/adc/aspeed_adc.c                           | 10 +--
 hw/adc/npcm7xx_adc.c                          |  2 +-
 hw/adc/stm32f2xx_adc.c                        |  2 +-
 hw/adc/zynq-xadc.c                            |  2 +-
 hw/alpha/typhoon.c                            |  2 +-
 hw/arm/allwinner-a10.c                        |  2 +-
 hw/arm/allwinner-h3.c                         |  2 +-
 hw/arm/allwinner-r40.c                        |  2 +-
 hw/arm/armsse.c                               |  2 +-
 hw/arm/armv7m.c                               |  4 +-
 hw/arm/aspeed.c                               | 56 +++++++-----
 hw/arm/aspeed_ast10x0.c                       |  2 +-
 hw/arm/aspeed_ast2400.c                       |  4 +-
 hw/arm/aspeed_ast2600.c                       |  2 +-
 hw/arm/aspeed_ast27x0.c                       |  2 +-
 hw/arm/aspeed_soc_common.c                    |  2 +-
 hw/arm/b-l475e-iot01a.c                       |  2 +-
 hw/arm/bcm2835_peripherals.c                  |  2 +-
 hw/arm/bcm2836.c                              |  8 +-
 hw/arm/bcm2838.c                              |  2 +-
 hw/arm/bcm2838_peripherals.c                  |  2 +-
 hw/arm/collie.c                               |  2 +-
 hw/arm/digic.c                                |  2 +-
 hw/arm/exynos4210.c                           |  2 +-
 hw/arm/exynos4_boards.c                       |  4 +-
 hw/arm/fby35.c                                |  2 +-
 hw/arm/fsl-imx25.c                            |  2 +-
 hw/arm/fsl-imx31.c                            |  2 +-
 hw/arm/fsl-imx6.c                             |  2 +-
 hw/arm/fsl-imx6ul.c                           |  2 +-
 hw/arm/fsl-imx7.c                             |  2 +-
 hw/arm/highbank.c                             |  6 +-
 hw/arm/integratorcp.c                         |  6 +-
 hw/arm/microbit.c                             |  2 +-
 hw/arm/mps2-tz.c                              | 10 +--
 hw/arm/mps2.c                                 | 10 +--
 hw/arm/mps3r.c                                |  4 +-
 hw/arm/msf2-soc.c                             |  2 +-
 hw/arm/musca.c                                |  6 +-
 hw/arm/musicpal.c                             | 14 +--
 hw/arm/npcm7xx.c                              |  6 +-
 hw/arm/npcm7xx_boards.c                       | 12 +--
 hw/arm/nrf51_soc.c                            |  2 +-
 hw/arm/omap_sx1.c                             |  4 +-
 hw/arm/raspi.c                                | 10 +--
 hw/arm/raspi4b.c                              |  2 +-
 hw/arm/realview.c                             |  8 +-
 hw/arm/sbsa-ref.c                             |  2 +-
 hw/arm/smmu-common.c                          |  2 +-
 hw/arm/smmuv3.c                               |  4 +-
 hw/arm/stellaris.c                            | 10 +--
 hw/arm/stm32f100_soc.c                        |  2 +-
 hw/arm/stm32f205_soc.c                        |  2 +-
 hw/arm/stm32f405_soc.c                        |  2 +-
 hw/arm/stm32l4x5_soc.c                        |  8 +-
 hw/arm/strongarm.c                            | 13 +--
 hw/arm/versatilepb.c                          |  6 +-
 hw/arm/vexpress.c                             |  6 +-
 hw/arm/virt.c                                 |  4 +-
 hw/arm/xen-pvh.c                              |  2 +-
 hw/arm/xilinx_zynq.c                          |  2 +-
 hw/arm/xlnx-versal-virt.c                     |  2 +-
 hw/arm/xlnx-versal.c                          |  2 +-
 hw/arm/xlnx-zcu102.c                          |  2 +-
 hw/arm/xlnx-zynqmp.c                          |  2 +-
 hw/audio/ac97.c                               |  2 +-
 hw/audio/adlib.c                              |  2 +-
 hw/audio/asc.c                                |  2 +-
 hw/audio/cs4231.c                             |  2 +-
 hw/audio/cs4231a.c                            |  2 +-
 hw/audio/es1370.c                             |  2 +-
 hw/audio/gus.c                                |  2 +-
 hw/audio/hda-codec.c                          |  8 +-
 hw/audio/intel-hda.c                          |  8 +-
 hw/audio/marvell_88w8618.c                    |  2 +-
 hw/audio/pcspk.c                              |  2 +-
 hw/audio/pl041.c                              |  2 +-
 hw/audio/sb16.c                               |  2 +-
 hw/audio/via-ac97.c                           |  4 +-
 hw/audio/virtio-snd-pci.c                     |  2 +-
 hw/audio/virtio-snd.c                         |  2 +-
 hw/audio/wm8750.c                             |  2 +-
 hw/avr/arduino.c                              | 10 +--
 hw/avr/atmega.c                               | 10 +--
 hw/block/fdc-isa.c                            |  2 +-
 hw/block/fdc-sysbus.c                         |  6 +-
 hw/block/fdc.c                                |  2 +-
 hw/block/m25p80.c                             |  4 +-
 hw/block/nand.c                               |  2 +-
 hw/block/pflash_cfi01.c                       |  2 +-
 hw/block/pflash_cfi02.c                       |  2 +-
 hw/block/swim.c                               |  4 +-
 hw/block/vhost-user-blk.c                     |  2 +-
 hw/block/virtio-blk.c                         |  2 +-
 hw/block/xen-block.c                          |  6 +-
 hw/char/avr_usart.c                           |  2 +-
 hw/char/bcm2835_aux.c                         |  2 +-
 hw/char/cadence_uart.c                        |  2 +-
 hw/char/cmsdk-apb-uart.c                      |  2 +-
 hw/char/debugcon.c                            |  2 +-
 hw/char/digic-uart.c                          |  2 +-
 hw/char/diva-gsp.c                            |  4 +-
 hw/char/escc.c                                |  2 +-
 hw/char/exynos4210_uart.c                     |  2 +-
 hw/char/goldfish_tty.c                        |  2 +-
 hw/char/grlib_apbuart.c                       |  2 +-
 hw/char/ibex_uart.c                           |  2 +-
 hw/char/imx_serial.c                          |  2 +-
 hw/char/ipoctal232.c                          |  2 +-
 hw/char/mcf_uart.c                            |  2 +-
 hw/char/mchp_pfsoc_mmuart.c                   |  2 +-
 hw/char/nrf51_uart.c                          |  2 +-
 hw/char/parallel.c                            |  2 +-
 hw/char/pl011.c                               |  2 +-
 hw/char/renesas_sci.c                         |  2 +-
 hw/char/sclpconsole-lm.c                      |  2 +-
 hw/char/sclpconsole.c                         |  2 +-
 hw/char/serial-isa.c                          |  2 +-
 hw/char/serial-mm.c                           |  2 +-
 hw/char/serial-pci-multi.c                    |  6 +-
 hw/char/serial-pci.c                          |  2 +-
 hw/char/serial.c                              |  2 +-
 hw/char/sh_serial.c                           |  2 +-
 hw/char/shakti_uart.c                         |  2 +-
 hw/char/sifive_uart.c                         |  2 +-
 hw/char/spapr_vty.c                           |  2 +-
 hw/char/stm32f2xx_usart.c                     |  2 +-
 hw/char/stm32l4x5_usart.c                     |  9 +-
 hw/char/terminal3270.c                        |  2 +-
 hw/char/virtio-console.c                      |  4 +-
 hw/char/virtio-serial-bus.c                   |  6 +-
 hw/char/xen_console.c                         |  2 +-
 hw/char/xilinx_uartlite.c                     |  2 +-
 hw/core/bus.c                                 |  2 +-
 hw/core/clock.c                               |  2 +-
 hw/core/cpu-common.c                          |  2 +-
 hw/core/generic-loader.c                      |  2 +-
 hw/core/guest-loader.c                        |  2 +-
 hw/core/machine.c                             |  2 +-
 hw/core/or-irq.c                              |  2 +-
 hw/core/platform-bus.c                        |  2 +-
 hw/core/qdev.c                                |  2 +-
 hw/core/register.c                            |  2 +-
 hw/core/reset.c                               |  2 +-
 hw/core/resetcontainer.c                      |  3 +-
 hw/core/split-irq.c                           |  2 +-
 hw/core/sysbus.c                              |  4 +-
 hw/cpu/a15mpcore.c                            |  2 +-
 hw/cpu/a9mpcore.c                             |  2 +-
 hw/cpu/arm11mpcore.c                          |  2 +-
 hw/cpu/cluster.c                              |  2 +-
 hw/cpu/core.c                                 |  2 +-
 hw/cpu/realview_mpcore.c                      |  2 +-
 hw/cxl/switch-mailbox-cci.c                   |  2 +-
 hw/display/artist.c                           |  2 +-
 hw/display/ati.c                              |  2 +-
 hw/display/bcm2835_fb.c                       |  2 +-
 hw/display/bochs-display.c                    |  2 +-
 hw/display/cg3.c                              |  2 +-
 hw/display/cirrus_vga.c                       |  2 +-
 hw/display/cirrus_vga_isa.c                   |  2 +-
 hw/display/dm163.c                            |  2 +-
 hw/display/dpcd.c                             |  2 +-
 hw/display/exynos4210_fimd.c                  |  2 +-
 hw/display/g364fb.c                           |  2 +-
 hw/display/i2c-ddc.c                          |  2 +-
 hw/display/jazz_led.c                         |  2 +-
 hw/display/macfb.c                            |  4 +-
 hw/display/next-fb.c                          |  2 +-
 hw/display/pl110.c                            |  2 +-
 hw/display/qxl.c                              |  6 +-
 hw/display/ramfb-standalone.c                 |  2 +-
 hw/display/sii9022.c                          |  2 +-
 hw/display/sm501.c                            |  4 +-
 hw/display/ssd0303.c                          |  2 +-
 hw/display/ssd0323.c                          |  2 +-
 hw/display/tcx.c                              |  2 +-
 hw/display/vga-isa.c                          |  2 +-
 hw/display/vga-mmio.c                         |  2 +-
 hw/display/vga-pci.c                          |  6 +-
 hw/display/vhost-user-gpu.c                   |  2 +-
 hw/display/virtio-gpu-base.c                  |  2 +-
 hw/display/virtio-gpu-gl.c                    |  2 +-
 hw/display/virtio-gpu-pci.c                   |  2 +-
 hw/display/virtio-gpu-rutabaga.c              |  2 +-
 hw/display/virtio-gpu.c                       |  2 +-
 hw/display/virtio-vga.c                       |  2 +-
 hw/display/vmware_vga.c                       |  2 +-
 hw/display/xlnx_dp.c                          |  2 +-
 hw/dma/bcm2835_dma.c                          |  2 +-
 hw/dma/i82374.c                               |  2 +-
 hw/dma/i8257.c                                |  2 +-
 hw/dma/pl080.c                                |  2 +-
 hw/dma/pl330.c                                |  2 +-
 hw/dma/rc4030.c                               |  4 +-
 hw/dma/sifive_pdma.c                          |  2 +-
 hw/dma/sparc32_dma.c                          | 10 ++-
 hw/dma/xilinx_axidma.c                        |  5 +-
 hw/dma/xlnx-zdma.c                            |  2 +-
 hw/dma/xlnx-zynq-devcfg.c                     |  2 +-
 hw/dma/xlnx_csu_dma.c                         |  2 +-
 hw/dma/xlnx_dpdma.c                           |  2 +-
 hw/fsi/aspeed_apb2opb.c                       |  2 +-
 hw/fsi/cfam.c                                 |  2 +-
 hw/fsi/fsi-master.c                           |  2 +-
 hw/fsi/fsi.c                                  |  2 +-
 hw/fsi/lbus.c                                 |  2 +-
 hw/gpio/aspeed_gpio.c                         | 16 ++--
 hw/gpio/bcm2835_gpio.c                        |  2 +-
 hw/gpio/bcm2838_gpio.c                        |  2 +-
 hw/gpio/gpio_key.c                            |  2 +-
 hw/gpio/imx_gpio.c                            |  2 +-
 hw/gpio/mpc8xxx.c                             |  2 +-
 hw/gpio/npcm7xx_gpio.c                        |  2 +-
 hw/gpio/nrf51_gpio.c                          |  2 +-
 hw/gpio/omap_gpio.c                           |  2 +-
 hw/gpio/pca9552.c                             |  4 +-
 hw/gpio/pca9554.c                             |  2 +-
 hw/gpio/pcf8574.c                             |  2 +-
 hw/gpio/pl061.c                               |  2 +-
 hw/gpio/sifive_gpio.c                         |  2 +-
 hw/gpio/stm32l4x5_gpio.c                      |  2 +-
 hw/gpio/zaurus.c                              |  2 +-
 hw/hppa/machine.c                             |  4 +-
 hw/hyperv/hv-balloon.c                        |  2 +-
 hw/hyperv/hyperv.c                            |  2 +-
 hw/hyperv/hyperv_testdev.c                    |  2 +-
 hw/hyperv/syndbg.c                            |  2 +-
 hw/hyperv/vmbus.c                             |  6 +-
 hw/i2c/allwinner-i2c.c                        |  2 +-
 hw/i2c/aspeed_i2c.c                           | 17 ++--
 hw/i2c/bcm2835_i2c.c                          |  2 +-
 hw/i2c/bitbang_i2c.c                          |  2 +-
 hw/i2c/core.c                                 |  2 +-
 hw/i2c/exynos4210_i2c.c                       |  2 +-
 hw/i2c/i2c_mux_pca954x.c                      |  6 +-
 hw/i2c/imx_i2c.c                              |  2 +-
 hw/i2c/microbit_i2c.c                         |  2 +-
 hw/i2c/mpc_i2c.c                              |  2 +-
 hw/i2c/npcm7xx_smbus.c                        |  2 +-
 hw/i2c/omap_i2c.c                             |  2 +-
 hw/i2c/pmbus_device.c                         |  2 +-
 hw/i2c/ppc4xx_i2c.c                           |  2 +-
 hw/i2c/smbus_eeprom.c                         |  2 +-
 hw/i2c/smbus_ich9.c                           |  2 +-
 hw/i2c/smbus_slave.c                          |  2 +-
 hw/i386/amd_iommu.c                           |  7 +-
 hw/i386/intel_iommu.c                         |  4 +-
 hw/i386/kvm/apic.c                            |  2 +-
 hw/i386/kvm/clock.c                           |  2 +-
 hw/i386/kvm/i8254.c                           |  2 +-
 hw/i386/kvm/i8259.c                           |  2 +-
 hw/i386/kvm/ioapic.c                          |  2 +-
 hw/i386/kvm/xen_evtchn.c                      |  2 +-
 hw/i386/kvm/xen_gnttab.c                      |  2 +-
 hw/i386/kvm/xen_overlay.c                     |  2 +-
 hw/i386/kvm/xen_primary_console.c             |  2 +-
 hw/i386/kvm/xen_xenstore.c                    |  2 +-
 hw/i386/microvm.c                             |  2 +-
 hw/i386/nitro_enclave.c                       |  2 +-
 hw/i386/pc.c                                  |  2 +-
 hw/i386/port92.c                              |  2 +-
 hw/i386/sgx-epc.c                             |  2 +-
 hw/i386/vapic.c                               |  2 +-
 hw/i386/vmmouse.c                             |  2 +-
 hw/i386/vmport.c                              |  2 +-
 hw/i386/x86-iommu.c                           |  2 +-
 hw/i386/x86.c                                 |  2 +-
 hw/i386/xen/xen-pvh.c                         |  2 +-
 hw/i386/xen/xen_apic.c                        |  2 +-
 hw/i386/xen/xen_platform.c                    |  2 +-
 hw/i386/xen/xen_pvdevice.c                    |  2 +-
 hw/ide/ahci-allwinner.c                       |  2 +-
 hw/ide/ahci-sysbus.c                          |  2 +-
 hw/ide/cf.c                                   |  2 +-
 hw/ide/cmd646.c                               |  2 +-
 hw/ide/ich.c                                  |  2 +-
 hw/ide/ide-bus.c                              |  2 +-
 hw/ide/ide-dev.c                              |  6 +-
 hw/ide/isa.c                                  |  2 +-
 hw/ide/macio.c                                |  2 +-
 hw/ide/mmio.c                                 |  2 +-
 hw/ide/piix.c                                 |  4 +-
 hw/ide/sii3112.c                              |  2 +-
 hw/ide/via.c                                  |  2 +-
 hw/input/adb-kbd.c                            |  2 +-
 hw/input/adb-mouse.c                          |  2 +-
 hw/input/adb.c                                |  4 +-
 hw/input/lasips2.c                            |  8 +-
 hw/input/pckbd.c                              |  4 +-
 hw/input/pl050.c                              |  6 +-
 hw/input/ps2.c                                |  6 +-
 hw/input/stellaris_gamepad.c                  |  2 +-
 hw/input/virtio-input-hid.c                   |  6 +-
 hw/input/virtio-input-host.c                  |  2 +-
 hw/input/virtio-input.c                       |  2 +-
 hw/intc/allwinner-a10-pic.c                   |  2 +-
 hw/intc/apic.c                                |  2 +-
 hw/intc/apic_common.c                         |  2 +-
 hw/intc/arm_gic.c                             |  2 +-
 hw/intc/arm_gic_common.c                      |  2 +-
 hw/intc/arm_gic_kvm.c                         |  2 +-
 hw/intc/arm_gicv2m.c                          |  2 +-
 hw/intc/arm_gicv3.c                           |  2 +-
 hw/intc/arm_gicv3_common.c                    |  2 +-
 hw/intc/arm_gicv3_its.c                       |  2 +-
 hw/intc/arm_gicv3_its_common.c                |  2 +-
 hw/intc/arm_gicv3_its_kvm.c                   |  2 +-
 hw/intc/arm_gicv3_kvm.c                       |  2 +-
 hw/intc/armv7m_nvic.c                         |  2 +-
 hw/intc/aspeed_intc.c                         |  4 +-
 hw/intc/aspeed_vic.c                          |  2 +-
 hw/intc/bcm2835_ic.c                          |  2 +-
 hw/intc/bcm2836_control.c                     |  2 +-
 hw/intc/exynos4210_combiner.c                 |  2 +-
 hw/intc/exynos4210_gic.c                      |  2 +-
 hw/intc/goldfish_pic.c                        |  2 +-
 hw/intc/grlib_irqmp.c                         |  2 +-
 hw/intc/heathrow_pic.c                        |  2 +-
 hw/intc/i8259.c                               |  2 +-
 hw/intc/i8259_common.c                        |  2 +-
 hw/intc/imx_avic.c                            |  2 +-
 hw/intc/imx_gpcv2.c                           |  2 +-
 hw/intc/ioapic.c                              |  2 +-
 hw/intc/ioapic_common.c                       |  2 +-
 hw/intc/loongarch_extioi.c                    |  2 +-
 hw/intc/loongarch_extioi_common.c             |  3 +-
 hw/intc/loongarch_ipi.c                       |  2 +-
 hw/intc/loongarch_pch_msi.c                   |  2 +-
 hw/intc/loongarch_pch_pic.c                   |  2 +-
 hw/intc/loongarch_pic_common.c                |  3 +-
 hw/intc/loongson_ipi.c                        |  2 +-
 hw/intc/loongson_ipi_common.c                 |  2 +-
 hw/intc/m68k_irqc.c                           |  2 +-
 hw/intc/mips_gic.c                            |  2 +-
 hw/intc/omap_intc.c                           |  2 +-
 hw/intc/ompic.c                               |  2 +-
 hw/intc/openpic.c                             |  2 +-
 hw/intc/openpic_kvm.c                         |  2 +-
 hw/intc/pl190.c                               |  2 +-
 hw/intc/pnv_xive.c                            |  2 +-
 hw/intc/pnv_xive2.c                           |  2 +-
 hw/intc/ppc-uic.c                             |  2 +-
 hw/intc/realview_gic.c                        |  2 +-
 hw/intc/riscv_aclint.c                        |  4 +-
 hw/intc/riscv_aplic.c                         |  2 +-
 hw/intc/riscv_imsic.c                         |  2 +-
 hw/intc/rx_icu.c                              |  2 +-
 hw/intc/s390_flic.c                           |  4 +-
 hw/intc/s390_flic_kvm.c                       |  2 +-
 hw/intc/sifive_plic.c                         |  2 +-
 hw/intc/slavio_intctl.c                       |  2 +-
 hw/intc/spapr_xive.c                          |  2 +-
 hw/intc/xics.c                                |  4 +-
 hw/intc/xics_pnv.c                            |  2 +-
 hw/intc/xics_spapr.c                          |  2 +-
 hw/intc/xilinx_intc.c                         |  2 +-
 hw/intc/xive.c                                |  8 +-
 hw/intc/xive2.c                               |  4 +-
 hw/intc/xlnx-pmu-iomod-intc.c                 |  2 +-
 hw/intc/xlnx-zynqmp-ipi.c                     |  2 +-
 hw/ipack/ipack.c                              |  2 +-
 hw/ipack/tpci200.c                            |  2 +-
 hw/ipmi/ipmi.c                                |  4 +-
 hw/ipmi/ipmi_bmc_extern.c                     |  2 +-
 hw/ipmi/ipmi_bmc_sim.c                        |  2 +-
 hw/ipmi/isa_ipmi_bt.c                         |  2 +-
 hw/ipmi/isa_ipmi_kcs.c                        |  2 +-
 hw/ipmi/pci_ipmi_bt.c                         |  2 +-
 hw/ipmi/pci_ipmi_kcs.c                        |  2 +-
 hw/ipmi/smbus_ipmi.c                          |  2 +-
 hw/isa/fdc37m81x-superio.c                    |  2 +-
 hw/isa/i82378.c                               |  2 +-
 hw/isa/isa-bus.c                              |  6 +-
 hw/isa/isa-superio.c                          |  2 +-
 hw/isa/lpc_ich9.c                             |  2 +-
 hw/isa/pc87312.c                              |  2 +-
 hw/isa/piix.c                                 |  6 +-
 hw/isa/smc37c669-superio.c                    |  2 +-
 hw/isa/vt82c686.c                             | 12 +--
 hw/loongarch/virt.c                           |  2 +-
 hw/m68k/mcf5206.c                             |  2 +-
 hw/m68k/mcf_intc.c                            |  2 +-
 hw/m68k/next-cube.c                           |  8 +-
 hw/m68k/next-kbd.c                            |  2 +-
 hw/m68k/q800-glue.c                           |  2 +-
 hw/m68k/q800.c                                |  2 +-
 hw/m68k/virt.c                                |  4 +-
 hw/mem/cxl_type3.c                            |  2 +-
 hw/mem/npcm7xx_mc.c                           |  2 +-
 hw/mem/nvdimm.c                               |  2 +-
 hw/mem/pc-dimm.c                              |  2 +-
 hw/mem/sparse-mem.c                           |  2 +-
 hw/microblaze/petalogix_s3adsp1800_mmu.c      |  3 +-
 hw/microblaze/xlnx-zynqmp-pmu.c               |  2 +-
 hw/mips/cps.c                                 |  2 +-
 hw/mips/jazz.c                                |  4 +-
 hw/mips/loongson3_virt.c                      |  2 +-
 hw/misc/a9scu.c                               |  2 +-
 hw/misc/allwinner-a10-ccm.c                   |  2 +-
 hw/misc/allwinner-a10-dramc.c                 |  2 +-
 hw/misc/allwinner-cpucfg.c                    |  2 +-
 hw/misc/allwinner-h3-ccu.c                    |  2 +-
 hw/misc/allwinner-h3-dramc.c                  |  2 +-
 hw/misc/allwinner-h3-sysctrl.c                |  3 +-
 hw/misc/allwinner-r40-ccu.c                   |  2 +-
 hw/misc/allwinner-r40-dramc.c                 |  2 +-
 hw/misc/allwinner-sid.c                       |  2 +-
 hw/misc/allwinner-sramc.c                     |  4 +-
 hw/misc/applesmc.c                            |  2 +-
 hw/misc/arm11scu.c                            |  2 +-
 hw/misc/arm_l2x0.c                            |  2 +-
 hw/misc/arm_sysctl.c                          |  2 +-
 hw/misc/armsse-cpu-pwrctrl.c                  |  2 +-
 hw/misc/armsse-cpuid.c                        |  2 +-
 hw/misc/armsse-mhu.c                          |  2 +-
 hw/misc/armv7m_ras.c                          |  2 +-
 hw/misc/aspeed_hace.c                         | 10 +--
 hw/misc/aspeed_i3c.c                          |  4 +-
 hw/misc/aspeed_lpc.c                          |  2 +-
 hw/misc/aspeed_peci.c                         |  2 +-
 hw/misc/aspeed_sbc.c                          |  4 +-
 hw/misc/aspeed_scu.c                          | 14 +--
 hw/misc/aspeed_sdmc.c                         | 10 +--
 hw/misc/aspeed_sli.c                          |  6 +-
 hw/misc/aspeed_xdma.c                         |  8 +-
 hw/misc/auxbus.c                              |  6 +-
 hw/misc/avr_power.c                           |  2 +-
 hw/misc/axp2xx.c                              |  6 +-
 hw/misc/bcm2835_cprman.c                      | 10 +--
 hw/misc/bcm2835_mbox.c                        |  2 +-
 hw/misc/bcm2835_mphi.c                        |  2 +-
 hw/misc/bcm2835_powermgt.c                    |  2 +-
 hw/misc/bcm2835_property.c                    |  2 +-
 hw/misc/bcm2835_rng.c                         |  2 +-
 hw/misc/bcm2835_thermal.c                     |  2 +-
 hw/misc/debugexit.c                           |  2 +-
 hw/misc/djmemc.c                              |  2 +-
 hw/misc/eccmemctl.c                           |  2 +-
 hw/misc/edu.c                                 |  2 +-
 hw/misc/empty_slot.c                          |  2 +-
 hw/misc/exynos4210_clk.c                      |  2 +-
 hw/misc/exynos4210_pmu.c                      |  2 +-
 hw/misc/exynos4210_rng.c                      |  2 +-
 hw/misc/grlib_ahb_apb_pnp.c                   |  4 +-
 hw/misc/i2c-echo.c                            |  2 +-
 hw/misc/imx25_ccm.c                           |  2 +-
 hw/misc/imx31_ccm.c                           |  2 +-
 hw/misc/imx6_ccm.c                            |  2 +-
 hw/misc/imx6_src.c                            |  2 +-
 hw/misc/imx6ul_ccm.c                          |  2 +-
 hw/misc/imx7_ccm.c                            |  4 +-
 hw/misc/imx7_gpr.c                            |  2 +-
 hw/misc/imx7_snvs.c                           |  2 +-
 hw/misc/imx7_src.c                            |  2 +-
 hw/misc/imx_rngc.c                            |  2 +-
 hw/misc/iosb.c                                |  2 +-
 hw/misc/iotkit-secctl.c                       |  2 +-
 hw/misc/iotkit-sysctl.c                       |  2 +-
 hw/misc/iotkit-sysinfo.c                      |  2 +-
 hw/misc/ivshmem-flat.c                        |  2 +-
 hw/misc/ivshmem-pci.c                         |  6 +-
 hw/misc/lasi.c                                |  2 +-
 hw/misc/led.c                                 |  2 +-
 hw/misc/mac_via.c                             |  4 +-
 hw/misc/macio/cuda.c                          |  4 +-
 hw/misc/macio/gpio.c                          |  2 +-
 hw/misc/macio/mac_dbdma.c                     |  2 +-
 hw/misc/macio/macio.c                         |  6 +-
 hw/misc/macio/pmu.c                           |  4 +-
 hw/misc/mchp_pfsoc_dmc.c                      |  5 +-
 hw/misc/mchp_pfsoc_ioscb.c                    |  2 +-
 hw/misc/mchp_pfsoc_sysreg.c                   |  2 +-
 hw/misc/mips_cmgcr.c                          |  2 +-
 hw/misc/mips_cpc.c                            |  2 +-
 hw/misc/mips_itu.c                            |  2 +-
 hw/misc/mos6522.c                             |  2 +-
 hw/misc/mps2-fpgaio.c                         |  2 +-
 hw/misc/mps2-scc.c                            |  2 +-
 hw/misc/msf2-sysreg.c                         |  2 +-
 hw/misc/npcm7xx_clk.c                         |  8 +-
 hw/misc/npcm7xx_gcr.c                         |  2 +-
 hw/misc/npcm7xx_mft.c                         |  2 +-
 hw/misc/npcm7xx_pwm.c                         |  2 +-
 hw/misc/npcm7xx_rng.c                         |  2 +-
 hw/misc/nrf51_rng.c                           |  2 +-
 hw/misc/pc-testdev.c                          |  2 +-
 hw/misc/pci-testdev.c                         |  2 +-
 hw/misc/pvpanic-isa.c                         |  2 +-
 hw/misc/pvpanic-pci.c                         |  2 +-
 hw/misc/sbsa_ec.c                             |  2 +-
 hw/misc/sifive_e_aon.c                        |  2 +-
 hw/misc/sifive_u_otp.c                        |  2 +-
 hw/misc/sifive_u_prci.c                       |  2 +-
 hw/misc/slavio_misc.c                         |  2 +-
 hw/misc/stm32_rcc.c                           |  2 +-
 hw/misc/stm32f2xx_syscfg.c                    |  2 +-
 hw/misc/stm32f4xx_exti.c                      |  2 +-
 hw/misc/stm32f4xx_syscfg.c                    |  2 +-
 hw/misc/stm32l4x5_exti.c                      |  2 +-
 hw/misc/stm32l4x5_rcc.c                       |  6 +-
 hw/misc/stm32l4x5_syscfg.c                    |  2 +-
 hw/misc/tz-mpc.c                              |  4 +-
 hw/misc/tz-msc.c                              |  2 +-
 hw/misc/tz-ppc.c                              |  2 +-
 hw/misc/unimp.c                               |  2 +-
 hw/misc/virt_ctrl.c                           |  2 +-
 hw/misc/vmcoreinfo.c                          |  2 +-
 hw/misc/xlnx-versal-cframe-reg.c              |  4 +-
 hw/misc/xlnx-versal-cfu.c                     |  6 +-
 hw/misc/xlnx-versal-crl.c                     |  2 +-
 hw/misc/xlnx-versal-pmc-iou-slcr.c            |  3 +-
 hw/misc/xlnx-versal-trng.c                    |  2 +-
 hw/misc/xlnx-versal-xramc.c                   |  2 +-
 hw/misc/xlnx-zynqmp-apu-ctrl.c                |  2 +-
 hw/misc/xlnx-zynqmp-crf.c                     |  2 +-
 hw/misc/zynq_slcr.c                           |  2 +-
 hw/net/allwinner-sun8i-emac.c                 |  3 +-
 hw/net/allwinner_emac.c                       |  2 +-
 hw/net/cadence_gem.c                          |  2 +-
 hw/net/can/can_kvaser_pci.c                   |  2 +-
 hw/net/can/can_mioe3680_pci.c                 |  2 +-
 hw/net/can/can_pcm3680_pci.c                  |  2 +-
 hw/net/can/ctucan_pci.c                       |  2 +-
 hw/net/can/xlnx-versal-canfd.c                |  2 +-
 hw/net/can/xlnx-zynqmp-can.c                  |  2 +-
 hw/net/dp8393x.c                              |  2 +-
 hw/net/e1000.c                                |  2 +-
 hw/net/e1000e.c                               |  2 +-
 hw/net/eepro100.c                             |  2 +-
 hw/net/fsl_etsec/etsec.c                      |  2 +-
 hw/net/ftgmac100.c                            |  4 +-
 hw/net/igb.c                                  |  2 +-
 hw/net/igbvf.c                                |  2 +-
 hw/net/imx_fec.c                              |  2 +-
 hw/net/lan9118.c                              |  2 +-
 hw/net/lan9118_phy.c                          |  2 +-
 hw/net/lance.c                                |  2 +-
 hw/net/lasi_i82596.c                          |  2 +-
 hw/net/mcf_fec.c                              |  2 +-
 hw/net/mipsnet.c                              |  2 +-
 hw/net/msf2-emac.c                            |  2 +-
 hw/net/mv88w8618_eth.c                        |  2 +-
 hw/net/ne2000-isa.c                           |  2 +-
 hw/net/ne2000-pci.c                           |  2 +-
 hw/net/npcm7xx_emc.c                          |  2 +-
 hw/net/npcm_gmac.c                            |  2 +-
 hw/net/opencores_eth.c                        |  2 +-
 hw/net/pcnet-pci.c                            |  2 +-
 hw/net/rocker/rocker.c                        |  2 +-
 hw/net/rtl8139.c                              |  2 +-
 hw/net/smc91c111.c                            |  2 +-
 hw/net/spapr_llan.c                           |  2 +-
 hw/net/stellaris_enet.c                       |  2 +-
 hw/net/sungem.c                               |  2 +-
 hw/net/sunhme.c                               |  2 +-
 hw/net/tulip.c                                |  2 +-
 hw/net/virtio-net.c                           |  2 +-
 hw/net/vmxnet3.c                              |  2 +-
 hw/net/xen_nic.c                              |  2 +-
 hw/net/xgmac.c                                |  2 +-
 hw/net/xilinx_axienet.c                       |  7 +-
 hw/net/xilinx_ethlite.c                       |  2 +-
 hw/nubus/mac-nubus-bridge.c                   |  2 +-
 hw/nubus/nubus-bridge.c                       |  2 +-
 hw/nubus/nubus-bus.c                          |  2 +-
 hw/nubus/nubus-device.c                       |  2 +-
 hw/nubus/nubus-virtio-mmio.c                  |  2 +-
 hw/nvme/ctrl.c                                |  2 +-
 hw/nvme/ns.c                                  |  2 +-
 hw/nvme/subsys.c                              |  2 +-
 hw/nvram/bcm2835_otp.c                        |  2 +-
 hw/nvram/ds1225y.c                            |  2 +-
 hw/nvram/eeprom_at24c.c                       |  2 +-
 hw/nvram/fw_cfg.c                             |  6 +-
 hw/nvram/mac_nvram.c                          |  2 +-
 hw/nvram/npcm7xx_otp.c                        |  6 +-
 hw/nvram/nrf51_nvm.c                          |  2 +-
 hw/nvram/spapr_nvram.c                        |  2 +-
 hw/nvram/xlnx-bbram.c                         |  2 +-
 hw/nvram/xlnx-efuse.c                         |  2 +-
 hw/nvram/xlnx-versal-efuse-cache.c            |  2 +-
 hw/nvram/xlnx-versal-efuse-ctrl.c             |  2 +-
 hw/nvram/xlnx-zynqmp-efuse.c                  |  2 +-
 hw/openrisc/openrisc_sim.c                    |  2 +-
 hw/openrisc/virt.c                            |  2 +-
 hw/pci-bridge/cxl_downstream.c                |  2 +-
 hw/pci-bridge/cxl_root_port.c                 |  2 +-
 hw/pci-bridge/cxl_upstream.c                  |  2 +-
 hw/pci-bridge/gen_pcie_root_port.c            |  2 +-
 hw/pci-bridge/i82801b11.c                     |  2 +-
 hw/pci-bridge/ioh3420.c                       |  2 +-
 hw/pci-bridge/pci_bridge_dev.c                |  4 +-
 hw/pci-bridge/pci_expander_bridge.c           | 12 +--
 hw/pci-bridge/pcie_pci_bridge.c               |  2 +-
 hw/pci-bridge/pcie_root_port.c                |  2 +-
 hw/pci-bridge/simba.c                         |  2 +-
 hw/pci-bridge/xio3130_downstream.c            |  2 +-
 hw/pci-bridge/xio3130_upstream.c              |  2 +-
 hw/pci-host/articia.c                         |  6 +-
 hw/pci-host/astro.c                           |  6 +-
 hw/pci-host/bonito.c                          |  4 +-
 hw/pci-host/designware.c                      |  6 +-
 hw/pci-host/dino.c                            |  2 +-
 hw/pci-host/gpex.c                            |  4 +-
 hw/pci-host/grackle.c                         |  4 +-
 hw/pci-host/gt64120.c                         |  4 +-
 hw/pci-host/i440fx.c                          |  4 +-
 hw/pci-host/mv64361.c                         |  6 +-
 hw/pci-host/pnv_phb.c                         |  4 +-
 hw/pci-host/pnv_phb3.c                        |  6 +-
 hw/pci-host/pnv_phb3_msi.c                    |  2 +-
 hw/pci-host/pnv_phb3_pbcq.c                   |  2 +-
 hw/pci-host/pnv_phb4.c                        |  6 +-
 hw/pci-host/pnv_phb4_pec.c                    |  4 +-
 hw/pci-host/ppc440_pcix.c                     |  2 +-
 hw/pci-host/ppc4xx_pci.c                      |  4 +-
 hw/pci-host/ppce500.c                         |  4 +-
 hw/pci-host/q35.c                             |  4 +-
 hw/pci-host/raven.c                           |  4 +-
 hw/pci-host/remote.c                          |  2 +-
 hw/pci-host/sabre.c                           |  4 +-
 hw/pci-host/sh_pci.c                          |  4 +-
 hw/pci-host/uninorth.c                        | 19 ++--
 hw/pci-host/versatile.c                       |  4 +-
 hw/pci-host/xen_igd_pt.c                      |  3 +-
 hw/pci-host/xilinx-pcie.c                     |  4 +-
 hw/pci/pci.c                                  |  6 +-
 hw/pci/pci_bridge.c                           |  2 +-
 hw/pci/pci_host.c                             |  2 +-
 hw/pci/pcie_port.c                            |  4 +-
 hw/ppc/e500plat.c                             |  2 +-
 hw/ppc/mac_newworld.c                         |  2 +-
 hw/ppc/mac_oldworld.c                         |  2 +-
 hw/ppc/mpc8544ds.c                            |  2 +-
 hw/ppc/pef.c                                  |  2 +-
 hw/ppc/pegasos2.c                             |  2 +-
 hw/ppc/pnv.c                                  | 25 +++---
 hw/ppc/pnv_adu.c                              |  2 +-
 hw/ppc/pnv_chiptod.c                          |  6 +-
 hw/ppc/pnv_core.c                             | 14 +--
 hw/ppc/pnv_homer.c                            |  8 +-
 hw/ppc/pnv_i2c.c                              |  2 +-
 hw/ppc/pnv_lpc.c                              |  8 +-
 hw/ppc/pnv_n1_chiplet.c                       |  2 +-
 hw/ppc/pnv_nest_pervasive.c                   |  2 +-
 hw/ppc/pnv_occ.c                              |  8 +-
 hw/ppc/pnv_pnor.c                             |  2 +-
 hw/ppc/pnv_psi.c                              |  8 +-
 hw/ppc/pnv_sbe.c                              |  6 +-
 hw/ppc/ppc405_boards.c                        |  6 +-
 hw/ppc/ppc405_uc.c                            | 16 ++--
 hw/ppc/ppc440_uc.c                            |  2 +-
 hw/ppc/ppc4xx_devs.c                          |  8 +-
 hw/ppc/ppc4xx_sdram.c                         |  4 +-
 hw/ppc/ppce500_spin.c                         |  2 +-
 hw/ppc/prep_systemio.c                        |  2 +-
 hw/ppc/rs6000_mc.c                            |  2 +-
 hw/ppc/spapr.c                                |  4 +-
 hw/ppc/spapr_cpu_core.c                       |  2 +-
 hw/ppc/spapr_drc.c                            | 16 ++--
 hw/ppc/spapr_iommu.c                          |  5 +-
 hw/ppc/spapr_nvdimm.c                         |  2 +-
 hw/ppc/spapr_pci.c                            |  2 +-
 hw/ppc/spapr_rng.c                            |  2 +-
 hw/ppc/spapr_rtc.c                            |  2 +-
 hw/ppc/spapr_tpm_proxy.c                      |  2 +-
 hw/ppc/spapr_vio.c                            |  6 +-
 hw/remote/machine.c                           |  2 +-
 hw/remote/proxy.c                             |  2 +-
 hw/remote/remote-obj.c                        |  2 +-
 hw/remote/vfio-user-obj.c                     |  2 +-
 hw/riscv/microchip_pfsoc.c                    |  5 +-
 hw/riscv/opentitan.c                          |  4 +-
 hw/riscv/riscv-iommu-pci.c                    |  2 +-
 hw/riscv/riscv-iommu-sys.c                    |  2 +-
 hw/riscv/riscv-iommu.c                        |  4 +-
 hw/riscv/riscv_hart.c                         |  2 +-
 hw/riscv/shakti_c.c                           |  4 +-
 hw/riscv/sifive_e.c                           |  4 +-
 hw/riscv/sifive_u.c                           |  4 +-
 hw/riscv/spike.c                              |  2 +-
 hw/riscv/virt.c                               |  2 +-
 hw/rtc/allwinner-rtc.c                        |  8 +-
 hw/rtc/aspeed_rtc.c                           |  2 +-
 hw/rtc/ds1338.c                               |  2 +-
 hw/rtc/exynos4210_rtc.c                       |  2 +-
 hw/rtc/goldfish_rtc.c                         |  2 +-
 hw/rtc/ls7a_rtc.c                             |  2 +-
 hw/rtc/m41t80.c                               |  2 +-
 hw/rtc/m48t59-isa.c                           |  4 +-
 hw/rtc/m48t59.c                               |  5 +-
 hw/rtc/mc146818rtc.c                          |  2 +-
 hw/rtc/pl031.c                                |  2 +-
 hw/rtc/sun4v-rtc.c                            |  2 +-
 hw/rtc/xlnx-zynqmp-rtc.c                      |  2 +-
 hw/rx/rx-gdbsim.c                             |  6 +-
 hw/rx/rx62n.c                                 |  6 +-
 hw/s390x/3270-ccw.c                           |  2 +-
 hw/s390x/ap-bridge.c                          |  4 +-
 hw/s390x/ap-device.c                          |  2 +-
 hw/s390x/ccw-device.c                         |  2 +-
 hw/s390x/css-bridge.c                         |  4 +-
 hw/s390x/event-facility.c                     |  4 +-
 hw/s390x/ipl.c                                |  2 +-
 hw/s390x/s390-ccw.c                           |  2 +-
 hw/s390x/s390-pci-bus.c                       |  7 +-
 hw/s390x/s390-skeys-kvm.c                     |  2 +-
 hw/s390x/s390-skeys.c                         |  4 +-
 hw/s390x/s390-stattrib-kvm.c                  |  2 +-
 hw/s390x/s390-stattrib.c                      |  4 +-
 hw/s390x/s390-virtio-ccw.c                    |  4 +-
 hw/s390x/sclp.c                               |  2 +-
 hw/s390x/sclpcpu.c                            |  2 +-
 hw/s390x/sclpquiesce.c                        |  2 +-
 hw/s390x/tod-kvm.c                            |  2 +-
 hw/s390x/tod-tcg.c                            |  2 +-
 hw/s390x/tod.c                                |  2 +-
 hw/s390x/vhost-scsi-ccw.c                     |  2 +-
 hw/s390x/vhost-user-fs-ccw.c                  |  2 +-
 hw/s390x/vhost-vsock-ccw.c                    |  2 +-
 hw/s390x/virtio-ccw-9p.c                      |  2 +-
 hw/s390x/virtio-ccw-balloon.c                 |  2 +-
 hw/s390x/virtio-ccw-blk.c                     |  2 +-
 hw/s390x/virtio-ccw-crypto.c                  |  2 +-
 hw/s390x/virtio-ccw-gpu.c                     |  2 +-
 hw/s390x/virtio-ccw-input.c                   |  2 +-
 hw/s390x/virtio-ccw-mem.c                     |  2 +-
 hw/s390x/virtio-ccw-net.c                     |  2 +-
 hw/s390x/virtio-ccw-rng.c                     |  2 +-
 hw/s390x/virtio-ccw-scsi.c                    |  2 +-
 hw/s390x/virtio-ccw-serial.c                  |  2 +-
 hw/s390x/virtio-ccw.c                         |  4 +-
 hw/scsi/esp-pci.c                             |  4 +-
 hw/scsi/esp.c                                 |  4 +-
 hw/scsi/lsi53c895a.c                          |  4 +-
 hw/scsi/megasas.c                             |  2 +-
 hw/scsi/mptsas.c                              |  2 +-
 hw/scsi/scsi-bus.c                            |  4 +-
 hw/scsi/scsi-disk.c                           |  8 +-
 hw/scsi/scsi-generic.c                        |  2 +-
 hw/scsi/spapr_vscsi.c                         |  2 +-
 hw/scsi/vhost-scsi.c                          |  2 +-
 hw/scsi/vhost-user-scsi.c                     |  2 +-
 hw/scsi/virtio-scsi.c                         |  4 +-
 hw/scsi/vmw_pvscsi.c                          |  2 +-
 hw/sd/allwinner-sdhost.c                      | 15 ++--
 hw/sd/aspeed_sdhci.c                          | 10 +--
 hw/sd/bcm2835_sdhost.c                        |  2 +-
 hw/sd/cadence_sdhci.c                         |  2 +-
 hw/sd/npcm7xx_sdhci.c                         |  2 +-
 hw/sd/omap_mmc.c                              |  2 +-
 hw/sd/pl181.c                                 |  4 +-
 hw/sd/sd.c                                    |  8 +-
 hw/sd/sdhci-pci.c                             |  2 +-
 hw/sd/sdhci.c                                 |  4 +-
 hw/sd/ssi-sd.c                                |  2 +-
 hw/sensor/adm1266.c                           |  2 +-
 hw/sensor/adm1272.c                           |  2 +-
 hw/sensor/dps310.c                            |  2 +-
 hw/sensor/emc141x.c                           |  4 +-
 hw/sensor/isl_pmbus_vr.c                      |  8 +-
 hw/sensor/lsm303dlhc_mag.c                    |  2 +-
 hw/sensor/max31785.c                          |  2 +-
 hw/sensor/max34451.c                          |  2 +-
 hw/sensor/tmp105.c                            |  2 +-
 hw/sensor/tmp421.c                            |  2 +-
 hw/sparc/sun4m.c                              | 28 +++---
 hw/sparc/sun4m_iommu.c                        |  5 +-
 hw/sparc64/niagara.c                          |  2 +-
 hw/sparc64/sun4u.c                            | 12 +--
 hw/sparc64/sun4u_iommu.c                      |  5 +-
 hw/ssi/allwinner-a10-spi.c                    |  2 +-
 hw/ssi/aspeed_smc.c                           | 36 ++++----
 hw/ssi/bcm2835_spi.c                          |  2 +-
 hw/ssi/ibex_spi_host.c                        |  2 +-
 hw/ssi/imx_spi.c                              |  2 +-
 hw/ssi/mss-spi.c                              |  2 +-
 hw/ssi/npcm7xx_fiu.c                          |  2 +-
 hw/ssi/npcm_pspi.c                            |  2 +-
 hw/ssi/pl022.c                                |  2 +-
 hw/ssi/pnv_spi.c                              |  2 +-
 hw/ssi/sifive_spi.c                           |  2 +-
 hw/ssi/ssi.c                                  |  4 +-
 hw/ssi/stm32f2xx_spi.c                        |  2 +-
 hw/ssi/xilinx_spi.c                           |  2 +-
 hw/ssi/xilinx_spips.c                         |  6 +-
 hw/ssi/xlnx-versal-ospi.c                     |  2 +-
 hw/timer/a9gtimer.c                           |  2 +-
 hw/timer/allwinner-a10-pit.c                  |  2 +-
 hw/timer/arm_mptimer.c                        |  2 +-
 hw/timer/arm_timer.c                          |  2 +-
 hw/timer/armv7m_systick.c                     |  2 +-
 hw/timer/aspeed_timer.c                       | 12 +--
 hw/timer/avr_timer16.c                        |  2 +-
 hw/timer/bcm2835_systmr.c                     |  2 +-
 hw/timer/cadence_ttc.c                        |  2 +-
 hw/timer/cmsdk-apb-dualtimer.c                |  2 +-
 hw/timer/cmsdk-apb-timer.c                    |  2 +-
 hw/timer/digic-timer.c                        |  2 +-
 hw/timer/exynos4210_mct.c                     |  2 +-
 hw/timer/exynos4210_pwm.c                     |  2 +-
 hw/timer/grlib_gptimer.c                      |  2 +-
 hw/timer/hpet.c                               |  2 +-
 hw/timer/i8254.c                              |  2 +-
 hw/timer/i8254_common.c                       |  2 +-
 hw/timer/ibex_timer.c                         |  2 +-
 hw/timer/imx_epit.c                           |  2 +-
 hw/timer/imx_gpt.c                            |  2 +-
 hw/timer/mss-timer.c                          |  2 +-
 hw/timer/npcm7xx_timer.c                      |  2 +-
 hw/timer/nrf51_timer.c                        |  2 +-
 hw/timer/pxa2xx_timer.c                       |  4 +-
 hw/timer/renesas_cmt.c                        |  2 +-
 hw/timer/renesas_tmr.c                        |  2 +-
 hw/timer/sifive_pwm.c                         |  2 +-
 hw/timer/slavio_timer.c                       |  2 +-
 hw/timer/sse-counter.c                        |  2 +-
 hw/timer/sse-timer.c                          |  2 +-
 hw/timer/stellaris-gptm.c                     |  2 +-
 hw/timer/stm32f2xx_timer.c                    |  2 +-
 hw/timer/xilinx_timer.c                       |  2 +-
 hw/tpm/tpm_crb.c                              |  2 +-
 hw/tpm/tpm_spapr.c                            |  2 +-
 hw/tpm/tpm_tis_i2c.c                          |  2 +-
 hw/tpm/tpm_tis_isa.c                          |  2 +-
 hw/tpm/tpm_tis_sysbus.c                       |  2 +-
 hw/tricore/tc27x_soc.c                        |  4 +-
 hw/tricore/triboard.c                         |  2 +-
 hw/tricore/tricore_testdevice.c               |  2 +-
 hw/ufs/lu.c                                   |  2 +-
 hw/ufs/ufs.c                                  |  4 +-
 hw/usb/bus.c                                  |  4 +-
 hw/usb/canokey.c                              |  2 +-
 hw/usb/ccid-card-emulated.c                   |  2 +-
 hw/usb/ccid-card-passthru.c                   |  2 +-
 hw/usb/chipidea.c                             |  2 +-
 hw/usb/dev-audio.c                            |  2 +-
 hw/usb/dev-hid.c                              |  8 +-
 hw/usb/dev-hub.c                              |  2 +-
 hw/usb/dev-mtp.c                              |  2 +-
 hw/usb/dev-network.c                          |  2 +-
 hw/usb/dev-serial.c                           |  6 +-
 hw/usb/dev-smartcard-reader.c                 |  4 +-
 hw/usb/dev-storage-bot.c                      |  2 +-
 hw/usb/dev-storage-classic.c                  |  2 +-
 hw/usb/dev-storage.c                          |  2 +-
 hw/usb/dev-uas.c                              |  2 +-
 hw/usb/dev-wacom.c                            |  2 +-
 hw/usb/hcd-dwc2.c                             |  2 +-
 hw/usb/hcd-dwc3.c                             |  2 +-
 hw/usb/hcd-ehci-pci.c                         |  4 +-
 hw/usb/hcd-ehci-sysbus.c                      | 16 ++--
 hw/usb/hcd-ohci-pci.c                         |  2 +-
 hw/usb/hcd-ohci-sysbus.c                      |  2 +-
 hw/usb/hcd-uhci.c                             |  4 +-
 hw/usb/hcd-xhci-nec.c                         |  2 +-
 hw/usb/hcd-xhci-pci.c                         |  4 +-
 hw/usb/hcd-xhci-sysbus.c                      |  2 +-
 hw/usb/hcd-xhci.c                             |  2 +-
 hw/usb/host-libusb.c                          |  2 +-
 hw/usb/imx-usb-phy.c                          |  2 +-
 hw/usb/redirect.c                             |  2 +-
 hw/usb/u2f-emulated.c                         |  2 +-
 hw/usb/u2f-passthru.c                         |  2 +-
 hw/usb/u2f.c                                  |  2 +-
 hw/usb/xlnx-usb-subsystem.c                   |  2 +-
 hw/usb/xlnx-versal-usb2-ctrl-regs.c           |  2 +-
 hw/vfio/amd-xgbe.c                            |  2 +-
 hw/vfio/ap.c                                  |  2 +-
 hw/vfio/calxeda-xgmac.c                       |  2 +-
 hw/vfio/ccw.c                                 |  2 +-
 hw/vfio/container.c                           |  4 +-
 hw/vfio/igd.c                                 |  3 +-
 hw/vfio/iommufd.c                             |  4 +-
 hw/vfio/pci.c                                 |  5 +-
 hw/vfio/platform.c                            |  2 +-
 hw/vfio/spapr.c                               |  2 +-
 hw/virtio/vdpa-dev-pci.c                      |  3 +-
 hw/virtio/vdpa-dev.c                          |  2 +-
 hw/virtio/vhost-scsi-pci.c                    |  2 +-
 hw/virtio/vhost-user-base.c                   |  2 +-
 hw/virtio/vhost-user-blk-pci.c                |  2 +-
 hw/virtio/vhost-user-device-pci.c             |  3 +-
 hw/virtio/vhost-user-device.c                 |  2 +-
 hw/virtio/vhost-user-fs-pci.c                 |  2 +-
 hw/virtio/vhost-user-fs.c                     |  2 +-
 hw/virtio/vhost-user-gpio-pci.c               |  2 +-
 hw/virtio/vhost-user-gpio.c                   |  2 +-
 hw/virtio/vhost-user-i2c-pci.c                |  2 +-
 hw/virtio/vhost-user-i2c.c                    |  2 +-
 hw/virtio/vhost-user-input.c                  |  2 +-
 hw/virtio/vhost-user-rng-pci.c                |  2 +-
 hw/virtio/vhost-user-rng.c                    |  2 +-
 hw/virtio/vhost-user-scmi-pci.c               |  2 +-
 hw/virtio/vhost-user-scmi.c                   |  2 +-
 hw/virtio/vhost-user-scsi-pci.c               |  2 +-
 hw/virtio/vhost-user-snd-pci.c                |  2 +-
 hw/virtio/vhost-user-snd.c                    |  2 +-
 hw/virtio/vhost-user-vsock-pci.c              |  3 +-
 hw/virtio/vhost-user-vsock.c                  |  2 +-
 hw/virtio/vhost-vsock-common.c                |  2 +-
 hw/virtio/vhost-vsock-pci.c                   |  2 +-
 hw/virtio/vhost-vsock.c                       |  2 +-
 hw/virtio/virtio-9p-pci.c                     |  2 +-
 hw/virtio/virtio-balloon-pci.c                |  2 +-
 hw/virtio/virtio-balloon.c                    |  2 +-
 hw/virtio/virtio-blk-pci.c                    |  2 +-
 hw/virtio/virtio-bus.c                        |  2 +-
 hw/virtio/virtio-crypto-pci.c                 |  2 +-
 hw/virtio/virtio-crypto.c                     |  2 +-
 hw/virtio/virtio-input-pci.c                  |  7 +-
 hw/virtio/virtio-iommu-pci.c                  |  2 +-
 hw/virtio/virtio-iommu.c                      |  4 +-
 hw/virtio/virtio-mem-pci.c                    |  2 +-
 hw/virtio/virtio-mem.c                        |  5 +-
 hw/virtio/virtio-mmio.c                       |  4 +-
 hw/virtio/virtio-net-pci.c                    |  2 +-
 hw/virtio/virtio-nsm-pci.c                    |  2 +-
 hw/virtio/virtio-nsm.c                        |  2 +-
 hw/virtio/virtio-pci.c                        |  8 +-
 hw/virtio/virtio-pmem-pci.c                   |  2 +-
 hw/virtio/virtio-pmem.c                       |  2 +-
 hw/virtio/virtio-rng-pci.c                    |  2 +-
 hw/virtio/virtio-rng.c                        |  2 +-
 hw/virtio/virtio-scsi-pci.c                   |  2 +-
 hw/virtio/virtio-serial-pci.c                 |  2 +-
 hw/virtio/virtio.c                            |  2 +-
 hw/watchdog/allwinner-wdt.c                   |  6 +-
 hw/watchdog/cmsdk-apb-watchdog.c              |  2 +-
 hw/watchdog/sbsa_gwdt.c                       |  2 +-
 hw/watchdog/spapr_watchdog.c                  |  2 +-
 hw/watchdog/wdt_aspeed.c                      | 12 +--
 hw/watchdog/wdt_diag288.c                     |  2 +-
 hw/watchdog/wdt_i6300esb.c                    |  2 +-
 hw/watchdog/wdt_ib700.c                       |  2 +-
 hw/watchdog/wdt_imx2.c                        |  2 +-
 hw/xen/xen-bus.c                              |  4 +-
 hw/xen/xen-legacy-backend.c                   |  4 +-
 hw/xen/xen-pvh-common.c                       |  2 +-
 hw/xen/xen_pt.c                               |  2 +-
 hw/xen/xen_pt_graphics.c                      |  2 +-
 hw/xtensa/xtfpga.c                            | 16 ++--
 io/channel-buffer.c                           |  2 +-
 io/channel-command.c                          |  2 +-
 io/channel-file.c                             |  2 +-
 io/channel-null.c                             |  2 +-
 io/channel-socket.c                           |  2 +-
 io/channel-tls.c                              |  2 +-
 io/channel-websock.c                          |  2 +-
 iothread.c                                    |  2 +-
 migration/channel-block.c                     |  2 +-
 migration/migration.c                         |  2 +-
 migration/rdma.c                              |  2 +-
 net/can/can_core.c                            |  2 +-
 net/can/can_host.c                            |  2 +-
 net/can/can_socketcan.c                       |  2 +-
 net/colo-compare.c                            |  2 +-
 net/dump.c                                    |  2 +-
 net/filter-buffer.c                           |  2 +-
 net/filter-mirror.c                           |  4 +-
 net/filter-replay.c                           |  2 +-
 net/filter-rewriter.c                         |  2 +-
 net/filter.c                                  |  2 +-
 qom/object.c                                  |  4 +-
 scsi/pr-manager-helper.c                      |  2 +-
 system/qtest.c                                |  2 +-
 target/alpha/cpu.c                            |  2 +-
 target/arm/cpu.c                              |  4 +-
 target/arm/cpu64.c                            |  4 +-
 target/arm/tcg/cpu-v7m.c                      |  2 +-
 target/avr/cpu.c                              |  2 +-
 target/hexagon/cpu.c                          |  2 +-
 target/hppa/cpu.c                             |  2 +-
 target/i386/confidential-guest.c              |  2 +-
 target/i386/cpu.c                             |  8 +-
 target/i386/host-cpu.c                        |  2 +-
 target/i386/hvf/hvf-cpu.c                     |  2 +-
 target/i386/kvm/kvm-cpu.c                     |  2 +-
 target/i386/nvmm/nvmm-accel-ops.c             |  2 +-
 target/i386/nvmm/nvmm-all.c                   |  2 +-
 target/i386/sev.c                             |  6 +-
 target/i386/tcg/tcg-cpu.c                     |  2 +-
 target/i386/whpx/whpx-accel-ops.c             |  2 +-
 target/i386/whpx/whpx-all.c                   |  2 +-
 target/i386/whpx/whpx-apic.c                  |  2 +-
 target/loongarch/cpu.c                        |  6 +-
 target/m68k/cpu.c                             |  6 +-
 target/microblaze/cpu.c                       |  2 +-
 target/mips/cpu.c                             |  4 +-
 target/openrisc/cpu.c                         |  2 +-
 target/ppc/cpu-models.c                       |  2 +-
 target/ppc/cpu_init.c                         | 90 +++++++++----------
 target/ppc/kvm.c                              |  4 +-
 target/riscv/cpu.c                            |  4 +-
 target/riscv/kvm/kvm-cpu.c                    |  2 +-
 target/riscv/tcg/tcg-cpu.c                    |  2 +-
 target/rx/cpu.c                               |  2 +-
 target/s390x/cpu.c                            |  2 +-
 target/s390x/cpu_models.c                     | 10 +--
 target/s390x/kvm/pv.c                         |  2 +-
 target/sh4/cpu.c                              |  8 +-
 target/sparc/cpu.c                            |  4 +-
 target/tricore/cpu.c                          |  2 +-
 target/xtensa/cpu.c                           |  2 +-
 target/xtensa/helper.c                        |  2 +-
 tests/unit/check-qom-interface.c              |  2 +-
 tests/unit/check-qom-proplist.c               |  6 +-
 tests/unit/test-qdev-global-props.c           |  8 +-
 tests/unit/test-smp-parse.c                   | 23 ++---
 ui/console-vc.c                               |  6 +-
 ui/console.c                                  |  4 +-
 ui/dbus-chardev.c                             |  2 +-
 ui/dbus.c                                     |  4 +-
 ui/gtk.c                                      |  2 +-
 ui/input-barrier.c                            |  2 +-
 ui/input-linux.c                              |  2 +-
 ui/spice-app.c                                |  2 +-
 ui/vdagent.c                                  |  2 +-
 util/main-loop.c                              |  2 +-
 util/thread-context.c                         |  2 +-
 hw/display/apple-gfx-mmio.m                   |  2 +-
 hw/display/apple-gfx-pci.m                    |  2 +-
 rust/qemu-api/src/qom.rs                      |  2 +-
 .../codeconverter/qom_type_info.py            |  3 +-
 1107 files changed, 1751 insertions(+), 1688 deletions(-)
docs/devel/qom.rst +4 -4
index 0889ca949c1..5870745ba27 100644
@@ -147,7 +147,7 @@ to introduce an overridden virtual function:
 
    #include "qdev.h"
 
-   void my_device_class_init(ObjectClass *klass, void *class_data)
+   void my_device_class_init(ObjectClass *klass, const void *class_data)
    {
        DeviceClass *dc = DEVICE_CLASS(klass);
        dc->reset = my_device_reset;
@@ -249,7 +249,7 @@ class, which someone might choose to change at some point.
        // do something
    }
 
-   static void my_class_init(ObjectClass *oc, void *data)
+   static void my_class_init(ObjectClass *oc, const void *data)
    {
        MyClass *mc = MY_CLASS(oc);
 
@@ -279,7 +279,7 @@ class, which someone might choose to change at some point.
        // do something else here
    }
 
-   static void derived_class_init(ObjectClass *oc, void *data)
+   static void derived_class_init(ObjectClass *oc, const void *data)
    {
        MyClass *mc = MY_CLASS(oc);
        DerivedClass *dc = DERIVED_CLASS(oc);
@@ -363,7 +363,7 @@ This is equivalent to the following:
    :caption: Expansion from defining a simple type
 
    static void my_device_finalize(Object *obj);
-   static void my_device_class_init(ObjectClass *oc, void *data);
+   static void my_device_class_init(ObjectClass *oc, const void *data);
    static void my_device_init(Object *obj);
 
    static const TypeInfo my_device_info = {
docs/devel/reset.rst +1 -1
index adefd59ef97..4dbbe4c7d62 100644
@@ -211,7 +211,7 @@ in reset.
         ResettablePhases parent_phases;
     } MyDevClass;
 
-    static void mydev_class_init(ObjectClass *class, void *data)
+    static void mydev_class_init(ObjectClass *class, const void *data)
     {
         MyDevClass *myclass = MYDEV_CLASS(class);
         ResettableClass *rc = RESETTABLE_CLASS(class);
docs/devel/virtio-backends.rst +1 -1
index 679d7544b8e..ebddc3b9f51 100644
@@ -119,7 +119,7 @@ manually instantiated:
       qdev_realize(vdev, BUS(&vpci_dev->bus), errp);
   }
 
-  static void virtio_blk_pci_class_init(ObjectClass *klass, void *data)
+  static void virtio_blk_pci_class_init(ObjectClass *klass, const void *data)
   {
       DeviceClass *dc = DEVICE_CLASS(klass);
       VirtioPCIClass *k = VIRTIO_PCI_CLASS(klass);
hw/usb/hcd-uhci.h +1 -1
index 6d26b94e929..14269336cac 100644
@@ -88,7 +88,7 @@ typedef struct UHCIInfo {
     bool       notuser; /* disallow user_creatable */
 } UHCIInfo;
 
-void uhci_data_class_init(ObjectClass *klass, void *data);
+void uhci_data_class_init(ObjectClass *klass, const void *data);
 void usb_uhci_common_realize(PCIDevice *dev, Error **errp);
 
 #define TYPE_PIIX3_USB_UHCI "piix3-usb-uhci"
include/hw/boards.h +1 -1
index e1f41b2a533..d038bd59575 100644
@@ -742,7 +742,7 @@ struct MachineState {
     } while (0)
 
 #define DEFINE_MACHINE(namestr, machine_initfn) \
-    static void machine_initfn##_class_init(ObjectClass *oc, void *data) \
+    static void machine_initfn##_class_init(ObjectClass *oc, const void *data) \
     { \
         MachineClass *mc = MACHINE_CLASS(oc); \
         machine_initfn(mc); \
include/hw/i386/pc.h +3 -2
index 103b54301f8..14e92c4229c 100644
@@ -303,7 +303,8 @@ extern GlobalProperty pc_compat_2_4[];
 extern const size_t pc_compat_2_4_len;
 
 #define DEFINE_PC_MACHINE(suffix, namestr, initfn, optsfn) \
-    static void pc_machine_##suffix##_class_init(ObjectClass *oc, void *data) \
+    static void pc_machine_##suffix##_class_init(ObjectClass *oc, \
+                                                 const void *data) \
     { \
         MachineClass *mc = MACHINE_CLASS(oc); \
         optsfn(mc); \
@@ -328,7 +329,7 @@ extern const size_t pc_compat_2_4_len;
     } \
     static void MACHINE_VER_SYM(class_init, namesym, __VA_ARGS__)( \
         ObjectClass *oc, \
-        void *data) \
+        const void *data) \
     { \
         MachineClass *mc = MACHINE_CLASS(oc); \
         MACHINE_VER_SYM(options, namesym, __VA_ARGS__)(mc); \
include/hw/virtio/virtio-pci.h +1 -1
index 971c5fabd44..567a9b0a9da 100644
@@ -255,7 +255,7 @@ typedef struct VirtioPCIDeviceTypeInfo {
     size_t class_size;
     void (*instance_init)(Object *obj);
     void (*instance_finalize)(Object *obj);
-    void (*class_init)(ObjectClass *klass, void *data);
+    void (*class_init)(ObjectClass *klass, const void *data);
     InterfaceInfo *interfaces;
 } VirtioPCIDeviceTypeInfo;
 
include/qom/object.h +2 -2
index 7bb14ca7067..2fb86f00a68 100644
@@ -280,7 +280,7 @@ struct Object
     static void \
     module_obj_name##_finalize(Object *obj); \
     static void \
-    module_obj_name##_class_init(ObjectClass *oc, void *data); \
+    module_obj_name##_class_init(ObjectClass *oc, const void *data); \
     static void \
     module_obj_name##_init(Object *obj); \
     \
@@ -486,7 +486,7 @@ struct TypeInfo
     bool abstract;
     size_t class_size;
 
-    void (*class_init)(ObjectClass *klass, void *data);
+    void (*class_init)(ObjectClass *klass, const void *data);
     void (*class_base_init)(ObjectClass *klass, const void *data);
     void *class_data;
 
target/arm/cpu.h +1 -1
index c2d2d99b462..e1011790192 100644
@@ -1120,7 +1120,7 @@ typedef struct ARMCPUInfo {
     const char *name;
     const char *deprecation_note;
     void (*initfn)(Object *obj);
-    void (*class_init)(ObjectClass *oc, void *data);
+    void (*class_init)(ObjectClass *oc, const void *data);
 } ARMCPUInfo;
 
 /**
target/ppc/cpu.h +2 -1
index 0b8b4c05172..d8ef1e6e4d7 100644
@@ -3040,7 +3040,8 @@ static inline int check_attn_none(CPUPPCState *env)
 
 #define POWERPC_FAMILY(_name)                                               \
     static void                                                             \
-    glue(glue(ppc_, _name), _cpu_family_class_init)(ObjectClass *, void *); \
+    glue(glue(ppc_, _name), _cpu_family_class_init)(ObjectClass *,          \
+                                                    const void *);          \
                                                                             \
     static const TypeInfo                                                   \
     glue(glue(ppc_, _name), _cpu_family_type_info) = {                      \
accel/hvf/hvf-accel-ops.c +2 -2
index 945ba720513..ec535db44f6 100644
@@ -354,7 +354,7 @@ static inline int hvf_gdbstub_sstep_flags(void)
     return SSTEP_ENABLE | SSTEP_NOIRQ;
 }
 
-static void hvf_accel_class_init(ObjectClass *oc, void *data)
+static void hvf_accel_class_init(ObjectClass *oc, const void *data)
 {
     AccelClass *ac = ACCEL_CLASS(oc);
     ac->name = "HVF";
@@ -577,7 +577,7 @@ static void hvf_remove_all_breakpoints(CPUState *cpu)
     }
 }
 
-static void hvf_accel_ops_class_init(ObjectClass *oc, void *data)
+static void hvf_accel_ops_class_init(ObjectClass *oc, const void *data)
 {
     AccelOpsClass *ops = ACCEL_OPS_CLASS(oc);
 
accel/kvm/kvm-accel-ops.c +1 -1
index a81e8f3b03b..c2640008f26 100644
@@ -89,7 +89,7 @@ static int kvm_update_guest_debug_ops(CPUState *cpu)
 }
 #endif
 
-static void kvm_accel_ops_class_init(ObjectClass *oc, void *data)
+static void kvm_accel_ops_class_init(ObjectClass *oc, const void *data)
 {
     AccelOpsClass *ops = ACCEL_OPS_CLASS(oc);
 
accel/kvm/kvm-all.c +1 -1
index c65b790433c..6aede1bc269 100644
@@ -3957,7 +3957,7 @@ static int kvm_gdbstub_sstep_flags(void)
     return kvm_sstep_flags;
 }
 
-static void kvm_accel_class_init(ObjectClass *oc, void *data)
+static void kvm_accel_class_init(ObjectClass *oc, const void *data)
 {
     AccelClass *ac = ACCEL_CLASS(oc);
     ac->name = "KVM";
accel/qtest/qtest.c +2 -2
index ad7e3441a5a..37680731f62 100644
@@ -41,7 +41,7 @@ static int qtest_init_accel(MachineState *ms)
     return 0;
 }
 
-static void qtest_accel_class_init(ObjectClass *oc, void *data)
+static void qtest_accel_class_init(ObjectClass *oc, const void *data)
 {
     AccelClass *ac = ACCEL_CLASS(oc);
     ac->name = "QTest";
@@ -58,7 +58,7 @@ static const TypeInfo qtest_accel_type = {
 };
 module_obj(TYPE_QTEST_ACCEL);
 
-static void qtest_accel_ops_class_init(ObjectClass *oc, void *data)
+static void qtest_accel_ops_class_init(ObjectClass *oc, const void *data)
 {
     AccelOpsClass *ops = ACCEL_OPS_CLASS(oc);
 
accel/tcg/tcg-accel-ops.c +1 -1
index 6e3f1fa92b2..58946e7ee6a 100644
@@ -223,7 +223,7 @@ static void tcg_accel_ops_init(AccelOpsClass *ops)
     ops->remove_all_breakpoints = tcg_remove_all_breakpoints;
 }
 
-static void tcg_accel_ops_class_init(ObjectClass *oc, void *data)
+static void tcg_accel_ops_class_init(ObjectClass *oc, const void *data)
 {
     AccelOpsClass *ops = ACCEL_OPS_CLASS(oc);
 
accel/tcg/tcg-all.c +1 -1
index 95adaacee82..0614edf2a5b 100644
@@ -228,7 +228,7 @@ static int tcg_gdbstub_supported_sstep_flags(void)
     }
 }
 
-static void tcg_accel_class_init(ObjectClass *oc, void *data)
+static void tcg_accel_class_init(ObjectClass *oc, const void *data)
 {
     AccelClass *ac = ACCEL_CLASS(oc);
     ac->name = "tcg";
accel/xen/xen-all.c +2 -2
index 852e9fbe5fe..4f8028cf11d 100644
@@ -115,7 +115,7 @@ static int xen_init(MachineState *ms)
     return 0;
 }
 
-static void xen_accel_class_init(ObjectClass *oc, void *data)
+static void xen_accel_class_init(ObjectClass *oc, const void *data)
 {
     AccelClass *ac = ACCEL_CLASS(oc);
     static GlobalProperty compat[] = {
@@ -146,7 +146,7 @@ static const TypeInfo xen_accel_type = {
     .class_init = xen_accel_class_init,
 };
 
-static void xen_accel_ops_class_init(ObjectClass *oc, void *data)
+static void xen_accel_ops_class_init(ObjectClass *oc, const void *data)
 {
     AccelOpsClass *ops = ACCEL_OPS_CLASS(oc);
 
authz/list.c +1 -1
index 0e17eed8974..bbd99f2b7fc 100644
@@ -116,7 +116,7 @@ qauthz_list_finalize(Object *obj)
 
 
 static void
-qauthz_list_class_init(ObjectClass *oc, void *data)
+qauthz_list_class_init(ObjectClass *oc, const void *data)
 {
     QAuthZClass *authz = QAUTHZ_CLASS(oc);
 
authz/listfile.c +1 -1
index d31d9103f77..b58d4ebd1d8 100644
@@ -220,7 +220,7 @@ qauthz_list_file_finalize(Object *obj)
 
 
 static void
-qauthz_list_file_class_init(ObjectClass *oc, void *data)
+qauthz_list_file_class_init(ObjectClass *oc, const void *data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
     QAuthZClass *authz = QAUTHZ_CLASS(oc);
authz/pamacct.c +1 -1
index c862d9ff39b..07b8aad4972 100644
@@ -103,7 +103,7 @@ qauthz_pam_finalize(Object *obj)
 
 
 static void
-qauthz_pam_class_init(ObjectClass *oc, void *data)
+qauthz_pam_class_init(ObjectClass *oc, const void *data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
     QAuthZClass *authz = QAUTHZ_CLASS(oc);
authz/simple.c +1 -1
index 0597dcd8ea5..f6985b840ea 100644
@@ -78,7 +78,7 @@ qauthz_simple_complete(UserCreatable *uc, Error **errp)
 
 
 static void
-qauthz_simple_class_init(ObjectClass *oc, void *data)
+qauthz_simple_class_init(ObjectClass *oc, const void *data)
 {
     QAuthZClass *authz = QAUTHZ_CLASS(oc);
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
backends/confidential-guest-support.c +2 -1
index 1cd9bed505d..8ff7bfa8570 100644
@@ -20,7 +20,8 @@ OBJECT_DEFINE_ABSTRACT_TYPE(ConfidentialGuestSupport,
                             CONFIDENTIAL_GUEST_SUPPORT,
                             OBJECT)
 
-static void confidential_guest_support_class_init(ObjectClass *oc, void *data)
+static void confidential_guest_support_class_init(ObjectClass *oc,
+                                                  const void *data)
 {
 }
 
backends/cryptodev-builtin.c +1 -1
index 764cee43119..0414c01e06d 100644
@@ -608,7 +608,7 @@ static void cryptodev_builtin_cleanup(
 }
 
 static void
-cryptodev_builtin_class_init(ObjectClass *oc, void *data)
+cryptodev_builtin_class_init(ObjectClass *oc, const void *data)
 {
     CryptoDevBackendClass *bc = CRYPTODEV_BACKEND_CLASS(oc);
 
backends/cryptodev-lkcf.c +1 -1
index 41cf24b7379..05353954de6 100644
@@ -616,7 +616,7 @@ static int cryptodev_lkcf_close_session(CryptoDevBackend *backend,
     return 0;
 }
 
-static void cryptodev_lkcf_class_init(ObjectClass *oc, void *data)
+static void cryptodev_lkcf_class_init(ObjectClass *oc, const void *data)
 {
     CryptoDevBackendClass *bc = CRYPTODEV_BACKEND_CLASS(oc);
 
backends/cryptodev-vhost-user.c +1 -1
index 3295c6198a7..cb04e68b022 100644
@@ -393,7 +393,7 @@ static void cryptodev_vhost_user_finalize(Object *obj)
 }
 
 static void
-cryptodev_vhost_user_class_init(ObjectClass *oc, void *data)
+cryptodev_vhost_user_class_init(ObjectClass *oc, const void *data)
 {
     CryptoDevBackendClass *bc = CRYPTODEV_BACKEND_CLASS(oc);
 
backends/cryptodev.c +1 -1
index 1187b08dacf..51bbe5ce40f 100644
@@ -608,7 +608,7 @@ static void cryptodev_backend_schemas_cb(StatsSchemaList **result,
 }
 
 static void
-cryptodev_backend_class_init(ObjectClass *oc, void *data)
+cryptodev_backend_class_init(ObjectClass *oc, const void *data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
 
backends/dbus-vmstate.c +1 -1
index be6c4d8e0ae..8c2deef43d4 100644
@@ -485,7 +485,7 @@ dbus_vmstate_get_id(VMStateIf *vmif)
 }
 
 static void
-dbus_vmstate_class_init(ObjectClass *oc, void *data)
+dbus_vmstate_class_init(ObjectClass *oc, const void *data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
     VMStateIfClass *vc = VMSTATE_IF_CLASS(oc);
backends/host_iommu_device.c +1 -1
index cea76c6925c..f6965e4027b 100644
@@ -17,7 +17,7 @@ OBJECT_DEFINE_ABSTRACT_TYPE(HostIOMMUDevice,
                             HOST_IOMMU_DEVICE,
                             OBJECT)
 
-static void host_iommu_device_class_init(ObjectClass *oc, void *data)
+static void host_iommu_device_class_init(ObjectClass *oc, const void *data)
 {
 }
 
backends/hostmem-epc.c +1 -1
index 1fa2d031e49..ab20b182331 100644
@@ -50,7 +50,7 @@ static void sgx_epc_backend_instance_init(Object *obj)
     m->dump = false;
 }
 
-static void sgx_epc_backend_class_init(ObjectClass *oc, void *data)
+static void sgx_epc_backend_class_init(ObjectClass *oc, const void *data)
 {
     HostMemoryBackendClass *bc = MEMORY_BACKEND_CLASS(oc);
 
backends/hostmem-file.c +1 -1
index 691a8278196..8e3219c0617 100644
@@ -270,7 +270,7 @@ static void file_backend_unparent(Object *obj)
 }
 
 static void
-file_backend_class_init(ObjectClass *oc, void *data)
+file_backend_class_init(ObjectClass *oc, const void *data)
 {
     HostMemoryBackendClass *bc = MEMORY_BACKEND_CLASS(oc);
 
backends/hostmem-memfd.c +1 -1
index 85daa1432c4..923239f9cf6 100644
@@ -133,7 +133,7 @@ memfd_backend_instance_init(Object *obj)
 }
 
 static void
-memfd_backend_class_init(ObjectClass *oc, void *data)
+memfd_backend_class_init(ObjectClass *oc, const void *data)
 {
     HostMemoryBackendClass *bc = MEMORY_BACKEND_CLASS(oc);
 
backends/hostmem-ram.c +1 -1
index 868ae6ca80a..062b1abb116 100644
@@ -37,7 +37,7 @@ ram_backend_memory_alloc(HostMemoryBackend *backend, Error **errp)
 }
 
 static void
-ram_backend_class_init(ObjectClass *oc, void *data)
+ram_backend_class_init(ObjectClass *oc, const void *data)
 {
     HostMemoryBackendClass *bc = MEMORY_BACKEND_CLASS(oc);
 
backends/hostmem-shm.c +1 -1
index f67ad2740b5..f66211a2ec9 100644
@@ -69,7 +69,7 @@ shm_backend_instance_init(Object *obj)
 }
 
 static void
-shm_backend_class_init(ObjectClass *oc, void *data)
+shm_backend_class_init(ObjectClass *oc, const void *data)
 {
     HostMemoryBackendClass *bc = MEMORY_BACKEND_CLASS(oc);
 
backends/hostmem.c +1 -1
index bceca1a8d9f..195f37fa443 100644
@@ -501,7 +501,7 @@ host_memory_backend_set_use_canonical_path(Object *obj, bool value,
 }
 
 static void
-host_memory_backend_class_init(ObjectClass *oc, void *data)
+host_memory_backend_class_init(ObjectClass *oc, const void *data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
 
backends/iommufd.c +2 -2
index 7b4fc8ec460..53566beb8a5 100644
@@ -64,7 +64,7 @@ static bool iommufd_backend_can_be_deleted(UserCreatable *uc)
     return !be->users;
 }
 
-static void iommufd_backend_class_init(ObjectClass *oc, void *data)
+static void iommufd_backend_class_init(ObjectClass *oc, const void *data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
 
@@ -329,7 +329,7 @@ static int hiod_iommufd_get_cap(HostIOMMUDevice *hiod, int cap, Error **errp)
     }
 }
 
-static void hiod_iommufd_class_init(ObjectClass *oc, void *data)
+static void hiod_iommufd_class_init(ObjectClass *oc, const void *data)
 {
     HostIOMMUDeviceClass *hioc = HOST_IOMMU_DEVICE_CLASS(oc);
 
backends/rng-builtin.c +1 -1
index 4cfa7e578bc..41b7bfaa27f 100644
@@ -55,7 +55,7 @@ static void rng_builtin_finalize(Object *obj)
     qemu_bh_delete(s->bh);
 }
 
-static void rng_builtin_class_init(ObjectClass *klass, void *data)
+static void rng_builtin_class_init(ObjectClass *klass, const void *data)
 {
     RngBackendClass *rbc = RNG_BACKEND_CLASS(klass);
 
backends/rng-egd.c +1 -1
index 82da46365d3..9fd3393ede2 100644
@@ -143,7 +143,7 @@ static void rng_egd_finalize(Object *obj)
     g_free(s->chr_name);
 }
 
-static void rng_egd_class_init(ObjectClass *klass, void *data)
+static void rng_egd_class_init(ObjectClass *klass, const void *data)
 {
     RngBackendClass *rbc = RNG_BACKEND_CLASS(klass);
 
backends/rng-random.c +1 -1
index 3ce6cc9b4af..820bf48c9b4 100644
@@ -121,7 +121,7 @@ static void rng_random_finalize(Object *obj)
     g_free(s->filename);
 }
 
-static void rng_random_class_init(ObjectClass *klass, void *data)
+static void rng_random_class_init(ObjectClass *klass, const void *data)
 {
     RngBackendClass *rbc = RNG_BACKEND_CLASS(klass);
 
backends/rng.c +1 -1
index 1f6fb106aea..b3480d27a12 100644
@@ -99,7 +99,7 @@ static void rng_backend_finalize(Object *obj)
     rng_backend_free_requests(s);
 }
 
-static void rng_backend_class_init(ObjectClass *oc, void *data)
+static void rng_backend_class_init(ObjectClass *oc, const void *data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
 
backends/tpm/tpm_emulator.c +1 -1
index 00fe015a94e..43d350e895d 100644
@@ -1056,7 +1056,7 @@ static void tpm_emulator_inst_finalize(Object *obj)
     vmstate_unregister(NULL, &vmstate_tpm_emulator, obj);
 }
 
-static void tpm_emulator_class_init(ObjectClass *klass, void *data)
+static void tpm_emulator_class_init(ObjectClass *klass, const void *data)
 {
     TPMBackendClass *tbc = TPM_BACKEND_CLASS(klass);
 
backends/tpm/tpm_passthrough.c +1 -1
index 09a6abf02d2..b7c7074c2aa 100644
@@ -364,7 +364,7 @@ static void tpm_passthrough_inst_finalize(Object *obj)
     qapi_free_TPMPassthroughOptions(tpm_pt->options);
 }
 
-static void tpm_passthrough_class_init(ObjectClass *klass, void *data)
+static void tpm_passthrough_class_init(ObjectClass *klass, const void *data)
 {
     TPMBackendClass *tbc = TPM_BACKEND_CLASS(klass);
 
backends/vhost-user.c +1 -1
index d0e4d71a633..94274a619d5 100644
@@ -163,7 +163,7 @@ static char *get_chardev(Object *obj, Error **errp)
     return NULL;
 }
 
-static void vhost_user_backend_class_init(ObjectClass *oc, void *data)
+static void vhost_user_backend_class_init(ObjectClass *oc, const void *data)
 {
     object_class_property_add_str(oc, "chardev", get_chardev, set_chardev);
 }
block/throttle-groups.c +2 -1
index 32553b39e39..a72765e847e 100644
@@ -934,7 +934,8 @@ static bool throttle_group_can_be_deleted(UserCreatable *uc)
     return OBJECT(uc)->ref == 1;
 }
 
-static void throttle_group_obj_class_init(ObjectClass *klass, void *class_data)
+static void throttle_group_obj_class_init(ObjectClass *klass,
+                                          const void *class_data)
 {
     size_t i = 0;
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(klass);
chardev/baum.c +1 -1
index a1d9784d92d..f3e8cd27f06 100644
@@ -668,7 +668,7 @@ static void baum_chr_open(Chardev *chr,
     qemu_set_fd_handler(baum->brlapi_fd, baum_chr_read, NULL, baum);
 }
 
-static void char_braille_class_init(ObjectClass *oc, void *data)
+static void char_braille_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-console.c +1 -1
index 6c4ce5dbce7..7e1bf642ebd 100644
@@ -34,7 +34,7 @@ static void qemu_chr_open_win_con(Chardev *chr,
     win_chr_set_file(chr, GetStdHandle(STD_OUTPUT_HANDLE), true);
 }
 
-static void char_console_class_init(ObjectClass *oc, void *data)
+static void char_console_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-fd.c +1 -1
index d2c49233598..23bfe3c0b1c 100644
@@ -238,7 +238,7 @@ void qemu_chr_open_fd(Chardev *chr,
     }
 }
 
-static void char_fd_class_init(ObjectClass *oc, void *data)
+static void char_fd_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-file.c +1 -1
index 263e6da5636..a9e8c5e0d7f 100644
@@ -123,7 +123,7 @@ static void qemu_chr_parse_file_out(QemuOpts *opts, ChardevBackend *backend,
     file->append = qemu_opt_get_bool(opts, "append", false);
 }
 
-static void char_file_class_init(ObjectClass *oc, void *data)
+static void char_file_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-hub.c +1 -1
index 3a4aae32897..16ffee2017a 100644
@@ -272,7 +272,7 @@ static void qemu_chr_parse_hub(QemuOpts *opts, ChardevBackend *backend,
     }
 }
 
-static void char_hub_class_init(ObjectClass *oc, void *data)
+static void char_hub_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-mux.c +1 -1
index d5f7e1a9cf5..6b36290e2c4 100644
@@ -447,7 +447,7 @@ void resume_mux_open(void)
                          chardev_options_parsed_cb, NULL);
 }
 
-static void char_mux_class_init(ObjectClass *oc, void *data)
+static void char_mux_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-null.c +1 -1
index 1c6a2900f9b..89cb85da792 100644
@@ -34,7 +34,7 @@ static void null_chr_open(Chardev *chr,
     *be_opened = false;
 }
 
-static void char_null_class_init(ObjectClass *oc, void *data)
+static void char_null_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-parallel.c +1 -1
index 78697d7522d..62a44b2f969 100644
@@ -270,7 +270,7 @@ static void qemu_chr_parse_parallel(QemuOpts *opts, ChardevBackend *backend,
     parallel->device = g_strdup(device);
 }
 
-static void char_parallel_class_init(ObjectClass *oc, void *data)
+static void char_parallel_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-pipe.c +1 -1
index 5ad30bcc599..3d1b0ce2d2e 100644
@@ -171,7 +171,7 @@ static void qemu_chr_parse_pipe(QemuOpts *opts, ChardevBackend *backend,
     dev->device = g_strdup(device);
 }
 
-static void char_pipe_class_init(ObjectClass *oc, void *data)
+static void char_pipe_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-pty.c +1 -1
index 6a2c1dc13a3..c28554e6e02 100644
@@ -390,7 +390,7 @@ static void char_pty_parse(QemuOpts *opts, ChardevBackend *backend,
     pty->path = g_strdup(path);
 }
 
-static void char_pty_class_init(ObjectClass *oc, void *data)
+static void char_pty_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-ringbuf.c +1 -1
index d40d21d3cf7..98aadb6acfb 100644
@@ -223,7 +223,7 @@ static void qemu_chr_parse_ringbuf(QemuOpts *opts, ChardevBackend *backend,
     }
 }
 
-static void char_ringbuf_class_init(ObjectClass *oc, void *data)
+static void char_ringbuf_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-serial.c +1 -1
index 4b0b83d5b45..0a68b4b4e0b 100644
@@ -298,7 +298,7 @@ static void qemu_chr_parse_serial(QemuOpts *opts, ChardevBackend *backend,
     serial->device = g_strdup(device);
 }
 
-static void char_serial_class_init(ObjectClass *oc, void *data)
+static void char_serial_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-socket.c +1 -1
index 91496ceda90..d6efe20403b 100644
@@ -1577,7 +1577,7 @@ char_socket_get_connected(Object *obj, Error **errp)
     return s->state == TCP_CHARDEV_STATE_CONNECTED;
 }
 
-static void char_socket_class_init(ObjectClass *oc, void *data)
+static void char_socket_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-stdio.c +1 -1
index b960ddd4e4c..48db8d2f30f 100644
@@ -136,7 +136,7 @@ static void qemu_chr_parse_stdio(QemuOpts *opts, ChardevBackend *backend,
     stdio->signal = qemu_opt_get_bool(opts, "signal", true);
 }
 
-static void char_stdio_class_init(ObjectClass *oc, void *data)
+static void char_stdio_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-udp.c +1 -1
index 3d9a2d5e772..572fab0ad13 100644
@@ -219,7 +219,7 @@ static void qmp_chardev_open_udp(Chardev *chr,
     *be_opened = false;
 }
 
-static void char_udp_class_init(ObjectClass *oc, void *data)
+static void char_udp_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-win-stdio.c +1 -1
index 13325ca967c..fb802a00b13 100644
@@ -256,7 +256,7 @@ static int win_stdio_write(Chardev *chr, const uint8_t *buf, int len)
     return len - len1;
 }
 
-static void char_win_stdio_class_init(ObjectClass *oc, void *data)
+static void char_win_stdio_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char-win.c +1 -1
index d4fb44c4dcc..fef45e83aad 100644
@@ -220,7 +220,7 @@ void win_chr_set_file(Chardev *chr, HANDLE file, bool keep_open)
     s->file = file;
 }
 
-static void char_win_class_init(ObjectClass *oc, void *data)
+static void char_win_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/char.c +1 -1
index 5a9e9762adc..bbebd246c3a 100644
@@ -295,7 +295,7 @@ static int null_chr_write(Chardev *chr, const uint8_t *buf, int len)
     return len;
 }
 
-static void char_class_init(ObjectClass *oc, void *data)
+static void char_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/msmouse.c +1 -1
index 2279694cfab..1a55755d397 100644
@@ -267,7 +267,7 @@ static void msmouse_chr_open(Chardev *chr,
     fifo8_create(&mouse->outbuf, MSMOUSE_BUF_SZ);
 }
 
-static void char_msmouse_class_init(ObjectClass *oc, void *data)
+static void char_msmouse_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/spice.c +3 -3
index e843d961a78..db53b49da26 100644
@@ -347,7 +347,7 @@ static void qemu_chr_parse_spice_port(QemuOpts *opts, ChardevBackend *backend,
     spiceport->fqdn = g_strdup(name);
 }
 
-static void char_spice_class_init(ObjectClass *oc, void *data)
+static void char_spice_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
@@ -366,7 +366,7 @@ static const TypeInfo char_spice_type_info = {
 };
 module_obj(TYPE_CHARDEV_SPICE);
 
-static void char_spicevmc_class_init(ObjectClass *oc, void *data)
+static void char_spicevmc_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
@@ -382,7 +382,7 @@ static const TypeInfo char_spicevmc_type_info = {
 };
 module_obj(TYPE_CHARDEV_SPICEVMC);
 
-static void char_spiceport_class_init(ObjectClass *oc, void *data)
+static void char_spiceport_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/testdev.c +1 -1
index a92caca3c33..e91f4e8343a 100644
@@ -110,7 +110,7 @@ static int testdev_chr_write(Chardev *chr, const uint8_t *buf, int len)
     return orig_len;
 }
 
-static void char_testdev_class_init(ObjectClass *oc, void *data)
+static void char_testdev_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
chardev/wctablet.c +1 -1
index f4008bf35b7..0dc6ef08f59 100644
@@ -342,7 +342,7 @@ static void wctablet_chr_open(Chardev *chr,
                                              &wctablet_handler);
 }
 
-static void wctablet_chr_class_init(ObjectClass *oc, void *data)
+static void wctablet_chr_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
crypto/secret.c +1 -1
index 44eaff16f60..61a4584286c 100644
@@ -117,7 +117,7 @@ qcrypto_secret_finalize(Object *obj)
 }
 
 static void
-qcrypto_secret_class_init(ObjectClass *oc, void *data)
+qcrypto_secret_class_init(ObjectClass *oc, const void *data)
 {
     QCryptoSecretCommonClass *sic = QCRYPTO_SECRET_COMMON_CLASS(oc);
     sic->load_data = qcrypto_secret_load_data;
crypto/secret_common.c +1 -1
index dbda9989403..2399ce412be 100644
@@ -263,7 +263,7 @@ qcrypto_secret_finalize(Object *obj)
 }
 
 static void
-qcrypto_secret_class_init(ObjectClass *oc, void *data)
+qcrypto_secret_class_init(ObjectClass *oc, const void *data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
 
crypto/secret_keyring.c +1 -1
index 1b7edec84a0..78d7f09b3b9 100644
@@ -103,7 +103,7 @@ qcrypto_secret_prop_get_key(Object *obj, Visitor *v,
 
 
 static void
-qcrypto_secret_keyring_class_init(ObjectClass *oc, void *data)
+qcrypto_secret_keyring_class_init(ObjectClass *oc, const void *data)
 {
     QCryptoSecretCommonClass *sic = QCRYPTO_SECRET_COMMON_CLASS(oc);
     sic->load_data = qcrypto_secret_keyring_load_data;
crypto/tls-cipher-suites.c +2 -1
index d0df4badc0f..e546cc7c0e6 100644
@@ -102,7 +102,8 @@ static GByteArray *qcrypto_tls_cipher_suites_fw_cfg_gen_data(Object *obj,
                                               errp);
 }
 
-static void qcrypto_tls_cipher_suites_class_init(ObjectClass *oc, void *data)
+static void qcrypto_tls_cipher_suites_class_init(ObjectClass *oc,
+                                                 const void *data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
     FWCfgDataGeneratorClass *fwgc = FW_CFG_DATA_GENERATOR_CLASS(oc);
crypto/tlscreds.c +1 -1
index 084ce0d51ae..9e59594d673 100644
@@ -223,7 +223,7 @@ qcrypto_tls_creds_prop_get_endpoint(Object *obj,
 
 
 static void
-qcrypto_tls_creds_class_init(ObjectClass *oc, void *data)
+qcrypto_tls_creds_class_init(ObjectClass *oc, const void *data)
 {
     object_class_property_add_bool(oc, "verify-peer",
                                    qcrypto_tls_creds_prop_get_verify,
crypto/tlscredsanon.c +1 -1
index 476cf89c963..0e2d133821f 100644
@@ -137,7 +137,7 @@ qcrypto_tls_creds_anon_finalize(Object *obj)
 
 
 static void
-qcrypto_tls_creds_anon_class_init(ObjectClass *oc, void *data)
+qcrypto_tls_creds_anon_class_init(ObjectClass *oc, const void *data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
 
crypto/tlscredspsk.c +1 -1
index aa270d7988b..287c2a3c96c 100644
@@ -236,7 +236,7 @@ qcrypto_tls_creds_psk_prop_get_username(Object *obj,
 }
 
 static void
-qcrypto_tls_creds_psk_class_init(ObjectClass *oc, void *data)
+qcrypto_tls_creds_psk_class_init(ObjectClass *oc, const void *data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
 
crypto/tlscredsx509.c +1 -1
index 24ec5849222..143993f5393 100644
@@ -802,7 +802,7 @@ qcrypto_tls_creds_x509_finalize(Object *obj)
 
 
 static void
-qcrypto_tls_creds_x509_class_init(ObjectClass *oc, void *data)
+qcrypto_tls_creds_x509_class_init(ObjectClass *oc, const void *data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
     QCryptoTLSCredsClass *ctcc = QCRYPTO_TLS_CREDS_CLASS(oc);
event-loop-base.c +2 -1
index 0cfb1c94962..10b669ffc73 100644
@@ -99,7 +99,8 @@ static bool event_loop_base_can_be_deleted(UserCreatable *uc)
     return true;
 }
 
-static void event_loop_base_class_init(ObjectClass *klass, void *class_data)
+static void event_loop_base_class_init(ObjectClass *klass,
+                                       const void *class_data)
 {
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(klass);
     ucc->complete = event_loop_base_complete;
gdbstub/system.c +1 -1
index 8ce79fa88cf..7de28e555d7 100644
@@ -239,7 +239,7 @@ static void gdb_monitor_open(Chardev *chr, ChardevBackend *backend,
     *be_opened = false;
 }
 
-static void char_gdb_class_init(ObjectClass *oc, void *data)
+static void char_gdb_class_init(ObjectClass *oc, const void *data)
 {
     ChardevClass *cc = CHARDEV_CLASS(oc);
 
hw/9pfs/virtio-9p-device.c +1 -1
index bb2843da0f6..81b91e47c63 100644
@@ -248,7 +248,7 @@ static const Property virtio_9p_properties[] = {
     DEFINE_PROP_STRING("fsdev", V9fsVirtioState, state.fsconf.fsdev_id),
 };
 
-static void virtio_9p_class_init(ObjectClass *klass, void *data)
+static void virtio_9p_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass);
hw/acpi/erst.c +1 -1
index ec64f928935..621c82f019f 100644
@@ -1018,7 +1018,7 @@ static const Property erst_properties[] = {
                      default_record_size, ERST_RECORD_SIZE),
 };
 
-static void erst_class_init(ObjectClass *klass, void *data)
+static void erst_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
hw/acpi/generic_event_device.c +1 -1
index c85d97ca377..f589e79a2bb 100644
@@ -469,7 +469,7 @@ static void acpi_ged_initfn(Object *obj)
     sysbus_init_mmio(sbd, &ged_st->regs);
 }
 
-static void acpi_ged_class_init(ObjectClass *class, void *data)
+static void acpi_ged_class_init(ObjectClass *class, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(class);
     HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(class);
hw/acpi/pci.c +2 -2
index f88f450af38..d511a850295 100644
@@ -133,7 +133,7 @@ static void acpi_generic_initiator_set_node(Object *obj, Visitor *v,
     ms->numa_state->nodes[gi->node].has_gi = true;
 }
 
-static void acpi_generic_initiator_class_init(ObjectClass *oc, void *data)
+static void acpi_generic_initiator_class_init(ObjectClass *oc, const void *data)
 {
     object_class_property_add_str(oc, "pci-dev", NULL,
         acpi_generic_initiator_set_pci_device);
@@ -247,7 +247,7 @@ static void acpi_generic_port_set_node(Object *obj, Visitor *v,
     gp->node = value;
 }
 
-static void acpi_generic_port_class_init(ObjectClass *oc, void *data)
+static void acpi_generic_port_class_init(ObjectClass *oc, const void *data)
 {
     object_class_property_add_str(oc, "pci-bus", NULL,
         acpi_generic_port_set_pci_bus);
hw/acpi/piix4.c +1 -1
index 6d023e595b6..5860e8408bd 100644
@@ -619,7 +619,7 @@ static const Property piix4_pm_properties[] = {
                       not_migrate_acpi_index, false),
 };
 
-static void piix4_pm_class_init(ObjectClass *klass, void *data)
+static void piix4_pm_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
hw/acpi/vmclock.c +1 -1
index 7387e5c9cad..c582c0c1f83 100644
@@ -154,7 +154,7 @@ static void vmclock_realize(DeviceState *dev, Error **errp)
     vmclock_update_guest(vms);
 }
 
-static void vmclock_device_class_init(ObjectClass *klass, void *data)
+static void vmclock_device_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/acpi/vmgenid.c +1 -1
index 008768e0366..fac3d6d97e7 100644
@@ -218,7 +218,7 @@ static const Property vmgenid_device_properties[] = {
     DEFINE_PROP_UUID(VMGENID_GUID, VmGenIdState, guid),
 };
 
-static void vmgenid_device_class_init(ObjectClass *klass, void *data)
+static void vmgenid_device_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/adc/aspeed_adc.c +5 -5
index 1cc554f1793..3e820cae1e3 100644
@@ -291,7 +291,7 @@ static const Property aspeed_adc_engine_properties[] = {
     DEFINE_PROP_UINT32("nr-channels", AspeedADCEngineState, nr_channels, 0),
 };
 
-static void aspeed_adc_engine_class_init(ObjectClass *klass, void *data)
+static void aspeed_adc_engine_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -369,7 +369,7 @@ static void aspeed_adc_realize(DeviceState *dev, Error **errp)
     }
 }
 
-static void aspeed_adc_class_init(ObjectClass *klass, void *data)
+static void aspeed_adc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     AspeedADCClass *aac = ASPEED_ADC_CLASS(klass);
@@ -379,7 +379,7 @@ static void aspeed_adc_class_init(ObjectClass *klass, void *data)
     aac->nr_engines = 1;
 }
 
-static void aspeed_2600_adc_class_init(ObjectClass *klass, void *data)
+static void aspeed_2600_adc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     AspeedADCClass *aac = ASPEED_ADC_CLASS(klass);
@@ -388,7 +388,7 @@ static void aspeed_2600_adc_class_init(ObjectClass *klass, void *data)
     aac->nr_engines = 2;
 }
 
-static void aspeed_1030_adc_class_init(ObjectClass *klass, void *data)
+static void aspeed_1030_adc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     AspeedADCClass *aac = ASPEED_ADC_CLASS(klass);
@@ -397,7 +397,7 @@ static void aspeed_1030_adc_class_init(ObjectClass *klass, void *data)
     aac->nr_engines = 2;
 }
 
-static void aspeed_2700_adc_class_init(ObjectClass *klass, void *data)
+static void aspeed_2700_adc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     AspeedADCClass *aac = ASPEED_ADC_CLASS(klass);
hw/adc/npcm7xx_adc.c +1 -1
index 0a83d28605e..ddb219d4562 100644
@@ -271,7 +271,7 @@ static const Property npcm7xx_timer_properties[] = {
     DEFINE_PROP_UINT32("iref", NPCM7xxADCState, iref, NPCM7XX_ADC_DEFAULT_IREF),
 };
 
-static void npcm7xx_adc_class_init(ObjectClass *klass, void *data)
+static void npcm7xx_adc_class_init(ObjectClass *klass, const void *data)
 {
     ResettableClass *rc = RESETTABLE_CLASS(klass);
     DeviceClass *dc = DEVICE_CLASS(klass);
hw/adc/stm32f2xx_adc.c +1 -1
index e3b21f90779..a490ae640d9 100644
@@ -284,7 +284,7 @@ static void stm32f2xx_adc_init(Object *obj)
     sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->mmio);
 }
 
-static void stm32f2xx_adc_class_init(ObjectClass *klass, void *data)
+static void stm32f2xx_adc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/adc/zynq-xadc.c +1 -1
index 26d9a7b9a5b..748a51ba78b 100644
@@ -281,7 +281,7 @@ static const VMStateDescription vmstate_zynq_xadc = {
     }
 };
 
-static void zynq_xadc_class_init(ObjectClass *klass, void *data)
+static void zynq_xadc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/alpha/typhoon.c +1 -1
index e8711ae16a3..c7e30e60426 100644
@@ -934,7 +934,7 @@ static const TypeInfo typhoon_pcihost_info = {
 };
 
 static void typhoon_iommu_memory_region_class_init(ObjectClass *klass,
-                                                   void *data)
+                                                   const void *data)
 {
     IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass);
 
hw/arm/allwinner-a10.c +1 -1
index a829913f1b5..08a56f7d3ed 100644
@@ -208,7 +208,7 @@ static void aw_a10_realize(DeviceState *dev, Error **errp)
     sysbus_mmio_map_overlap(SYS_BUS_DEVICE(&s->wdt), 0, AW_A10_WDT_BASE, 1);
 }
 
-static void aw_a10_class_init(ObjectClass *oc, void *data)
+static void aw_a10_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/arm/allwinner-h3.c +1 -1
index 2efced3f66a..25d621e489d 100644
@@ -466,7 +466,7 @@ static void allwinner_h3_realize(DeviceState *dev, Error **errp)
     }
 }
 
-static void allwinner_h3_class_init(ObjectClass *oc, void *data)
+static void allwinner_h3_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/arm/allwinner-r40.c +1 -1
index 47b3180f0ec..c00e97d626f 100644
@@ -539,7 +539,7 @@ static void allwinner_r40_realize(DeviceState *dev, Error **errp)
     }
 }
 
-static void allwinner_r40_class_init(ObjectClass *oc, void *data)
+static void allwinner_r40_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/arm/armsse.c +1 -1
index ffd732f8068..d65a46b8d8d 100644
@@ -1691,7 +1691,7 @@ static void armsse_reset(DeviceState *dev)
     s->nsccfg = 0;
 }
 
-static void armsse_class_init(ObjectClass *klass, void *data)
+static void armsse_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     IDAUInterfaceClass *iic = IDAU_INTERFACE_CLASS(klass);
hw/arm/armv7m.c +2 -2
index 98a69846119..a4cca5ca465 100644
@@ -565,7 +565,7 @@ static const VMStateDescription vmstate_armv7m = {
     }
 };
 
-static void armv7m_class_init(ObjectClass *klass, void *data)
+static void armv7m_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -636,7 +636,7 @@ static const Property bitband_properties[] = {
                      TYPE_MEMORY_REGION, MemoryRegion *),
 };
 
-static void bitband_class_init(ObjectClass *klass, void *data)
+static void bitband_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/arm/aspeed.c +34 -22

188 lines not on this page · raw message

hw/arm/aspeed_ast10x0.c +1 -1
index e76c7100a1d..ff9686551f9 100644
@@ -415,7 +415,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
                                   sc->memmap[ASPEED_DEV_JTAG1], 0x20);
 }
 
-static void aspeed_soc_ast1030_class_init(ObjectClass *klass, void *data)
+static void aspeed_soc_ast1030_class_init(ObjectClass *klass, const void *data)
 {
     static const char * const valid_cpu_types[] = {
         ARM_CPU_TYPE_NAME("cortex-m4"), /* TODO cortex-m4f */
hw/arm/aspeed_ast2400.c +2 -2
index 8784b6e7930..54b459ee361 100644
@@ -502,7 +502,7 @@ static void aspeed_ast2400_soc_realize(DeviceState *dev, Error **errp)
                        aspeed_soc_get_irq(s, ASPEED_DEV_HACE));
 }
 
-static void aspeed_soc_ast2400_class_init(ObjectClass *oc, void *data)
+static void aspeed_soc_ast2400_class_init(ObjectClass *oc, const void *data)
 {
     static const char * const valid_cpu_types[] = {
         ARM_CPU_TYPE_NAME("arm926"),
@@ -531,7 +531,7 @@ static void aspeed_soc_ast2400_class_init(ObjectClass *oc, void *data)
     sc->get_irq      = aspeed_soc_ast2400_get_irq;
 }
 
-static void aspeed_soc_ast2500_class_init(ObjectClass *oc, void *data)
+static void aspeed_soc_ast2500_class_init(ObjectClass *oc, const void *data)
 {
     static const char * const valid_cpu_types[] = {
         ARM_CPU_TYPE_NAME("arm1176"),
hw/arm/aspeed_ast2600.c +1 -1
index 07210483bb2..811303b7ff9 100644
@@ -653,7 +653,7 @@ static bool aspeed_soc_ast2600_boot_from_emmc(AspeedSoCState *s)
     return !!(hw_strap1 & SCU_AST2600_HW_STRAP_BOOT_SRC_EMMC);
 }
 
-static void aspeed_soc_ast2600_class_init(ObjectClass *oc, void *data)
+static void aspeed_soc_ast2600_class_init(ObjectClass *oc, const void *data)
 {
     static const char * const valid_cpu_types[] = {
         ARM_CPU_TYPE_NAME("cortex-a7"),
hw/arm/aspeed_ast27x0.c +1 -1
index 2d0c99f1591..7912bafaff7 100644
@@ -740,7 +740,7 @@ static void aspeed_soc_ast2700_realize(DeviceState *dev, Error **errp)
     create_unimplemented_device("ast2700.io", 0x0, 0x4000000);
 }
 
-static void aspeed_soc_ast2700_class_init(ObjectClass *oc, void *data)
+static void aspeed_soc_ast2700_class_init(ObjectClass *oc, const void *data)
 {
     static const char * const valid_cpu_types[] = {
         ARM_CPU_TYPE_NAME("cortex-a35"),
hw/arm/aspeed_soc_common.c +1 -1
index 1ddcb26c1ed..1c4ac93a0ff 100644
@@ -146,7 +146,7 @@ static const Property aspeed_soc_properties[] = {
                      MemoryRegion *),
 };
 
-static void aspeed_soc_class_init(ObjectClass *oc, void *data)
+static void aspeed_soc_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
     AspeedSoCClass *sc = ASPEED_SOC_CLASS(oc);
hw/arm/b-l475e-iot01a.c +1 -1
index c9a5209216c..34ed2e0851b 100644
@@ -110,7 +110,7 @@ static void bl475e_init(MachineState *machine)
     }
 }
 
-static void bl475e_machine_init(ObjectClass *oc, void *data)
+static void bl475e_machine_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     static const char *machine_valid_cpu_types[] = {
hw/arm/bcm2835_peripherals.c +1 -1
index adc9730c2ed..8a1e72dfab2 100644
@@ -520,7 +520,7 @@ void bcm_soc_peripherals_common_realize(DeviceState *dev, Error **errp)
     create_unimp(s, &s->sdramc, "bcm2835-sdramc", SDRAMC_OFFSET, 0x100);
 }
 
-static void bcm2835_peripherals_class_init(ObjectClass *oc, void *data)
+static void bcm2835_peripherals_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
     BCMSocPeripheralBaseClass *bc = BCM_SOC_PERIPHERALS_BASE_CLASS(oc);
hw/arm/bcm2836.c +4 -4
index 95e16806fa1..cd61ba15054 100644
@@ -163,7 +163,7 @@ static void bcm2836_realize(DeviceState *dev, Error **errp)
     }
 }
 
-static void bcm283x_base_class_init(ObjectClass *oc, void *data)
+static void bcm283x_base_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
@@ -171,7 +171,7 @@ static void bcm283x_base_class_init(ObjectClass *oc, void *data)
     dc->user_creatable = false;
 }
 
-static void bcm2835_class_init(ObjectClass *oc, void *data)
+static void bcm2835_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
     BCM283XBaseClass *bc = BCM283X_BASE_CLASS(oc);
@@ -182,7 +182,7 @@ static void bcm2835_class_init(ObjectClass *oc, void *data)
     dc->realize = bcm2835_realize;
 };
 
-static void bcm2836_class_init(ObjectClass *oc, void *data)
+static void bcm2836_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
     BCM283XBaseClass *bc = BCM283X_BASE_CLASS(oc);
@@ -196,7 +196,7 @@ static void bcm2836_class_init(ObjectClass *oc, void *data)
 };
 
 #ifdef TARGET_AARCH64
-static void bcm2837_class_init(ObjectClass *oc, void *data)
+static void bcm2837_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
     BCM283XBaseClass *bc = BCM283X_BASE_CLASS(oc);
hw/arm/bcm2838.c +1 -1
index ddb7c5f757a..22aa754613c 100644
@@ -233,7 +233,7 @@ static void bcm2838_realize(DeviceState *dev, Error **errp)
     qdev_pass_gpios(DEVICE(&s->gic), DEVICE(&s->peripherals), NULL);
 }
 
-static void bcm2838_class_init(ObjectClass *oc, void *data)
+static void bcm2838_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
     BCM283XBaseClass *bc_base = BCM283X_BASE_CLASS(oc);
hw/arm/bcm2838_peripherals.c +1 -1
index e28bef4a37d..812b5b8480c 100644
@@ -196,7 +196,7 @@ static void bcm2838_peripherals_realize(DeviceState *dev, Error **errp)
     create_unimp(s_base, &s->asb, "bcm2838-asb", BRDG_OFFSET, 0x24);
 }
 
-static void bcm2838_peripherals_class_init(ObjectClass *oc, void *data)
+static void bcm2838_peripherals_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
     BCM2838PeripheralClass *bc = BCM2838_PERIPHERALS_CLASS(oc);
hw/arm/collie.c +1 -1
index eaa5c52d45a..135a57ad6d2 100644
@@ -69,7 +69,7 @@ static void collie_init(MachineState *machine)
     arm_load_kernel(cms->sa1110->cpu, machine, &collie_binfo);
 }
 
-static void collie_machine_class_init(ObjectClass *oc, void *data)
+static void collie_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
hw/arm/digic.c +1 -1
index 5836619d9fe..d831bc974d2 100644
@@ -79,7 +79,7 @@ static void digic_realize(DeviceState *dev, Error **errp)
     sysbus_mmio_map(sbd, 0, DIGIC_UART_BASE);
 }
 
-static void digic_class_init(ObjectClass *oc, void *data)
+static void digic_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/arm/exynos4210.c +1 -1
index dd0edc81d5c..5888c13f6a1 100644
@@ -837,7 +837,7 @@ static void exynos4210_init(Object *obj)
                             TYPE_EXYNOS4210_COMBINER);
 }
 
-static void exynos4210_class_init(ObjectClass *klass, void *data)
+static void exynos4210_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/arm/exynos4_boards.c +2 -2
index 2410e2a28e8..c9ac0011604 100644
@@ -154,7 +154,7 @@ static const char * const valid_cpu_types[] = {
     NULL
 };
 
-static void nuri_class_init(ObjectClass *oc, void *data)
+static void nuri_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
@@ -173,7 +173,7 @@ static const TypeInfo nuri_type = {
     .class_init = nuri_class_init,
 };
 
-static void smdkc210_class_init(ObjectClass *oc, void *data)
+static void smdkc210_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
hw/arm/fby35.c +1 -1
index 83d08e578b7..75686fbf5de 100644
@@ -162,7 +162,7 @@ static void fby35_instance_init(Object *obj)
     FBY35(obj)->mmio_exec = false;
 }
 
-static void fby35_class_init(ObjectClass *oc, void *data)
+static void fby35_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
hw/arm/fsl-imx25.c +1 -1
index 5359a6d8d3b..6fa2edfc4a5 100644
@@ -313,7 +313,7 @@ static const Property fsl_imx25_properties[] = {
     DEFINE_PROP_UINT32("fec-phy-num", FslIMX25State, phy_num, 0),
 };
 
-static void fsl_imx25_class_init(ObjectClass *oc, void *data)
+static void fsl_imx25_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/arm/fsl-imx31.c +1 -1
index 9de0f2148f6..67342209e0b 100644
@@ -218,7 +218,7 @@ static void fsl_imx31_realize(DeviceState *dev, Error **errp)
                                 &s->iram_alias);
 }
 
-static void fsl_imx31_class_init(ObjectClass *oc, void *data)
+static void fsl_imx31_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/arm/fsl-imx6.c +1 -1
index dc86338b3a5..2e5592e164b 100644
@@ -486,7 +486,7 @@ static const Property fsl_imx6_properties[] = {
     DEFINE_PROP_UINT32("fec-phy-num", FslIMX6State, phy_num, 0),
 };
 
-static void fsl_imx6_class_init(ObjectClass *oc, void *data)
+static void fsl_imx6_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/arm/fsl-imx6ul.c +1 -1
index 34c4aa15cd0..f1b4be9cb1a 100644
@@ -717,7 +717,7 @@ static const Property fsl_imx6ul_properties[] = {
                      true),
 };
 
-static void fsl_imx6ul_class_init(ObjectClass *oc, void *data)
+static void fsl_imx6ul_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/arm/fsl-imx7.c +1 -1
index 3374018cde0..ee77c59df91 100644
@@ -750,7 +750,7 @@ static const Property fsl_imx7_properties[] = {
                      true),
 };
 
-static void fsl_imx7_class_init(ObjectClass *oc, void *data)
+static void fsl_imx7_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/arm/highbank.c +3 -3
index 495704d9726..b21828a6675 100644
@@ -139,7 +139,7 @@ static void highbank_regs_init(Object *obj)
     sysbus_init_mmio(dev, &s->iomem);
 }
 
-static void highbank_regs_class_init(ObjectClass *klass, void *data)
+static void highbank_regs_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -341,7 +341,7 @@ static void midway_init(MachineState *machine)
     calxeda_init(machine, CALXEDA_MIDWAY);
 }
 
-static void highbank_class_init(ObjectClass *oc, void *data)
+static void highbank_class_init(ObjectClass *oc, const void *data)
 {
     static const char * const valid_cpu_types[] = {
         ARM_CPU_TYPE_NAME("cortex-a9"),
@@ -365,7 +365,7 @@ static const TypeInfo highbank_type = {
     .class_init = highbank_class_init,
 };
 
-static void midway_class_init(ObjectClass *oc, void *data)
+static void midway_class_init(ObjectClass *oc, const void *data)
 {
     static const char * const valid_cpu_types[] = {
         ARM_CPU_TYPE_NAME("cortex-a15"),
hw/arm/integratorcp.c +3 -3
index 4e1b8627d32..567f0c14400 100644
@@ -698,7 +698,7 @@ static const Property core_properties[] = {
     DEFINE_PROP_UINT32("memsz", IntegratorCMState, memsz, 0),
 };
 
-static void core_class_init(ObjectClass *klass, void *data)
+static void core_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -707,14 +707,14 @@ static void core_class_init(ObjectClass *klass, void *data)
     dc->vmsd = &vmstate_integratorcm;
 }
 
-static void icp_pic_class_init(ObjectClass *klass, void *data)
+static void icp_pic_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
     dc->vmsd = &vmstate_icp_pic;
 }
 
-static void icp_control_class_init(ObjectClass *klass, void *data)
+static void icp_control_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/arm/microbit.c +1 -1
index 3f56fb45ce1..ee52326df9c 100644
@@ -60,7 +60,7 @@ static void microbit_init(MachineState *machine)
                        0, s->nrf51.flash_size);
 }
 
-static void microbit_machine_class_init(ObjectClass *oc, void *data)
+static void microbit_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
hw/arm/mps2-tz.c +5 -5
index 13ed868b6b9..609abe9db65 100644
@@ -1267,7 +1267,7 @@ static void mps2_machine_reset(MachineState *machine, ResetType type)
     qemu_devices_reset(type);
 }
 
-static void mps2tz_class_init(ObjectClass *oc, void *data)
+static void mps2tz_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     IDAUInterfaceClass *iic = IDAU_INTERFACE_CLASS(oc);
@@ -1304,7 +1304,7 @@ static void mps2tz_set_default_ram_info(MPS2TZMachineClass *mmc)
     g_assert_not_reached();
 }
 
-static void mps2tz_an505_class_init(ObjectClass *oc, void *data)
+static void mps2tz_an505_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     MPS2TZMachineClass *mmc = MPS2TZ_MACHINE_CLASS(oc);
@@ -1338,7 +1338,7 @@ static void mps2tz_an505_class_init(ObjectClass *oc, void *data)
     mps2tz_set_default_ram_info(mmc);
 }
 
-static void mps2tz_an521_class_init(ObjectClass *oc, void *data)
+static void mps2tz_an521_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     MPS2TZMachineClass *mmc = MPS2TZ_MACHINE_CLASS(oc);
@@ -1372,7 +1372,7 @@ static void mps2tz_an521_class_init(ObjectClass *oc, void *data)
     mps2tz_set_default_ram_info(mmc);
 }
 
-static void mps3tz_an524_class_init(ObjectClass *oc, void *data)
+static void mps3tz_an524_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     MPS2TZMachineClass *mmc = MPS2TZ_MACHINE_CLASS(oc);
@@ -1411,7 +1411,7 @@ static void mps3tz_an524_class_init(ObjectClass *oc, void *data)
                                           "are BRAM (default) and QSPI.");
 }
 
-static void mps3tz_an547_class_init(ObjectClass *oc, void *data)
+static void mps3tz_an547_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     MPS2TZMachineClass *mmc = MPS2TZ_MACHINE_CLASS(oc);
hw/arm/mps2.c +5 -5
index 3f8db0cab60..aa7dbde4505 100644
@@ -464,7 +464,7 @@ static void mps2_common_init(MachineState *machine)
                        0, 0x400000);
 }
 
-static void mps2_class_init(ObjectClass *oc, void *data)
+static void mps2_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
@@ -474,7 +474,7 @@ static void mps2_class_init(ObjectClass *oc, void *data)
     mc->default_ram_id = "mps.ram";
 }
 
-static void mps2_an385_class_init(ObjectClass *oc, void *data)
+static void mps2_an385_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     MPS2MachineClass *mmc = MPS2_MACHINE_CLASS(oc);
@@ -493,7 +493,7 @@ static void mps2_an385_class_init(ObjectClass *oc, void *data)
     mmc->has_block_ram = true;
 }
 
-static void mps2_an386_class_init(ObjectClass *oc, void *data)
+static void mps2_an386_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     MPS2MachineClass *mmc = MPS2_MACHINE_CLASS(oc);
@@ -512,7 +512,7 @@ static void mps2_an386_class_init(ObjectClass *oc, void *data)
     mmc->has_block_ram = true;
 }
 
-static void mps2_an500_class_init(ObjectClass *oc, void *data)
+static void mps2_an500_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     MPS2MachineClass *mmc = MPS2_MACHINE_CLASS(oc);
@@ -531,7 +531,7 @@ static void mps2_an500_class_init(ObjectClass *oc, void *data)
     mmc->has_block_ram = false;
 }
 
-static void mps2_an511_class_init(ObjectClass *oc, void *data)
+static void mps2_an511_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     MPS2MachineClass *mmc = MPS2_MACHINE_CLASS(oc);
hw/arm/mps3r.c +2 -2
index 1bddb5e822f..f5f306ba0c9 100644
@@ -583,14 +583,14 @@ static void mps3r_set_default_ram_info(MPS3RMachineClass *mmc)
     g_assert_not_reached();
 }
 
-static void mps3r_class_init(ObjectClass *oc, void *data)
+static void mps3r_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
     mc->init = mps3r_common_init;
 }
 
-static void mps3r_an536_class_init(ObjectClass *oc, void *data)
+static void mps3r_an536_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     MPS3RMachineClass *mmc = MPS3R_MACHINE_CLASS(oc);
hw/arm/msf2-soc.c +1 -1
index e8a5b231bab..9a53485fd81 100644
@@ -236,7 +236,7 @@ static const Property m2sxxx_soc_properties[] = {
     DEFINE_PROP_UINT8("apb1div", MSF2State, apb1div, 2),
 };
 
-static void m2sxxx_soc_class_init(ObjectClass *klass, void *data)
+static void m2sxxx_soc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/arm/musca.c +3 -3
index e9c092abc3d..0fd2261f32f 100644
@@ -594,7 +594,7 @@ static void musca_init(MachineState *machine)
                        0, 0x2000000);
 }
 
-static void musca_class_init(ObjectClass *oc, void *data)
+static void musca_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     static const char * const valid_cpu_types[] = {
@@ -609,7 +609,7 @@ static void musca_class_init(ObjectClass *oc, void *data)
     mc->init = musca_init;
 }
 
-static void musca_a_class_init(ObjectClass *oc, void *data)
+static void musca_a_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     MuscaMachineClass *mmc = MUSCA_MACHINE_CLASS(oc);
@@ -623,7 +623,7 @@ static void musca_a_class_init(ObjectClass *oc, void *data)
     mmc->num_mpcs = ARRAY_SIZE(a_mpc_info);
 }
 
-static void musca_b1_class_init(ObjectClass *oc, void *data)
+static void musca_b1_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     MuscaMachineClass *mmc = MUSCA_MACHINE_CLASS(oc);
hw/arm/musicpal.c +7 -7
index 48a32c24079..329b162eb20 100644
@@ -286,7 +286,7 @@ static const VMStateDescription musicpal_lcd_vmsd = {
     }
 };
 
-static void musicpal_lcd_class_init(ObjectClass *klass, void *data)
+static void musicpal_lcd_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -407,7 +407,7 @@ static const VMStateDescription mv88w8618_pic_vmsd = {
     }
 };
 
-static void mv88w8618_pic_class_init(ObjectClass *klass, void *data)
+static void mv88w8618_pic_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -601,7 +601,7 @@ static const VMStateDescription mv88w8618_pit_vmsd = {
     }
 };
 
-static void mv88w8618_pit_class_init(ObjectClass *klass, void *data)
+static void mv88w8618_pit_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -687,7 +687,7 @@ static const VMStateDescription mv88w8618_flashcfg_vmsd = {
     }
 };
 
-static void mv88w8618_flashcfg_class_init(ObjectClass *klass, void *data)
+static void mv88w8618_flashcfg_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -1026,7 +1026,7 @@ static const VMStateDescription musicpal_gpio_vmsd = {
     }
 };
 
-static void musicpal_gpio_class_init(ObjectClass *klass, void *data)
+static void musicpal_gpio_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -1171,7 +1171,7 @@ static const VMStateDescription musicpal_key_vmsd = {
     }
 };
 
-static void musicpal_key_class_init(ObjectClass *klass, void *data)
+static void musicpal_key_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -1348,7 +1348,7 @@ static void musicpal_machine_init(MachineClass *mc)
 
 DEFINE_MACHINE("musicpal", musicpal_machine_init)
 
-static void mv88w8618_wlan_class_init(ObjectClass *klass, void *data)
+static void mv88w8618_wlan_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/arm/npcm7xx.c +3 -3
index 386b2c35e9b..eec69eeb256 100644
@@ -815,7 +815,7 @@ static const Property npcm7xx_properties[] = {
                      MemoryRegion *),
 };
 
-static void npcm7xx_class_init(ObjectClass *oc, void *data)
+static void npcm7xx_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
@@ -824,7 +824,7 @@ static void npcm7xx_class_init(ObjectClass *oc, void *data)
     device_class_set_props(dc, npcm7xx_properties);
 }
 
-static void npcm730_class_init(ObjectClass *oc, void *data)
+static void npcm730_class_init(ObjectClass *oc, const void *data)
 {
     NPCM7xxClass *nc = NPCM7XX_CLASS(oc);
 
@@ -833,7 +833,7 @@ static void npcm730_class_init(ObjectClass *oc, void *data)
     nc->num_cpus = 2;
 }
 
-static void npcm750_class_init(ObjectClass *oc, void *data)
+static void npcm750_class_init(ObjectClass *oc, const void *data)
 {
     NPCM7xxClass *nc = NPCM7XX_CLASS(oc);
 
hw/arm/npcm7xx_boards.c +6 -6
index 7727e0dc4bb..c28441b15b8 100644
@@ -453,7 +453,7 @@ static void npcm7xx_set_soc_type(NPCM7xxMachineClass *nmc, const char *type)
     mc->default_cpus = mc->min_cpus = mc->max_cpus = sc->num_cpus;
 }
 
-static void npcm7xx_machine_class_init(ObjectClass *oc, void *data)
+static void npcm7xx_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     static const char * const valid_cpu_types[] = {
@@ -472,7 +472,7 @@ static void npcm7xx_machine_class_init(ObjectClass *oc, void *data)
  * Schematics:
  * https://github.com/Nuvoton-Israel/nuvoton-info/blob/master/npcm7xx-poleg/evaluation-board/board_deliverables/NPCM750x_EB_ver.A1.1_COMPLETE.pdf
  */
-static void npcm750_evb_machine_class_init(ObjectClass *oc, void *data)
+static void npcm750_evb_machine_class_init(ObjectClass *oc, const void *data)
 {
     NPCM7xxMachineClass *nmc = NPCM7XX_MACHINE_CLASS(oc);
     MachineClass *mc = MACHINE_CLASS(oc);
@@ -484,7 +484,7 @@ static void npcm750_evb_machine_class_init(ObjectClass *oc, void *data)
     mc->default_ram_size = 512 * MiB;
 };
 
-static void gsj_machine_class_init(ObjectClass *oc, void *data)
+static void gsj_machine_class_init(ObjectClass *oc, const void *data)
 {
     NPCM7xxMachineClass *nmc = NPCM7XX_MACHINE_CLASS(oc);
     MachineClass *mc = MACHINE_CLASS(oc);
@@ -496,7 +496,7 @@ static void gsj_machine_class_init(ObjectClass *oc, void *data)
     mc->default_ram_size = 512 * MiB;
 };
 
-static void gbs_bmc_machine_class_init(ObjectClass *oc, void *data)
+static void gbs_bmc_machine_class_init(ObjectClass *oc, const void *data)
 {
     NPCM7xxMachineClass *nmc = NPCM7XX_MACHINE_CLASS(oc);
     MachineClass *mc = MACHINE_CLASS(oc);
@@ -508,7 +508,7 @@ static void gbs_bmc_machine_class_init(ObjectClass *oc, void *data)
     mc->default_ram_size = 1 * GiB;
 }
 
-static void kudo_bmc_machine_class_init(ObjectClass *oc, void *data)
+static void kudo_bmc_machine_class_init(ObjectClass *oc, const void *data)
 {
     NPCM7xxMachineClass *nmc = NPCM7XX_MACHINE_CLASS(oc);
     MachineClass *mc = MACHINE_CLASS(oc);
@@ -520,7 +520,7 @@ static void kudo_bmc_machine_class_init(ObjectClass *oc, void *data)
     mc->default_ram_size = 1 * GiB;
 };
 
-static void mori_bmc_machine_class_init(ObjectClass *oc, void *data)
+static void mori_bmc_machine_class_init(ObjectClass *oc, const void *data)
 {
     NPCM7xxMachineClass *nmc = NPCM7XX_MACHINE_CLASS(oc);
     MachineClass *mc = MACHINE_CLASS(oc);
hw/arm/nrf51_soc.c +1 -1
index dee06ab5654..d8cc3214ed6 100644
@@ -216,7 +216,7 @@ static const Property nrf51_soc_properties[] = {
                        NRF51822_FLASH_SIZE),
 };
 
-static void nrf51_soc_class_init(ObjectClass *klass, void *data)
+static void nrf51_soc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/arm/omap_sx1.c +2 -2
index 623ebd66395..0472e868e31 100644
@@ -206,7 +206,7 @@ static void sx1_init_v2(MachineState *machine)
     sx1_init(machine, 2);
 }
 
-static void sx1_machine_v2_class_init(ObjectClass *oc, void *data)
+static void sx1_machine_v2_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
@@ -224,7 +224,7 @@ static const TypeInfo sx1_machine_v2_type = {
     .class_init = sx1_machine_v2_class_init,
 };
 
-static void sx1_machine_v1_class_init(ObjectClass *oc, void *data)
+static void sx1_machine_v1_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
hw/arm/raspi.c +5 -5
index a7a662f40db..37da6bd05c6 100644
@@ -337,7 +337,7 @@ static void raspi_machine_class_init(MachineClass *mc,
     mc->init = raspi_machine_init;
 };
 
-static void raspi0_machine_class_init(ObjectClass *oc, void *data)
+static void raspi0_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     RaspiBaseMachineClass *rmc = RASPI_BASE_MACHINE_CLASS(oc);
@@ -346,7 +346,7 @@ static void raspi0_machine_class_init(ObjectClass *oc, void *data)
     raspi_machine_class_init(mc, rmc->board_rev);
 };
 
-static void raspi1ap_machine_class_init(ObjectClass *oc, void *data)
+static void raspi1ap_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     RaspiBaseMachineClass *rmc = RASPI_BASE_MACHINE_CLASS(oc);
@@ -355,7 +355,7 @@ static void raspi1ap_machine_class_init(ObjectClass *oc, void *data)
     raspi_machine_class_init(mc, rmc->board_rev);
 };
 
-static void raspi2b_machine_class_init(ObjectClass *oc, void *data)
+static void raspi2b_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     RaspiBaseMachineClass *rmc = RASPI_BASE_MACHINE_CLASS(oc);
@@ -365,7 +365,7 @@ static void raspi2b_machine_class_init(ObjectClass *oc, void *data)
 };
 
 #ifdef TARGET_AARCH64
-static void raspi3ap_machine_class_init(ObjectClass *oc, void *data)
+static void raspi3ap_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     RaspiBaseMachineClass *rmc = RASPI_BASE_MACHINE_CLASS(oc);
@@ -374,7 +374,7 @@ static void raspi3ap_machine_class_init(ObjectClass *oc, void *data)
     raspi_machine_class_init(mc, rmc->board_rev);
 };
 
-static void raspi3b_machine_class_init(ObjectClass *oc, void *data)
+static void raspi3b_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     RaspiBaseMachineClass *rmc = RASPI_BASE_MACHINE_CLASS(oc);
hw/arm/raspi4b.c +1 -1
index 1264e0d6eed..62770d61d5d 100644
@@ -107,7 +107,7 @@ static void raspi4b_machine_init(MachineState *machine)
     raspi_base_machine_init(machine, &soc->parent_obj);
 }
 
-static void raspi4b_machine_class_init(ObjectClass *oc, void *data)
+static void raspi4b_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     RaspiBaseMachineClass *rmc = RASPI_BASE_MACHINE_CLASS(oc);
hw/arm/realview.c +4 -4
index 9900a98f3b8..06b6e85f56d 100644
@@ -406,7 +406,7 @@ static void realview_pbx_a9_init(MachineState *machine)
     realview_init(machine, BOARD_PBX_A9);
 }
 
-static void realview_eb_class_init(ObjectClass *oc, void *data)
+static void realview_eb_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
@@ -425,7 +425,7 @@ static const TypeInfo realview_eb_type = {
     .class_init = realview_eb_class_init,
 };
 
-static void realview_eb_mpcore_class_init(ObjectClass *oc, void *data)
+static void realview_eb_mpcore_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
@@ -445,7 +445,7 @@ static const TypeInfo realview_eb_mpcore_type = {
     .class_init = realview_eb_mpcore_class_init,
 };
 
-static void realview_pb_a8_class_init(ObjectClass *oc, void *data)
+static void realview_pb_a8_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
@@ -463,7 +463,7 @@ static const TypeInfo realview_pb_a8_type = {
     .class_init = realview_pb_a8_class_init,
 };
 
-static void realview_pbx_a9_class_init(ObjectClass *oc, void *data)
+static void realview_pbx_a9_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
hw/arm/sbsa-ref.c +1 -1
index e720de30641..0bc1679537a 100644
@@ -878,7 +878,7 @@ static void sbsa_ref_instance_init(Object *obj)
     sbsa_flash_create(sms);
 }
 
-static void sbsa_ref_class_init(ObjectClass *oc, void *data)
+static void sbsa_ref_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     static const char * const valid_cpu_types[] = {
hw/arm/smmu-common.c +1 -1
index dd74c2e5583..68a2d55b719 100644
@@ -940,7 +940,7 @@ static const Property smmu_dev_properties[] = {
                      TYPE_PCI_BUS, PCIBus *),
 };
 
-static void smmu_base_class_init(ObjectClass *klass, void *data)
+static void smmu_base_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     ResettableClass *rc = RESETTABLE_CLASS(klass);
hw/arm/smmuv3.c +2 -2
index c0cf5df0f6e..de8324227cb 100644
@@ -1992,7 +1992,7 @@ static void smmuv3_instance_init(Object *obj)
     /* Nothing much to do here as of now */
 }
 
-static void smmuv3_class_init(ObjectClass *klass, void *data)
+static void smmuv3_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     ResettableClass *rc = RESETTABLE_CLASS(klass);
@@ -2039,7 +2039,7 @@ static int smmuv3_notify_flag_changed(IOMMUMemoryRegion *iommu,
 }
 
 static void smmuv3_iommu_memory_region_class_init(ObjectClass *klass,
-                                                  void *data)
+                                                  const void *data)
 {
     IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass);
 
hw/arm/stellaris.c +5 -5
index 47c1cfa0485..57ef40784a6 100644
@@ -1413,7 +1413,7 @@ static void lm3s6965evb_init(MachineState *machine)
  * Stellaris LM3S811 Evaluation Board Schematics:
  * https://www.ti.com/lit/ug/symlink/spmu030.pdf
  */
-static void lm3s811evb_class_init(ObjectClass *oc, void *data)
+static void lm3s811evb_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
@@ -1433,7 +1433,7 @@ static const TypeInfo lm3s811evb_type = {
  * Stellaris: LM3S6965 Evaluation Board Schematics:
  * https://www.ti.com/lit/ug/symlink/spmu029.pdf
  */
-static void lm3s6965evb_class_init(ObjectClass *oc, void *data)
+static void lm3s6965evb_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
@@ -1457,7 +1457,7 @@ static void stellaris_machine_init(void)
 
 type_init(stellaris_machine_init)
 
-static void stellaris_i2c_class_init(ObjectClass *klass, void *data)
+static void stellaris_i2c_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     ResettableClass *rc = RESETTABLE_CLASS(klass);
@@ -1476,7 +1476,7 @@ static const TypeInfo stellaris_i2c_info = {
     .class_init    = stellaris_i2c_class_init,
 };
 
-static void stellaris_adc_class_init(ObjectClass *klass, void *data)
+static void stellaris_adc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     ResettableClass *rc = RESETTABLE_CLASS(klass);
@@ -1493,7 +1493,7 @@ static const TypeInfo stellaris_adc_info = {
     .class_init    = stellaris_adc_class_init,
 };
 
-static void stellaris_sys_class_init(ObjectClass *klass, void *data)
+static void stellaris_sys_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     ResettableClass *rc = RESETTABLE_CLASS(klass);
hw/arm/stm32f100_soc.c +1 -1
index 53b56364525..3408217d909 100644
@@ -181,7 +181,7 @@ static void stm32f100_soc_realize(DeviceState *dev_soc, Error **errp)
     create_unimplemented_device("CRC",       0x40023000, 0x400);
 }
 
-static void stm32f100_soc_class_init(ObjectClass *klass, void *data)
+static void stm32f100_soc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/arm/stm32f205_soc.c +1 -1
index 47a54e592be..e71ddbf0f4a 100644
@@ -202,7 +202,7 @@ static void stm32f205_soc_realize(DeviceState *dev_soc, Error **errp)
     }
 }
 
-static void stm32f205_soc_class_init(ObjectClass *klass, void *data)
+static void stm32f205_soc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/arm/stm32f405_soc.c +1 -1
index 18d8824f29d..736827e1e80 100644
@@ -298,7 +298,7 @@ static void stm32f405_soc_realize(DeviceState *dev_soc, Error **errp)
     create_unimplemented_device("RNG",         0x50060800, 0x400);
 }
 
-static void stm32f405_soc_class_init(ObjectClass *klass, void *data)
+static void stm32f405_soc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/arm/stm32l4x5_soc.c +4 -4
index dbf75329f7d..75683873b26 100644
@@ -435,7 +435,7 @@ static void stm32l4x5_soc_realize(DeviceState *dev_soc, Error **errp)
     create_unimplemented_device("QUADSPI",   0xA0001000, 0x400);
 }
 
-static void stm32l4x5_soc_class_init(ObjectClass *klass, void *data)
+static void stm32l4x5_soc_class_init(ObjectClass *klass, const void *data)
 {
 
     DeviceClass *dc = DEVICE_CLASS(klass);
@@ -446,21 +446,21 @@ static void stm32l4x5_soc_class_init(ObjectClass *klass, void *data)
     /* No vmstate or reset required: device has no internal state */
 }
 
-static void stm32l4x5xc_soc_class_init(ObjectClass *oc, void *data)
+static void stm32l4x5xc_soc_class_init(ObjectClass *oc, const void *data)
 {
     Stm32l4x5SocClass *ssc = STM32L4X5_SOC_CLASS(oc);
 
     ssc->flash_size = 256 * KiB;
 }
 
-static void stm32l4x5xe_soc_class_init(ObjectClass *oc, void *data)
+static void stm32l4x5xe_soc_class_init(ObjectClass *oc, const void *data)
 {
     Stm32l4x5SocClass *ssc = STM32L4X5_SOC_CLASS(oc);
 
     ssc->flash_size = 512 * KiB;
 }
 
-static void stm32l4x5xg_soc_class_init(ObjectClass *oc, void *data)
+static void stm32l4x5xg_soc_class_init(ObjectClass *oc, const void *data)
 {
     Stm32l4x5SocClass *ssc = STM32L4X5_SOC_CLASS(oc);
 
hw/arm/strongarm.c +7 -6
index a31f4b4c65c..229c98ddd90 100644
@@ -215,7 +215,7 @@ static const VMStateDescription vmstate_strongarm_pic_regs = {
     },
 };
 
-static void strongarm_pic_class_init(ObjectClass *klass, void *data)
+static void strongarm_pic_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -448,7 +448,8 @@ static const VMStateDescription vmstate_strongarm_rtc_regs = {
     },
 };
 
-static void strongarm_rtc_sysbus_class_init(ObjectClass *klass, void *data)
+static void strongarm_rtc_sysbus_class_init(ObjectClass *klass,
+                                            const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -693,7 +694,7 @@ static const VMStateDescription vmstate_strongarm_gpio_regs = {
     },
 };
 
-static void strongarm_gpio_class_init(ObjectClass *klass, void *data)
+static void strongarm_gpio_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -865,7 +866,7 @@ static const VMStateDescription vmstate_strongarm_ppc_regs = {
     },
 };
 
-static void strongarm_ppc_class_init(ObjectClass *klass, void *data)
+static void strongarm_ppc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -1336,7 +1337,7 @@ static const Property strongarm_uart_properties[] = {
     DEFINE_PROP_CHR("chardev", StrongARMUARTState, chr),
 };
 
-static void strongarm_uart_class_init(ObjectClass *klass, void *data)
+static void strongarm_uart_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -1589,7 +1590,7 @@ static const VMStateDescription vmstate_strongarm_ssp_regs = {
     },
 };
 
-static void strongarm_ssp_class_init(ObjectClass *klass, void *data)
+static void strongarm_ssp_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/arm/versatilepb.c +3 -3
index bc4522989ec..ea873732ee5 100644
@@ -409,7 +409,7 @@ static void vab_init(MachineState *machine)
     versatile_init(machine, 0x25e);
 }
 
-static void versatilepb_class_init(ObjectClass *oc, void *data)
+static void versatilepb_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
@@ -429,7 +429,7 @@ static const TypeInfo versatilepb_type = {
     .class_init = versatilepb_class_init,
 };
 
-static void versatileab_class_init(ObjectClass *oc, void *data)
+static void versatileab_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
@@ -457,7 +457,7 @@ static void versatile_machine_init(void)
 
 type_init(versatile_machine_init)
 
-static void vpb_sic_class_init(ObjectClass *klass, void *data)
+static void vpb_sic_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/arm/vexpress.c +3 -3
index b886d16c023..744653f29b4 100644
@@ -774,7 +774,7 @@ static void vexpress_a9_instance_init(Object *obj)
     vms->virt = false;
 }
 
-static void vexpress_class_init(ObjectClass *oc, void *data)
+static void vexpress_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
@@ -792,7 +792,7 @@ static void vexpress_class_init(ObjectClass *oc, void *data)
                                           "Security Extensions (TrustZone)");
 }
 
-static void vexpress_a9_class_init(ObjectClass *oc, void *data)
+static void vexpress_a9_class_init(ObjectClass *oc, const void *data)
 {
     static const char * const valid_cpu_types[] = {
         ARM_CPU_TYPE_NAME("cortex-a9"),
@@ -807,7 +807,7 @@ static void vexpress_a9_class_init(ObjectClass *oc, void *data)
     vmc->daughterboard = &a9_daughterboard;
 }
 
-static void vexpress_a15_class_init(ObjectClass *oc, void *data)
+static void vexpress_a15_class_init(ObjectClass *oc, const void *data)
 {
     static const char * const valid_cpu_types[] = {
         ARM_CPU_TYPE_NAME("cortex-a15"),
hw/arm/virt.c +2 -2
index 4a5a9666e91..03ce6dcff4a 100644
@@ -105,7 +105,7 @@ static void arm_virt_compat_set(MachineClass *mc)
 #define DEFINE_VIRT_MACHINE_IMPL(latest, ...) \
     static void MACHINE_VER_SYM(class_init, virt, __VA_ARGS__)( \
         ObjectClass *oc, \
-        void *data) \
+        const void *data) \
     { \
         MachineClass *mc = MACHINE_CLASS(oc); \
         arm_virt_compat_set(mc); \
@@ -3079,7 +3079,7 @@ static int virt_hvf_get_physical_address_range(MachineState *ms)
     return requested_ipa_size;
 }
 
-static void virt_machine_class_init(ObjectClass *oc, void *data)
+static void virt_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc);
hw/arm/xen-pvh.c +1 -1
index d1509bd235d..4b26bcff7a5 100644
@@ -49,7 +49,7 @@ static void xen_pvh_set_pci_intx_irq(void *opaque, int intx_irq, int level)
     }
 }
 
-static void xen_arm_machine_class_init(ObjectClass *oc, void *data)
+static void xen_arm_machine_class_init(ObjectClass *oc, const void *data)
 {
     XenPVHMachineClass *xpc = XEN_PVH_MACHINE_CLASS(oc);
     MachineClass *mc = MACHINE_CLASS(oc);
hw/arm/xilinx_zynq.c +1 -1
index 8477b828745..a46a9b08254 100644
@@ -452,7 +452,7 @@ static void zynq_init(MachineState *machine)
     arm_load_kernel(zynq_machine->cpu[0], machine, &zynq_binfo);
 }
 
-static void zynq_machine_class_init(ObjectClass *oc, void *data)
+static void zynq_machine_class_init(ObjectClass *oc, const void *data)
 {
     static const char * const valid_cpu_types[] = {
         ARM_CPU_TYPE_NAME("cortex-a9"),
hw/arm/xlnx-versal-virt.c +1 -1
index 1401d37959e..290bc309a3c 100644
@@ -808,7 +808,7 @@ static void versal_virt_machine_finalize(Object *obj)
     g_free(s->ospi_model);
 }
 
-static void versal_virt_machine_class_init(ObjectClass *oc, void *data)
+static void versal_virt_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
hw/arm/xlnx-versal.c +1 -1
index 278545a3f7b..12ff2c7c47a 100644
@@ -977,7 +977,7 @@ static const Property versal_properties[] = {
                       TYPE_CAN_BUS, CanBusState *),
 };
 
-static void versal_class_init(ObjectClass *klass, void *data)
+static void versal_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/arm/xlnx-zcu102.c +1 -1
index 70fb444bbd9..0e6d276c626 100644
@@ -267,7 +267,7 @@ static void xlnx_zcu102_machine_instance_init(Object *obj)
                              0);
 }
 
-static void xlnx_zcu102_machine_class_init(ObjectClass *oc, void *data)
+static void xlnx_zcu102_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
hw/arm/xlnx-zynqmp.c +1 -1
index bd5b0dd5e76..c36f9f8168d 100644
@@ -869,7 +869,7 @@ static const Property xlnx_zynqmp_props[] = {
                      CanBusState *),
 };
 
-static void xlnx_zynqmp_class_init(ObjectClass *oc, void *data)
+static void xlnx_zynqmp_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/audio/ac97.c +1 -1
index 05c573776ed..7454cc60deb 100644
@@ -1328,7 +1328,7 @@ static const Property ac97_properties[] = {
     DEFINE_AUDIO_PROPERTIES(AC97LinkState, card),
 };
 
-static void ac97_class_init(ObjectClass *klass, void *data)
+static void ac97_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
hw/audio/adlib.c +1 -1
index 8c9767b5372..1f29a7e319d 100644
@@ -303,7 +303,7 @@ static const Property adlib_properties[] = {
     DEFINE_PROP_UINT32 ("freq",    AdlibState, freq,  44100),
 };
 
-static void adlib_class_initfn (ObjectClass *klass, void *data)
+static void adlib_class_initfn(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS (klass);
 
hw/audio/asc.c +1 -1
index cc205bf063e..e4d3fbdd527 100644
@@ -700,7 +700,7 @@ static const Property asc_properties[] = {
     DEFINE_PROP_UINT8("asctype", ASCState, type, ASC_TYPE_ASC),
 };
 
-static void asc_class_init(ObjectClass *oc, void *data)
+static void asc_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
     ResettableClass *rc = RESETTABLE_CLASS(oc);
hw/audio/cs4231.c +1 -1
index 8321f89c882..97cceb44d86 100644
@@ -160,7 +160,7 @@ static void cs4231_init(Object *obj)
     sysbus_init_irq(dev, &s->irq);
 }
 
-static void cs4231_class_init(ObjectClass *klass, void *data)
+static void cs4231_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/audio/cs4231a.c +1 -1
index 5a9be80ba3b..06b44da8690 100644
@@ -696,7 +696,7 @@ static const Property cs4231a_properties[] = {
     DEFINE_PROP_UINT32 ("dma",     CSState, dma,  3),
 };
 
-static void cs4231a_class_initfn (ObjectClass *klass, void *data)
+static void cs4231a_class_initfn(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS (klass);
 
hw/audio/es1370.c +1 -1
index 75f71e5d78e..322b7798149 100644
@@ -872,7 +872,7 @@ static const Property es1370_properties[] = {
     DEFINE_AUDIO_PROPERTIES(ES1370State, card),
 };
 
-static void es1370_class_init (ObjectClass *klass, void *data)
+static void es1370_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS (klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS (klass);
hw/audio/gus.c +1 -1
index e718c1183e8..87e86348937 100644
@@ -298,7 +298,7 @@ static const Property gus_properties[] = {
     DEFINE_PROP_UINT32 ("dma",     GUSState, emu.gusdma,  3),
 };
 
-static void gus_class_initfn (ObjectClass *klass, void *data)
+static void gus_class_initfn(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS (klass);
 
hw/audio/hda-codec.c +4 -4
index 6f3a8f691bf..66edad280f2 100644
@@ -900,7 +900,7 @@ static void hda_audio_init_micro(HDACodecDevice *hda, Error **errp)
     hda_audio_init(hda, desc, errp);
 }
 
-static void hda_audio_base_class_init(ObjectClass *klass, void *data)
+static void hda_audio_base_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     HDACodecDeviceClass *k = HDA_CODEC_DEVICE_CLASS(klass);
@@ -922,7 +922,7 @@ static const TypeInfo hda_audio_info = {
     .abstract      = true,
 };
 
-static void hda_audio_output_class_init(ObjectClass *klass, void *data)
+static void hda_audio_output_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     HDACodecDeviceClass *k = HDA_CODEC_DEVICE_CLASS(klass);
@@ -937,7 +937,7 @@ static const TypeInfo hda_audio_output_info = {
     .class_init    = hda_audio_output_class_init,
 };
 
-static void hda_audio_duplex_class_init(ObjectClass *klass, void *data)
+static void hda_audio_duplex_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     HDACodecDeviceClass *k = HDA_CODEC_DEVICE_CLASS(klass);
@@ -952,7 +952,7 @@ static const TypeInfo hda_audio_duplex_info = {
     .class_init    = hda_audio_duplex_class_init,
 };
 
-static void hda_audio_micro_class_init(ObjectClass *klass, void *data)
+static void hda_audio_micro_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     HDACodecDeviceClass *k = HDA_CODEC_DEVICE_CLASS(klass);
hw/audio/intel-hda.c +4 -4
index 3214992ddc5..2f1b08e9c1c 100644
@@ -1220,7 +1220,7 @@ static const Property intel_hda_properties[] = {
     DEFINE_PROP_BOOL("old_msi_addr", IntelHDAState, old_msi_addr, false),
 };
 
-static void intel_hda_class_init(ObjectClass *klass, void *data)
+static void intel_hda_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
@@ -1234,7 +1234,7 @@ static void intel_hda_class_init(ObjectClass *klass, void *data)
     device_class_set_props(dc, intel_hda_properties);
 }
 
-static void intel_hda_class_init_ich6(ObjectClass *klass, void *data)
+static void intel_hda_class_init_ich6(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
@@ -1245,7 +1245,7 @@ static void intel_hda_class_init_ich6(ObjectClass *klass, void *data)
     dc->desc = "Intel HD Audio Controller (ich6)";
 }
 
-static void intel_hda_class_init_ich9(ObjectClass *klass, void *data)
+static void intel_hda_class_init_ich9(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
@@ -1280,7 +1280,7 @@ static const TypeInfo intel_hda_info_ich9 = {
     .class_init    = intel_hda_class_init_ich9,
 };
 
-static void hda_codec_device_class_init(ObjectClass *klass, void *data)
+static void hda_codec_device_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *k = DEVICE_CLASS(klass);
     k->realize = hda_codec_dev_realize;
hw/audio/marvell_88w8618.c +1 -1
index 28f9af320de..6d3ebbb0c82 100644
@@ -287,7 +287,7 @@ static const VMStateDescription mv88w8618_audio_vmsd = {
     }
 };
 
-static void mv88w8618_audio_class_init(ObjectClass *klass, void *data)
+static void mv88w8618_audio_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/audio/pcspk.c +1 -1
index 17be1855474..a419161b5b1 100644
@@ -221,7 +221,7 @@ static const Property pcspk_properties[] = {
     DEFINE_PROP_BOOL("migrate", PCSpkState, migrate,  true),
 };
 
-static void pcspk_class_initfn(ObjectClass *klass, void *data)
+static void pcspk_class_initfn(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/audio/pl041.c +1 -1
index f771d725fa6..5d9d6c1178b 100644
@@ -632,7 +632,7 @@ static const Property pl041_device_properties[] = {
                        DEFAULT_FIFO_DEPTH),
 };
 
-static void pl041_device_class_init(ObjectClass *klass, void *data)
+static void pl041_device_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/audio/sb16.c +1 -1
index 0c661b4947b..19fd3b90205 100644
@@ -1449,7 +1449,7 @@ static const Property sb16_properties[] = {
     DEFINE_PROP_UINT32 ("dma16",   SB16State, hdma, 5),
 };
 
-static void sb16_class_initfn (ObjectClass *klass, void *data)
+static void sb16_class_initfn(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS (klass);
 
hw/audio/via-ac97.c +2 -2
index 4e115e011e8..5feef663d8c 100644
@@ -463,7 +463,7 @@ static const Property via_ac97_properties[] = {
     DEFINE_AUDIO_PROPERTIES(ViaAC97State, card),
 };
 
-static void via_ac97_class_init(ObjectClass *klass, void *data)
+static void via_ac97_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
@@ -501,7 +501,7 @@ static void via_mc97_realize(PCIDevice *pci_dev, Error **errp)
     pci_set_long(pci_dev->config + PCI_INTERRUPT_PIN, 0x03);
 }
 
-static void via_mc97_class_init(ObjectClass *klass, void *data)
+static void via_mc97_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
hw/audio/virtio-snd-pci.c +1 -1
index 74d93f4e9c9..9eb00073920 100644
@@ -42,7 +42,7 @@ static void virtio_snd_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp)
     qdev_realize(vdev, BUS(&vpci_dev->bus), errp);
 }
 
-static void virtio_snd_pci_class_init(ObjectClass *klass, void *data)
+static void virtio_snd_pci_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     VirtioPCIClass *vpciklass = VIRTIO_PCI_CLASS(klass);
hw/audio/virtio-snd.c +1 -1
index 0b47741f013..eca3319e59f 100644
@@ -1361,7 +1361,7 @@ static void virtio_snd_reset(VirtIODevice *vdev)
     }
 }
 
-static void virtio_snd_class_init(ObjectClass *klass, void *data)
+static void virtio_snd_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass);
hw/audio/wm8750.c +1 -1
index 8d381dbc658..2846b55fe2a 100644
@@ -710,7 +710,7 @@ static const Property wm8750_properties[] = {
     DEFINE_AUDIO_PROPERTIES(WM8750State, card),
 };
 
-static void wm8750_class_init(ObjectClass *klass, void *data)
+static void wm8750_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     I2CSlaveClass *sc = I2C_SLAVE_CLASS(klass);
hw/avr/arduino.c +5 -5
index 48ef478346e..e166ca18e11 100644
@@ -56,7 +56,7 @@ static void arduino_machine_init(MachineState *machine)
     }
 }
 
-static void arduino_machine_class_init(ObjectClass *oc, void *data)
+static void arduino_machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
@@ -69,7 +69,7 @@ static void arduino_machine_class_init(ObjectClass *oc, void *data)
     mc->no_parallel = 1;
 }
 
-static void arduino_duemilanove_class_init(ObjectClass *oc, void *data)
+static void arduino_duemilanove_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     ArduinoMachineClass *amc = ARDUINO_MACHINE_CLASS(oc);
@@ -84,7 +84,7 @@ static void arduino_duemilanove_class_init(ObjectClass *oc, void *data)
     amc->xtal_hz    = 16 * 1000 * 1000;
 };
 
-static void arduino_uno_class_init(ObjectClass *oc, void *data)
+static void arduino_uno_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     ArduinoMachineClass *amc = ARDUINO_MACHINE_CLASS(oc);
@@ -99,7 +99,7 @@ static void arduino_uno_class_init(ObjectClass *oc, void *data)
     amc->xtal_hz    = 16 * 1000 * 1000;
 };
 
-static void arduino_mega_class_init(ObjectClass *oc, void *data)
+static void arduino_mega_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     ArduinoMachineClass *amc = ARDUINO_MACHINE_CLASS(oc);
@@ -114,7 +114,7 @@ static void arduino_mega_class_init(ObjectClass *oc, void *data)
     amc->xtal_hz    = 16 * 1000 * 1000;
 };
 
-static void arduino_mega2560_class_init(ObjectClass *oc, void *data)
+static void arduino_mega2560_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
     ArduinoMachineClass *amc = ARDUINO_MACHINE_CLASS(oc);
hw/avr/atmega.c +5 -5
index f6844bf118e..3de35d80778 100644
@@ -360,7 +360,7 @@ static const Property atmega_props[] = {
                        xtal_freq_hz, 0),
 };
 
-static void atmega_class_init(ObjectClass *oc, void *data)
+static void atmega_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
@@ -370,7 +370,7 @@ static void atmega_class_init(ObjectClass *oc, void *data)
     dc->user_creatable = false;
 }
 
-static void atmega168_class_init(ObjectClass *oc, void *data)
+static void atmega168_class_init(ObjectClass *oc, const void *data)
 {
     AtmegaMcuClass *amc = ATMEGA_MCU_CLASS(oc);
 
@@ -385,7 +385,7 @@ static void atmega168_class_init(ObjectClass *oc, void *data)
     amc->dev = dev168_328;
 };
 
-static void atmega328_class_init(ObjectClass *oc, void *data)
+static void atmega328_class_init(ObjectClass *oc, const void *data)
 {
     AtmegaMcuClass *amc = ATMEGA_MCU_CLASS(oc);
 
@@ -400,7 +400,7 @@ static void atmega328_class_init(ObjectClass *oc, void *data)
     amc->dev = dev168_328;
 };
 
-static void atmega1280_class_init(ObjectClass *oc, void *data)
+static void atmega1280_class_init(ObjectClass *oc, const void *data)
 {
     AtmegaMcuClass *amc = ATMEGA_MCU_CLASS(oc);
 
@@ -415,7 +415,7 @@ static void atmega1280_class_init(ObjectClass *oc, void *data)
     amc->dev = dev1280_2560;
 };
 
-static void atmega2560_class_init(ObjectClass *oc, void *data)
+static void atmega2560_class_init(ObjectClass *oc, const void *data)
 {
     AtmegaMcuClass *amc = ATMEGA_MCU_CLASS(oc);
 
hw/block/fdc-isa.c +1 -1
index a10c24aab10..1d32a66d3b7 100644
@@ -298,7 +298,7 @@ static const Property isa_fdc_properties[] = {
                         FloppyDriveType),
 };
 
-static void isabus_fdc_class_init(ObjectClass *klass, void *data)
+static void isabus_fdc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     AcpiDevAmlIfClass *adevc = ACPI_DEV_AML_IF_CLASS(klass);
hw/block/fdc-sysbus.c +3 -3
index 381b492aec9..496120e3687 100644
@@ -176,7 +176,7 @@ static const VMStateDescription vmstate_sysbus_fdc = {
     }
 };
 
-static void sysbus_fdc_common_class_init(ObjectClass *klass, void *data)
+static void sysbus_fdc_common_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -208,7 +208,7 @@ static const Property sysbus_fdc_properties[] = {
                         FloppyDriveType),
 };
 
-static void sysbus_fdc_class_init(ObjectClass *klass, void *data)
+static void sysbus_fdc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
@@ -231,7 +231,7 @@ static const Property sun4m_fdc_properties[] = {
                         FloppyDriveType),
 };
 
-static void sun4m_fdc_class_init(ObjectClass *klass, void *data)
+static void sun4m_fdc_class_init(ObjectClass *klass, const void *data)
 {
     FDCtrlSysBusClass *sbdc = SYSBUS_FDC_CLASS(klass);
     DeviceClass *dc = DEVICE_CLASS(klass);
hw/block/fdc.c +1 -1
index 2df941d3f4f..d0f08c7be54 100644
@@ -553,7 +553,7 @@ static void floppy_drive_realize(DeviceState *qdev, Error **errp)
     fd_revalidate(drive);
 }
 
-static void floppy_drive_class_init(ObjectClass *klass, void *data)
+static void floppy_drive_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *k = DEVICE_CLASS(klass);
     k->realize = floppy_drive_realize;
hw/block/m25p80.c +2 -2
index b84c6afb327..236fa798c34 100644
@@ -528,7 +528,7 @@ struct Flash {
 
 struct M25P80Class {
     SSIPeripheralClass parent_class;
-    FlashPartInfo *pi;
+    const FlashPartInfo *pi;
 };
 
 OBJECT_DECLARE_TYPE(Flash, M25P80Class, M25P80)
@@ -1857,7 +1857,7 @@ static const VMStateDescription vmstate_m25p80 = {
     }
 };
 
-static void m25p80_class_init(ObjectClass *klass, void *data)
+static void m25p80_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     SSIPeripheralClass *k = SSI_PERIPHERAL_CLASS(klass);
hw/block/nand.c +1 -1
index e98c55b729c..c80bf78fe58 100644
@@ -451,7 +451,7 @@ static const Property nand_properties[] = {
     DEFINE_PROP_DRIVE("drive", NANDFlashState, blk),
 };
 
-static void nand_class_init(ObjectClass *klass, void *data)
+static void nand_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/block/pflash_cfi01.c +1 -1
index b5ea927f360..168101d8dfe 100644
@@ -934,7 +934,7 @@ static const Property pflash_cfi01_properties[] = {
                      old_multiple_chip_handling, false),
 };
 
-static void pflash_cfi01_class_init(ObjectClass *klass, void *data)
+static void pflash_cfi01_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/block/pflash_cfi02.c +1 -1
index 315a53629a0..3244b699b98 100644
@@ -968,7 +968,7 @@ static void pflash_cfi02_unrealize(DeviceState *dev)
     g_free(pfl->sector_erase_map);
 }
 
-static void pflash_cfi02_class_init(ObjectClass *klass, void *data)
+static void pflash_cfi02_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/block/swim.c +2 -2
index 4645468dcf0..ad047362f88 100644
@@ -253,7 +253,7 @@ static void swim_drive_realize(DeviceState *qdev, Error **errp)
     blk_set_dev_ops(drive->blk, &swim_block_ops, drive);
 }
 
-static void swim_drive_class_init(ObjectClass *klass, void *data)
+static void swim_drive_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *k = DEVICE_CLASS(klass);
     k->realize = swim_drive_realize;
@@ -550,7 +550,7 @@ static const VMStateDescription vmstate_sysbus_swim = {
     }
 };
 
-static void sysbus_swim_class_init(ObjectClass *oc, void *data)
+static void sysbus_swim_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/block/vhost-user-blk.c +1 -1
index ae42327cf8d..4bb5ed299e7 100644
@@ -583,7 +583,7 @@ static const Property vhost_user_blk_properties[] = {
                       VIRTIO_BLK_F_WRITE_ZEROES, true),
 };
 
-static void vhost_user_blk_class_init(ObjectClass *klass, void *data)
+static void vhost_user_blk_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass);
hw/block/virtio-blk.c +1 -1
index a1829e3abdf..724409c8a8e 100644
@@ -2002,7 +2002,7 @@ static const Property virtio_blk_properties[] = {
                      conf.x_enable_wce_if_config_wce, true),
 };
 
-static void virtio_blk_class_init(ObjectClass *klass, void *data)
+static void virtio_blk_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass);
hw/block/xen-block.c +3 -3
index 6c26052561a..05dd8d3181b 100644
@@ -677,7 +677,7 @@ static const Property xen_block_props[] = {
                      TYPE_IOTHREAD, IOThread *),
 };
 
-static void xen_block_class_init(ObjectClass *class, void *data)
+static void xen_block_class_init(ObjectClass *class, const void *data)
 {
     DeviceClass *dev_class = DEVICE_CLASS(class);
     XenDeviceClass *xendev_class = XEN_DEVICE_CLASS(class);
@@ -722,7 +722,7 @@ static void xen_disk_realize(XenBlockDevice *blockdev, Error **errp)
     blockdev->info = blk_supports_write_perm(conf->blk) ? 0 : VDISK_READONLY;
 }
 
-static void xen_disk_class_init(ObjectClass *class, void *data)
+static void xen_disk_class_init(ObjectClass *class, const void *data)
 {
     DeviceClass *dev_class = DEVICE_CLASS(class);
     XenBlockDeviceClass *blockdev_class = XEN_BLOCK_DEVICE_CLASS(class);
@@ -769,7 +769,7 @@ static void xen_cdrom_realize(XenBlockDevice *blockdev, Error **errp)
     blockdev->info = VDISK_READONLY | VDISK_CDROM;
 }
 
-static void xen_cdrom_class_init(ObjectClass *class, void *data)
+static void xen_cdrom_class_init(ObjectClass *class, const void *data)
 {
     DeviceClass *dev_class = DEVICE_CLASS(class);
     XenBlockDeviceClass *blockdev_class = XEN_BLOCK_DEVICE_CLASS(class);
hw/char/avr_usart.c +1 -1
index e8012cae3ad..fae15217e9f 100644
@@ -295,7 +295,7 @@ static void avr_usart_realize(DeviceState *dev, Error **errp)
     avr_usart_reset(dev);
 }
 
-static void avr_usart_class_init(ObjectClass *klass, void *data)
+static void avr_usart_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/bcm2835_aux.c +1 -1
index 73ad5934067..f51ddd39cf2 100644
@@ -294,7 +294,7 @@ static const Property bcm2835_aux_props[] = {
     DEFINE_PROP_CHR("chardev", BCM2835AuxState, chr),
 };
 
-static void bcm2835_aux_class_init(ObjectClass *oc, void *data)
+static void bcm2835_aux_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/char/cadence_uart.c +1 -1
index ebd846a083b..0dfa356b6d0 100644
@@ -621,7 +621,7 @@ static const Property cadence_uart_properties[] = {
     DEFINE_PROP_CHR("chardev", CadenceUARTState, chr),
 };
 
-static void cadence_uart_class_init(ObjectClass *klass, void *data)
+static void cadence_uart_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     ResettableClass *rc = RESETTABLE_CLASS(klass);
hw/char/cmsdk-apb-uart.c +1 -1
index 0506500215f..32090f3516f 100644
@@ -382,7 +382,7 @@ static const Property cmsdk_apb_uart_properties[] = {
     DEFINE_PROP_UINT32("pclk-frq", CMSDKAPBUART, pclk_frq, 0),
 };
 
-static void cmsdk_apb_uart_class_init(ObjectClass *klass, void *data)
+static void cmsdk_apb_uart_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/debugcon.c +1 -1
index 1bc3bf85fea..bf44aaf9e4a 100644
@@ -120,7 +120,7 @@ static const Property debugcon_isa_properties[] = {
     DEFINE_PROP_UINT32("readback", ISADebugconState, state.readback, 0xe9),
 };
 
-static void debugcon_isa_class_initfn(ObjectClass *klass, void *data)
+static void debugcon_isa_class_initfn(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/digic-uart.c +1 -1
index b0b0714e0f7..0f6af51bb7b 100644
@@ -176,7 +176,7 @@ static const Property digic_uart_properties[] = {
     DEFINE_PROP_CHR("chardev", DigicUartState, chr),
 };
 
-static void digic_uart_class_init(ObjectClass *klass, void *data)
+static void digic_uart_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/diva-gsp.c +2 -2
index ecec1f7bb11..9a623d680b3 100644
@@ -183,7 +183,7 @@ static const Property diva_serial_properties[] = {
                                     PCI_DEVICE_ID_HP_DIVA_TOSCA1),
 };
 
-static void diva_serial_class_initfn(ObjectClass *klass, void *data)
+static void diva_serial_class_initfn(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *pc = PCI_DEVICE_CLASS(klass);
@@ -242,7 +242,7 @@ static void diva_aux_exit(PCIDevice *dev)
     qemu_free_irq(pci->irq);
 }
 
-static void diva_aux_class_initfn(ObjectClass *klass, void *data)
+static void diva_aux_class_initfn(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *pc = PCI_DEVICE_CLASS(klass);
hw/char/escc.c +1 -1
index a5fdd8f6986..afe4ca483e7 100644
@@ -1101,7 +1101,7 @@ static const Property escc_properties[] = {
     DEFINE_PROP_STRING("chnA-sunkbd-layout", ESCCState, chn[1].sunkbd_layout),
 };
 
-static void escc_class_init(ObjectClass *klass, void *data)
+static void escc_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/exynos4210_uart.c +1 -1
index a1a9a12cafe..6521b4cedd9 100644
@@ -711,7 +711,7 @@ static const Property exynos4210_uart_properties[] = {
     DEFINE_PROP_UINT32("tx-size", Exynos4210UartState, tx.size, 16),
 };
 
-static void exynos4210_uart_class_init(ObjectClass *klass, void *data)
+static void exynos4210_uart_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/goldfish_tty.c +1 -1
index 73745611419..6dd38da6cac 100644
@@ -256,7 +256,7 @@ static void goldfish_tty_instance_init(Object *obj)
     sysbus_init_irq(dev, &s->irq);
 }
 
-static void goldfish_tty_class_init(ObjectClass *oc, void *data)
+static void goldfish_tty_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/char/grlib_apbuart.c +1 -1
index db6bcdad41b..81c26e33899 100644
@@ -281,7 +281,7 @@ static const Property grlib_apbuart_properties[] = {
     DEFINE_PROP_CHR("chrdev", UART, chr),
 };
 
-static void grlib_apbuart_class_init(ObjectClass *klass, void *data)
+static void grlib_apbuart_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/ibex_uart.c +1 -1
index 392375ad551..d6f0d18c777 100644
@@ -542,7 +542,7 @@ static void ibex_uart_realize(DeviceState *dev, Error **errp)
                              s, NULL, true);
 }
 
-static void ibex_uart_class_init(ObjectClass *klass, void *data)
+static void ibex_uart_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/imx_serial.c +1 -1
index 38b4865157e..55a5d5bb7d4 100644
@@ -463,7 +463,7 @@ static const Property imx_serial_properties[] = {
     DEFINE_PROP_CHR("chardev", IMXSerialState, chr),
 };
 
-static void imx_serial_class_init(ObjectClass *klass, void *data)
+static void imx_serial_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/ipoctal232.c +1 -1
index a2879977fb3..752c6c818ab 100644
@@ -569,7 +569,7 @@ static const Property ipoctal_properties[] = {
     DEFINE_PROP_CHR("chardev7", IPOctalState, ch[7].dev),
 };
 
-static void ipoctal_class_init(ObjectClass *klass, void *data)
+static void ipoctal_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     IPackDeviceClass *ic = IPACK_DEVICE_CLASS(klass);
hw/char/mcf_uart.c +1 -1
index 980a12fcb7d..8611433b280 100644
@@ -316,7 +316,7 @@ static const Property mcf_uart_properties[] = {
     DEFINE_PROP_CHR("chardev", mcf_uart_state, chr),
 };
 
-static void mcf_uart_class_init(ObjectClass *oc, void *data)
+static void mcf_uart_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/char/mchp_pfsoc_mmuart.c +1 -1
index 3c3224c05d9..6149f9d2047 100644
@@ -121,7 +121,7 @@ static const VMStateDescription mchp_pfsoc_mmuart_vmstate = {
     }
 };
 
-static void mchp_pfsoc_mmuart_class_init(ObjectClass *oc, void *data)
+static void mchp_pfsoc_mmuart_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/char/nrf51_uart.c +1 -1
index 82a61ee95f2..41d423446f3 100644
@@ -308,7 +308,7 @@ static const Property nrf51_uart_properties[] = {
     DEFINE_PROP_CHR("chardev", NRF51UARTState, chr),
 };
 
-static void nrf51_uart_class_init(ObjectClass *klass, void *data)
+static void nrf51_uart_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/parallel.c +1 -1
index e1651d52a49..217ddaf2e3e 100644
@@ -610,7 +610,7 @@ static const Property parallel_isa_properties[] = {
     DEFINE_PROP_CHR("chardev",  ISAParallelState, state.chr),
 };
 
-static void parallel_isa_class_initfn(ObjectClass *klass, void *data)
+static void parallel_isa_class_initfn(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     AcpiDevAmlIfClass *adevc = ACPI_DEV_AML_IF_CLASS(klass);
hw/char/pl011.c +1 -1
index 06ce851044d..1b9e7b91ef4 100644
@@ -654,7 +654,7 @@ static void pl011_reset(DeviceState *dev)
     pl011_reset_tx_fifo(s);
 }
 
-static void pl011_class_init(ObjectClass *oc, void *data)
+static void pl011_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/char/renesas_sci.c +1 -1
index ea944949320..b9d0ed1c89b 100644
@@ -324,7 +324,7 @@ static const Property rsci_properties[] = {
     DEFINE_PROP_CHR("chardev", RSCIState, chr),
 };
 
-static void rsci_class_init(ObjectClass *klass, void *data)
+static void rsci_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/sclpconsole-lm.c +1 -1
index ddb9a726d5a..e9580aacba8 100644
@@ -339,7 +339,7 @@ static const Property console_properties[] = {
     DEFINE_PROP_BOOL("echo", SCLPConsoleLM, echo, true),
 };
 
-static void console_class_init(ObjectClass *klass, void *data)
+static void console_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     SCLPEventClass *ec = SCLP_EVENT_CLASS(klass);
hw/char/sclpconsole.c +1 -1
index 01233b933d8..95e3045178e 100644
@@ -255,7 +255,7 @@ static const Property console_properties[] = {
     DEFINE_PROP_CHR("chardev", SCLPConsole, chr),
 };
 
-static void console_class_init(ObjectClass *klass, void *data)
+static void console_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     SCLPEventClass *ec = SCLP_EVENT_CLASS(klass);
hw/char/serial-isa.c +1 -1
index 3d913891dcb..fe7fb1625b5 100644
@@ -119,7 +119,7 @@ static const Property serial_isa_properties[] = {
     DEFINE_PROP_UINT32("irq",    ISASerialState, isairq,  -1),
 };
 
-static void serial_isa_class_initfn(ObjectClass *klass, void *data)
+static void serial_isa_class_initfn(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     AcpiDevAmlIfClass *adevc = ACPI_DEV_AML_IF_CLASS(klass);
hw/char/serial-mm.c +1 -1
index 6338e7c0ba8..13aba780ec5 100644
@@ -134,7 +134,7 @@ static const Property serial_mm_properties[] = {
     DEFINE_PROP_UINT8("endianness", SerialMM, endianness, DEVICE_NATIVE_ENDIAN),
 };
 
-static void serial_mm_class_init(ObjectClass *oc, void *data)
+static void serial_mm_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/char/serial-pci-multi.c +4 -2
index 718ae251317..ee1c0f7dc4f 100644
@@ -144,7 +144,8 @@ static const Property multi_4x_serial_pci_properties[] = {
     DEFINE_PROP_UINT8("prog_if",  PCIMultiSerialState, prog_if, 0x02),
 };
 
-static void multi_2x_serial_pci_class_initfn(ObjectClass *klass, void *data)
+static void multi_2x_serial_pci_class_initfn(ObjectClass *klass,
+                                             const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *pc = PCI_DEVICE_CLASS(klass);
@@ -159,7 +160,8 @@ static void multi_2x_serial_pci_class_initfn(ObjectClass *klass, void *data)
     set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
 }
 
-static void multi_4x_serial_pci_class_initfn(ObjectClass *klass, void *data)
+static void multi_4x_serial_pci_class_initfn(ObjectClass *klass,
+                                             const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *pc = PCI_DEVICE_CLASS(klass);
hw/char/serial-pci.c +1 -1
index 6659cef5d4b..bd38c7428c6 100644
@@ -85,7 +85,7 @@ static const Property serial_pci_properties[] = {
     DEFINE_PROP_UINT8("prog_if",  PCISerialState, prog_if, 0x02),
 };
 
-static void serial_pci_class_initfn(ObjectClass *klass, void *data)
+static void serial_pci_class_initfn(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *pc = PCI_DEVICE_CLASS(klass);
hw/char/serial.c +1 -1
index 70044e14a0f..03fec3fe75b 100644
@@ -970,7 +970,7 @@ static const Property serial_properties[] = {
     DEFINE_PROP_BOOL("wakeup", SerialState, wakeup, false),
 };
 
-static void serial_class_init(ObjectClass *klass, void* data)
+static void serial_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/sh_serial.c +1 -1
index 247aeb071ac..12ae9bd24d2 100644
@@ -452,7 +452,7 @@ static const Property sh_serial_properties[] = {
     DEFINE_PROP_UINT8("features", SHSerialState, feat, 0),
 };
 
-static void sh_serial_class_init(ObjectClass *oc, void *data)
+static void sh_serial_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/char/shakti_uart.c +1 -1
index 09975d9d349..6e216edb0fc 100644
@@ -161,7 +161,7 @@ static const Property shakti_uart_properties[] = {
     DEFINE_PROP_CHR("chardev", ShaktiUartState, chr),
 };
 
-static void shakti_uart_class_init(ObjectClass *klass, void *data)
+static void shakti_uart_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     device_class_set_legacy_reset(dc, shakti_uart_reset);
hw/char/sifive_uart.c +1 -1
index 4bc5767284b..4acbdfa5f77 100644
@@ -323,7 +323,7 @@ static const VMStateDescription vmstate_sifive_uart = {
 };
 
 
-static void sifive_uart_class_init(ObjectClass *oc, void *data)
+static void sifive_uart_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
     ResettableClass *rc = RESETTABLE_CLASS(oc);
hw/char/spapr_vty.c +1 -1
index 6451d010ac7..fc8ea604f8d 100644
@@ -182,7 +182,7 @@ static const VMStateDescription vmstate_spapr_vty = {
     },
 };
 
-static void spapr_vty_class_init(ObjectClass *klass, void *data)
+static void spapr_vty_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     SpaprVioDeviceClass *k = VIO_SPAPR_DEVICE_CLASS(klass);
hw/char/stm32f2xx_usart.c +1 -1
index 87882daa715..45c30643a74 100644
@@ -220,7 +220,7 @@ static void stm32f2xx_usart_realize(DeviceState *dev, Error **errp)
                              s, NULL, true);
 }
 
-static void stm32f2xx_usart_class_init(ObjectClass *klass, void *data)
+static void stm32f2xx_usart_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/char/stm32l4x5_usart.c +5 -4
index bcc310bd97b..afbe4bab29d 100644
@@ -594,7 +594,8 @@ static void stm32l4x5_usart_base_realize(DeviceState *dev, Error **errp)
                              s, NULL, true);
 }
 
-static void stm32l4x5_usart_base_class_init(ObjectClass *klass, void *data)
+static void stm32l4x5_usart_base_class_init(ObjectClass *klass,
+                                            const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     ResettableClass *rc = RESETTABLE_CLASS(klass);
@@ -605,21 +606,21 @@ static void stm32l4x5_usart_base_class_init(ObjectClass *klass, void *data)
     dc->vmsd = &vmstate_stm32l4x5_usart_base;
 }
 
-static void stm32l4x5_usart_class_init(ObjectClass *oc, void *data)
+static void stm32l4x5_usart_class_init(ObjectClass *oc, const void *data)
 {
     Stm32l4x5UsartBaseClass *subc = STM32L4X5_USART_BASE_CLASS(oc);
 
     subc->type = STM32L4x5_USART;
 }
 
-static void stm32l4x5_uart_class_init(ObjectClass *oc, void *data)
+static void stm32l4x5_uart_class_init(ObjectClass *oc, const void *data)
 {
     Stm32l4x5UsartBaseClass *subc = STM32L4X5_USART_BASE_CLASS(oc);
 
     subc->type = STM32L4x5_UART;
 }
 
-static void stm32l4x5_lpuart_class_init(ObjectClass *oc, void *data)
+static void stm32l4x5_lpuart_class_init(ObjectClass *oc, const void *data)
 {
     Stm32l4x5UsartBaseClass *subc = STM32L4X5_USART_BASE_CLASS(oc);
 
hw/char/terminal3270.c +1 -1
index 04ee26dcbd3..d950c172921 100644
@@ -292,7 +292,7 @@ static const VMStateDescription terminal3270_vmstate = {
     .unmigratable = 1,
 };
 
-static void terminal_class_init(ObjectClass *klass, void *data)
+static void terminal_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     EmulatedCcw3270Class *ck = EMULATED_CCW_3270_CLASS(klass);
hw/char/virtio-console.c +2 -2
index aa6d611a475..0932a3572b7 100644
@@ -261,7 +261,7 @@ static void virtconsole_unrealize(DeviceState *dev)
     }
 }
 
-static void virtconsole_class_init(ObjectClass *klass, void *data)
+static void virtconsole_class_init(ObjectClass *klass, const void *data)
 {
     VirtIOSerialPortClass *k = VIRTIO_SERIAL_PORT_CLASS(klass);
 
@@ -278,7 +278,7 @@ static const Property virtserialport_properties[] = {
     DEFINE_PROP_CHR("chardev", VirtConsole, chr),
 };
 
-static void virtserialport_class_init(ObjectClass *klass, void *data)
+static void virtserialport_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     VirtIOSerialPortClass *k = VIRTIO_SERIAL_PORT_CLASS(klass);
hw/char/virtio-serial-bus.c +3 -3
index b6d2743a9c6..00572873d28 100644
@@ -840,7 +840,7 @@ static const Property virtser_props[] = {
     DEFINE_PROP_STRING("name", VirtIOSerialPort, name),
 };
 
-static void virtser_bus_class_init(ObjectClass *klass, void *data)
+static void virtser_bus_class_init(ObjectClass *klass, const void *data)
 {
     BusClass *k = BUS_CLASS(klass);
     k->print_dev = virtser_bus_dev_print;
@@ -1092,7 +1092,7 @@ static void virtio_serial_device_realize(DeviceState *dev, Error **errp)
     QLIST_INSERT_HEAD(&vserdevices.devices, vser, next);
 }
 
-static void virtio_serial_port_class_init(ObjectClass *klass, void *data)
+static void virtio_serial_port_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *k = DEVICE_CLASS(klass);
 
@@ -1159,7 +1159,7 @@ static const Property virtio_serial_properties[] = {
                       VIRTIO_CONSOLE_F_EMERG_WRITE, true),
 };
 
-static void virtio_serial_class_init(ObjectClass *klass, void *data)
+static void virtio_serial_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass);
hw/char/xen_console.c +1 -1
index d03c188d1d5..9c34a554bfa 100644
@@ -492,7 +492,7 @@ static const Property xen_console_properties[] = {
     DEFINE_PROP_INT32("idx", XenConsole, dev, -1),
 };
 
-static void xen_console_class_init(ObjectClass *class, void *data)
+static void xen_console_class_init(ObjectClass *class, const void *data)
 {
     DeviceClass *dev_class = DEVICE_CLASS(class);
     XenDeviceClass *xendev_class = XEN_DEVICE_CLASS(class);
hw/char/xilinx_uartlite.c +1 -1
index 56955e0d74a..ec3b89dc189 100644
@@ -229,7 +229,7 @@ static void xilinx_uartlite_init(Object *obj)
     sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->mmio);
 }
 
-static void xilinx_uartlite_class_init(ObjectClass *klass, void *data)
+static void xilinx_uartlite_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/core/bus.c +1 -1
index b9d89495cdf..c3b431a014b 100644
@@ -232,7 +232,7 @@ static char *default_bus_get_fw_dev_path(DeviceState *dev)
     return g_strdup(object_get_typename(OBJECT(dev)));
 }
 
-static void bus_class_init(ObjectClass *class, void *data)
+static void bus_class_init(ObjectClass *class, const void *data)
 {
     BusClass *bc = BUS_CLASS(class);
     ResettableClass *rc = RESETTABLE_CLASS(class);
hw/core/clock.c +1 -1
index a81f888e62a..9c906761e19 100644
@@ -206,7 +206,7 @@ static void clock_finalizefn(Object *obj)
     g_free(clk->canonical_path);
 }
 
-static void clock_class_init(ObjectClass *klass, void *data)
+static void clock_class_init(ObjectClass *klass, const void *data)
 {
     klass->unparent = clock_unparent;
 }
hw/core/cpu-common.c +1 -1
index cb79566cc51..2a12bd25702 100644
@@ -298,7 +298,7 @@ static int64_t cpu_common_get_arch_id(CPUState *cpu)
     return cpu->cpu_index;
 }
 
-static void cpu_common_class_init(ObjectClass *klass, void *data)
+static void cpu_common_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     ResettableClass *rc = RESETTABLE_CLASS(klass);
hw/core/generic-loader.c +1 -1
index d9f5c2e8325..ee77bdc6ff5 100644
@@ -185,7 +185,7 @@ static const Property generic_loader_props[] = {
     DEFINE_PROP_STRING("file", GenericLoaderState, file),
 };
 
-static void generic_loader_class_init(ObjectClass *klass, void *data)
+static void generic_loader_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/core/guest-loader.c +1 -1
index 76271df9f57..3db89d7a2e1 100644
@@ -118,7 +118,7 @@ static const Property guest_loader_props[] = {
     DEFINE_PROP_STRING("initrd", GuestLoaderState, initrd),
 };
 
-static void guest_loader_class_init(ObjectClass *klass, void *data)
+static void guest_loader_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/core/machine.c +1 -1
index 7bdde9286c2..39866fc37a8 100644
@@ -1093,7 +1093,7 @@ out:
     return r;
 }
 
-static void machine_class_init(ObjectClass *oc, void *data)
+static void machine_class_init(ObjectClass *oc, const void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
hw/core/or-irq.c +1 -1
index 4d0d3cabf1e..3942c709939 100644
@@ -119,7 +119,7 @@ static const Property or_irq_properties[] = {
     DEFINE_PROP_UINT16("num-lines", OrIRQState, num_lines, 1),
 };
 
-static void or_irq_class_init(ObjectClass *klass, void *data)
+static void or_irq_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/core/platform-bus.c +1 -1
index 1d00c4d36d0..6950063de4f 100644
@@ -209,7 +209,7 @@ static const Property platform_bus_properties[] = {
     DEFINE_PROP_UINT32("mmio_size", PlatformBusDevice, mmio_size, 0),
 };
 
-static void platform_bus_class_init(ObjectClass *klass, void *data)
+static void platform_bus_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/core/qdev.c +1 -1
index 1e0f47cc848..4a3760c101e 100644
@@ -731,7 +731,7 @@ device_vmstate_if_get_id(VMStateIf *obj)
     return qdev_get_dev_path(dev);
 }
 
-static void device_class_init(ObjectClass *class, void *data)
+static void device_class_init(ObjectClass *class, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(class);
     VMStateIfClass *vc = VMSTATE_IF_CLASS(class);
hw/core/register.c +1 -1
index 95b0150c0aa..8f63d9f227c 100644
@@ -319,7 +319,7 @@ void register_finalize_block(RegisterInfoArray *r_array)
     g_free(r_array);
 }
 
-static void register_class_init(ObjectClass *oc, void *data)
+static void register_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/core/reset.c +1 -1
index 8a3e0e518f0..65f82fa43d9 100644
@@ -84,7 +84,7 @@ static void legacy_reset_finalize(Object *obj)
 {
 }
 
-static void legacy_reset_class_init(ObjectClass *klass, void *data)
+static void legacy_reset_class_init(ObjectClass *klass, const void *data)
 {
     ResettableClass *rc = RESETTABLE_CLASS(klass);
 
hw/core/resetcontainer.c +2 -1
index e4ece68e83a..5ff17002e75 100644
@@ -68,7 +68,8 @@ static void resettable_container_finalize(Object *obj)
 {
 }
 
-static void resettable_container_class_init(ObjectClass *klass, void *data)
+static void resettable_container_class_init(ObjectClass *klass,
+                                            const void *data)
 {
     ResettableClass *rc = RESETTABLE_CLASS(klass);
 
hw/core/split-irq.c +1 -1
index fc12274811b..f8b48750c5b 100644
@@ -63,7 +63,7 @@ static const Property split_irq_properties[] = {
     DEFINE_PROP_UINT16("num-lines", SplitIRQ, num_lines, 1),
 };
 
-static void split_irq_class_init(ObjectClass *klass, void *data)
+static void split_irq_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/core/sysbus.c +2 -2
index 9355849ff0a..8cc8ee47a98 100644
@@ -72,7 +72,7 @@ void foreach_dynamic_sysbus_device(FindSysbusDeviceFunc *func, void *opaque)
 }
 
 
-static void system_bus_class_init(ObjectClass *klass, void *data)
+static void system_bus_class_init(ObjectClass *klass, const void *data)
 {
     BusClass *k = BUS_CLASS(klass);
 
@@ -288,7 +288,7 @@ static char *sysbus_get_fw_dev_path(DeviceState *dev)
     return g_strdup(qdev_fw_name(dev));
 }
 
-static void sysbus_device_class_init(ObjectClass *klass, void *data)
+static void sysbus_device_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *k = DEVICE_CLASS(klass);
     k->realize = sysbus_device_realize;
hw/cpu/a15mpcore.c +1 -1
index d24ab0a6ab2..5c76290c917 100644
@@ -155,7 +155,7 @@ static const Property a15mp_priv_properties[] = {
     DEFINE_PROP_UINT32("num-irq", A15MPPrivState, num_irq, 160),
 };
 
-static void a15mp_priv_class_init(ObjectClass *klass, void *data)
+static void a15mp_priv_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/cpu/a9mpcore.c +1 -1
index 25416c5032b..47415092318 100644
@@ -169,7 +169,7 @@ static const Property a9mp_priv_properties[] = {
     DEFINE_PROP_UINT32("num-irq", A9MPPrivState, num_irq, 96),
 };
 
-static void a9mp_priv_class_init(ObjectClass *klass, void *data)
+static void a9mp_priv_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/cpu/arm11mpcore.c +1 -1
index b56bee6d543..01772e7f77b 100644
@@ -144,7 +144,7 @@ static const Property mpcore_priv_properties[] = {
     DEFINE_PROP_UINT32("num-irq", ARM11MPCorePriveState, num_irq, 64),
 };
 
-static void mpcore_priv_class_init(ObjectClass *klass, void *data)
+static void mpcore_priv_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/cpu/cluster.c +1 -1
index 9da5221f88b..ef3b3d1e940 100644
@@ -72,7 +72,7 @@ static void cpu_cluster_realize(DeviceState *dev, Error **errp)
     assert(cbdata.cpu_count > 0);
 }
 
-static void cpu_cluster_class_init(ObjectClass *klass, void *data)
+static void cpu_cluster_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/cpu/core.c +1 -1
index 495a5c30ffe..5cb2e9a7f54 100644
@@ -77,7 +77,7 @@ static void cpu_core_instance_init(Object *obj)
     }
 }
 
-static void cpu_core_class_init(ObjectClass *oc, void *data)
+static void cpu_core_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/cpu/realview_mpcore.c +1 -1
index b1408886184..099b71a9ef2 100644
@@ -107,7 +107,7 @@ static void mpcore_rirq_init(Object *obj)
     }
 }
 
-static void mpcore_rirq_class_init(ObjectClass *klass, void *data)
+static void mpcore_rirq_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/cxl/switch-mailbox-cci.c +1 -1
index 65cdac6cc13..c57bf555f97 100644
@@ -70,7 +70,7 @@ static const Property cxl_switch_cci_props[] = {
                      target, TYPE_CXL_USP, PCIDevice *),
 };
 
-static void cswmbcci_class_init(ObjectClass *oc, void *data)
+static void cswmbcci_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
     PCIDeviceClass *pc = PCI_DEVICE_CLASS(oc);
hw/display/artist.c +1 -1
index f24c1d83dd1..3fafc8a222b 100644
@@ -1487,7 +1487,7 @@ static void artist_reset(DeviceState *qdev)
 {
 }
 
-static void artist_class_init(ObjectClass *klass, void *data)
+static void artist_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/display/ati.c +1 -1
index 864fa4fc2ce..4e88d099431 100644
@@ -1049,7 +1049,7 @@ static const Property ati_vga_properties[] = {
     DEFINE_PROP_UINT8("x-pixman", ATIVGAState, use_pixman, DEFAULT_X_PIXMAN),
 };
 
-static void ati_vga_class_init(ObjectClass *klass, void *data)
+static void ati_vga_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
hw/display/bcm2835_fb.c +1 -1
index a5bded5156a..820e67ac8bb 100644
@@ -442,7 +442,7 @@ static const Property bcm2835_fb_props[] = {
                        initial_config.alpha, 2), /* alpha ignored */
 };
 
-static void bcm2835_fb_class_init(ObjectClass *klass, void *data)
+static void bcm2835_fb_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/display/bochs-display.c +1 -1
index 086f7a0f06c..1d329fc9cce 100644
@@ -351,7 +351,7 @@ static const Property bochs_display_properties[] = {
     DEFINE_EDID_PROPERTIES(BochsDisplayState, edid_info),
 };
 
-static void bochs_display_class_init(ObjectClass *klass, void *data)
+static void bochs_display_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
hw/display/cg3.c +1 -1
index 3f971d875f8..daeef152174 100644
@@ -368,7 +368,7 @@ static const Property cg3_properties[] = {
     DEFINE_PROP_UINT16("depth",        CG3State, depth,     -1),
 };
 
-static void cg3_class_init(ObjectClass *klass, void *data)
+static void cg3_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/display/cirrus_vga.c +1 -1
index 76124d3656e..4e5ae04af0f 100644
@@ -2991,7 +2991,7 @@ static const Property pci_vga_cirrus_properties[] = {
                      cirrus_vga.vga.global_vmstate, false),
 };
 
-static void cirrus_vga_class_init(ObjectClass *klass, void *data)
+static void cirrus_vga_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
hw/display/cirrus_vga_isa.c +1 -1
index 60b7fd20f1e..4b55c48eff8 100644
@@ -76,7 +76,7 @@ static const Property isa_cirrus_vga_properties[] = {
                      cirrus_vga.enable_blitter, true),
 };
 
-static void isa_cirrus_vga_class_init(ObjectClass *klass, void *data)
+static void isa_cirrus_vga_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
hw/display/dm163.c +1 -1
index 75a91f62bd3..7af0cc27485 100644
@@ -325,7 +325,7 @@ static void dm163_realize(DeviceState *dev, Error **errp)
                         RGB_MATRIX_NUM_ROWS * LED_SQUARE_SIZE);
 }
 
-static void dm163_class_init(ObjectClass *klass, void *data)
+static void dm163_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     ResettableClass *rc = RESETTABLE_CLASS(klass);
hw/display/dpcd.c +1 -1
index 108faf7887b..a157dc64e76 100644
@@ -141,7 +141,7 @@ static const VMStateDescription vmstate_dpcd = {
     }
 };
 
-static void dpcd_class_init(ObjectClass *oc, void *data)
+static void dpcd_class_init(ObjectClass *oc, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
hw/display/exynos4210_fimd.c +1 -1
index 04c864a3084..c61e0280a7c 100644
@@ -1958,7 +1958,7 @@ static void exynos4210_fimd_realize(DeviceState *dev, Error **errp)
     s->console = graphic_console_init(dev, 0, &exynos4210_fimd_ops, s);
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

hw/display/g364fb.c +1 -1
index 30b5ea67f26..a6ddc21d3e4 100644

Lines of this file are not shown. View the raw message.

hw/display/i2c-ddc.c +1 -1
index d8ab9eee405..2adfc1a1472 100644

Lines of this file are not shown. View the raw message.

hw/display/jazz_led.c +1 -1
index 1448488d063..90e82b58be2 100644

Lines of this file are not shown. View the raw message.

hw/display/macfb.c +2 -2
index e83fc863be5..c2f5c9300e8 100644

Lines of this file are not shown. View the raw message.

hw/display/next-fb.c +1 -1
index 8446ff3c00e..ec81b766a7e 100644

Lines of this file are not shown. View the raw message.

hw/display/pl110.c +1 -1
index 4d4f477b943..09c3c59e0ed 100644

Lines of this file are not shown. View the raw message.

hw/display/qxl.c +3 -3
index 2efdc77e613..0e4612d55aa 100644

Lines of this file are not shown. View the raw message.

hw/display/ramfb-standalone.c +1 -1
index 6c35028965d..d4fe60fcce6 100644

Lines of this file are not shown. View the raw message.

hw/display/sii9022.c +1 -1
index 16f8cb487cd..d00d3e9fc54 100644

Lines of this file are not shown. View the raw message.

hw/display/sm501.c +2 -2
index 09edcf86f8e..dcff1e978ed 100644

Lines of this file are not shown. View the raw message.

hw/display/ssd0303.c +1 -1
index e292cff44ea..87781438cd5 100644

Lines of this file are not shown. View the raw message.

hw/display/ssd0323.c +1 -1
index 96cf0dc662b..af5ff4fecdc 100644

Lines of this file are not shown. View the raw message.

hw/display/tcx.c +1 -1
index 2cfc1e8f01d..190af38138f 100644

Lines of this file are not shown. View the raw message.

hw/display/vga-isa.c +1 -1
index 2920628f780..3618913b3b7 100644

Lines of this file are not shown. View the raw message.

hw/display/vga-mmio.c +1 -1
index 1e0c2dbf748..33263856b76 100644

Lines of this file are not shown. View the raw message.

hw/display/vga-pci.c +3 -3
index dd084c20b16..a8601972740 100644

Lines of this file are not shown. View the raw message.

hw/display/vhost-user-gpu.c +1 -1
index 2aed6243f6c..06c4e7e1904 100644

Lines of this file are not shown. View the raw message.

hw/display/virtio-gpu-base.c +1 -1
index 7827536ac46..4c588332457 100644

Lines of this file are not shown. View the raw message.

hw/display/virtio-gpu-gl.c +1 -1
index 683fad3bf8a..c06a078fb36 100644

Lines of this file are not shown. View the raw message.

hw/display/virtio-gpu-pci.c +1 -1
index 6d789701a3c..c0d71b6254c 100644

Lines of this file are not shown. View the raw message.

hw/display/virtio-gpu-rutabaga.c +1 -1
index f6eb29472e8..ed5ae52acbe 100644

Lines of this file are not shown. View the raw message.

hw/display/virtio-gpu.c +1 -1
index 11a7a857502..0a1a625b0ea 100644

Lines of this file are not shown. View the raw message.

hw/display/virtio-vga.c +1 -1
index fefbdb61e17..40e60f70fcd 100644

Lines of this file are not shown. View the raw message.

hw/display/vmware_vga.c +1 -1
index 2dd661e3c13..7777deb17d0 100644

Lines of this file are not shown. View the raw message.

hw/display/xlnx_dp.c +1 -1
index 1272da0133a..7c980ee6423 100644

Lines of this file are not shown. View the raw message.

hw/dma/bcm2835_dma.c +1 -1
index 9b2fca2c7c1..a2771ddcb52 100644

Lines of this file are not shown. View the raw message.

hw/dma/i82374.c +1 -1
index 9652d47adcd..375654f9b79 100644

Lines of this file are not shown. View the raw message.

hw/dma/i8257.c +1 -1
index 74c38d2ee84..1d67e505364 100644

Lines of this file are not shown. View the raw message.

hw/dma/pl080.c +1 -1
index 8a9b073b249..277d9343223 100644

Lines of this file are not shown. View the raw message.

hw/dma/pl330.c +1 -1
index 545aa44e457..a570bb08ec4 100644

Lines of this file are not shown. View the raw message.

hw/dma/rc4030.c +2 -2
index 5bf54347ed4..bb66ecd8ba9 100644

Lines of this file are not shown. View the raw message.

hw/dma/sifive_pdma.c +1 -1
index 25b3d6a155a..a3d80061e64 100644

Lines of this file are not shown. View the raw message.

hw/dma/sparc32_dma.c +6 -4
index 280b7475212..60c23b69e5c 100644

Lines of this file are not shown. View the raw message.

hw/dma/xilinx_axidma.c +3 -2
index 22fe35751ac..bf1b523ac88 100644

Lines of this file are not shown. View the raw message.

hw/dma/xlnx-zdma.c +1 -1
index bb27cb2e644..0c075e7d0d1 100644

Lines of this file are not shown. View the raw message.

hw/dma/xlnx-zynq-devcfg.c +1 -1
index 0fd0d23f578..26845713ee5 100644

Lines of this file are not shown. View the raw message.

hw/dma/xlnx_csu_dma.c +1 -1
index 1afaa0bf516..6943c927d07 100644

Lines of this file are not shown. View the raw message.

hw/dma/xlnx_dpdma.c +1 -1
index 2657808d379..3d88ccc8da9 100644

Lines of this file are not shown. View the raw message.

hw/fsi/aspeed_apb2opb.c +1 -1
index 0e2cc143f10..172ba16b0c0 100644

Lines of this file are not shown. View the raw message.

hw/fsi/cfam.c +1 -1
index c62f0f78dee..e2145c5934b 100644

Lines of this file are not shown. View the raw message.

hw/fsi/fsi-master.c +1 -1
index 50fb1cd4672..083a5507abc 100644

Lines of this file are not shown. View the raw message.

hw/fsi/fsi.c +1 -1
index 83ddb17ae63..6c52d5e745e 100644

Lines of this file are not shown. View the raw message.

hw/fsi/lbus.c +1 -1
index 4f87b28a228..8ec7f5fd780 100644

Lines of this file are not shown. View the raw message.

hw/gpio/aspeed_gpio.c +9 -7
index a5b3f454e80..69632c9f3a1 100644

Lines of this file are not shown. View the raw message.

hw/gpio/bcm2835_gpio.c +1 -1
index 5a5f1df5e80..dfb5d5cb578 100644

Lines of this file are not shown. View the raw message.

hw/gpio/bcm2838_gpio.c +1 -1
index 0a1739fc468..bd7fe4f04e0 100644

Lines of this file are not shown. View the raw message.

hw/gpio/gpio_key.c +1 -1
index 2fcab9ead60..40c028bed9e 100644

Lines of this file are not shown. View the raw message.

hw/gpio/imx_gpio.c +1 -1
index 549a281ed79..aa4e600cee3 100644

Lines of this file are not shown. View the raw message.

hw/gpio/mpc8xxx.c +1 -1
index a3c1d2fbf4c..257497af584 100644

Lines of this file are not shown. View the raw message.

hw/gpio/npcm7xx_gpio.c +1 -1
index 23e67424c9f..d44bdef0d90 100644

Lines of this file are not shown. View the raw message.

hw/gpio/nrf51_gpio.c +1 -1
index d08c254e369..d94c0c47da2 100644

Lines of this file are not shown. View the raw message.

hw/gpio/omap_gpio.c +1 -1
index 8a9f14ba152..61ea7862afe 100644

Lines of this file are not shown. View the raw message.

hw/gpio/pca9552.c +2 -2
index 1ac0cf6c464..d65c0a2e90f 100644

Lines of this file are not shown. View the raw message.

hw/gpio/pca9554.c +1 -1
index fe03bb4b5e2..f74a562477f 100644

Lines of this file are not shown. View the raw message.

hw/gpio/pcf8574.c +1 -1
index 208efe69ea5..274b44bb616 100644

Lines of this file are not shown. View the raw message.

hw/gpio/pl061.c +1 -1
index 60ce4a7f628..807a20b078e 100644

Lines of this file are not shown. View the raw message.

hw/gpio/sifive_gpio.c +1 -1
index 0d5206ae6b5..5831647b4d0 100644

Lines of this file are not shown. View the raw message.

hw/gpio/stm32l4x5_gpio.c +1 -1
index f69fc1db4f5..414ce830390 100644

Lines of this file are not shown. View the raw message.

hw/gpio/zaurus.c +1 -1
index 7342440b958..b8d27f59738 100644

Lines of this file are not shown. View the raw message.

hw/hppa/machine.c +2 -2
index c5f247633eb..37f6cb6346b 100644

Lines of this file are not shown. View the raw message.

hw/hyperv/hv-balloon.c +1 -1
index 6f33c3e7413..9d6f28f07e8 100644

Lines of this file are not shown. View the raw message.

hw/hyperv/hyperv.c +1 -1
index 831e04f2142..c203f19541d 100644

Lines of this file are not shown. View the raw message.

hw/hyperv/hyperv_testdev.c +1 -1
index a630ca70476..2d4a63693b8 100644

Lines of this file are not shown. View the raw message.

hw/hyperv/syndbg.c +1 -1
index d3e39170772..667b9e9e47b 100644

Lines of this file are not shown. View the raw message.

hw/hyperv/vmbus.c +3 -3
index 12a7dc43128..49f33c378cc 100644

Lines of this file are not shown. View the raw message.

hw/i2c/allwinner-i2c.c +1 -1
index 16f1d6d40e7..41c721d48fb 100644

Lines of this file are not shown. View the raw message.

hw/i2c/aspeed_i2c.c +9 -8
index a8fbb9f44a1..83fb906bdc7 100644

Lines of this file are not shown. View the raw message.

hw/i2c/bcm2835_i2c.c +1 -1
index 67bfdef3b40..be11cca2a93 100644

Lines of this file are not shown. View the raw message.

hw/i2c/bitbang_i2c.c +1 -1
index de5f5aacf54..e020f314e2a 100644

Lines of this file are not shown. View the raw message.

hw/i2c/core.c +1 -1
index 26bb18514a9..4b6345b5889 100644

Lines of this file are not shown. View the raw message.

hw/i2c/exynos4210_i2c.c +1 -1
index b1d00096eea..9d0c1cdaa8a 100644

Lines of this file are not shown. View the raw message.

hw/i2c/i2c_mux_pca954x.c +3 -3
index 779cc4e66ed..a8ef640cd25 100644

Lines of this file are not shown. View the raw message.

hw/i2c/imx_i2c.c +1 -1
index d62213b9e0f..91f84c2ad7d 100644

Lines of this file are not shown. View the raw message.

hw/i2c/microbit_i2c.c +1 -1
index 06fbd18a780..2291d6370e2 100644

Lines of this file are not shown. View the raw message.

hw/i2c/mpc_i2c.c +1 -1
index 913d044ac1b..25f91b7bc82 100644

Lines of this file are not shown. View the raw message.

hw/i2c/npcm7xx_smbus.c +1 -1
index 22d68fc67dd..179852a4fd9 100644

Lines of this file are not shown. View the raw message.

hw/i2c/omap_i2c.c +1 -1
index a641db23480..2e45266e74b 100644

Lines of this file are not shown. View the raw message.

hw/i2c/pmbus_device.c +1 -1
index ba1d2fd7160..853dc4b4342 100644

Lines of this file are not shown. View the raw message.

hw/i2c/ppc4xx_i2c.c +1 -1
index 7b124a7e337..09d4c49d657 100644

Lines of this file are not shown. View the raw message.

hw/i2c/smbus_eeprom.c +1 -1
index e3e96d4a2d6..0a1088fbb0a 100644

Lines of this file are not shown. View the raw message.

hw/i2c/smbus_ich9.c +1 -1
index 208f263ac5b..f1fca30fea5 100644

Lines of this file are not shown. View the raw message.

hw/i2c/smbus_slave.c +1 -1
index 9f9afc25a40..cfb61c879e0 100644

Lines of this file are not shown. View the raw message.

hw/i386/amd_iommu.c +4 -3
index 6b13ce894b1..a6654cfa8af 100644

Lines of this file are not shown. View the raw message.

hw/i386/intel_iommu.c +2 -2
index f366c223d0e..f7398478003 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/apic.c +1 -1
index 75751060009..39035db0422 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/clock.c +1 -1
index 17443552e91..f56382717f7 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/i8254.c +1 -1
index 3b92771c79f..14b78f30a83 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/i8259.c +1 -1
index 272c04df0b7..8a72d6e4dd3 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/ioapic.c +1 -1
index 5419e191b57..693ee978a12 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/xen_evtchn.c +1 -1
index 9b8b092bc20..9f77e604451 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/xen_gnttab.c +1 -1
index 7b843a72b14..9404ad026b8 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/xen_overlay.c +1 -1
index db9aa7942d4..6195344859f 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/xen_primary_console.c +1 -1
index 8ad2363d18e..6e9d6417c3e 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/xen_xenstore.c +1 -1
index 17802aa33d2..672fff61485 100644

Lines of this file are not shown. View the raw message.

hw/i386/microvm.c +1 -1
index a8d354aabe5..a0e39673c9e 100644

Lines of this file are not shown. View the raw message.

hw/i386/nitro_enclave.c +1 -1
index a058608afcb..e65099dfe5a 100644

Lines of this file are not shown. View the raw message.

hw/i386/pc.c +1 -1
index 0eb52d315bb..a20ca1e54fb 100644

Lines of this file are not shown. View the raw message.

hw/i386/port92.c +1 -1
index 1ba3f328871..39b6f3178fe 100644

Lines of this file are not shown. View the raw message.

hw/i386/sgx-epc.c +1 -1
index 875e1c5c33b..d5590cd0b53 100644

Lines of this file are not shown. View the raw message.

hw/i386/vapic.c +1 -1
index 14de9b7a820..7913b3273a4 100644

Lines of this file are not shown. View the raw message.

hw/i386/vmmouse.c +1 -1
index 3e07d125128..3896159b055 100644

Lines of this file are not shown. View the raw message.

hw/i386/vmport.c +1 -1
index 2f19b970b50..6d93457c526 100644

Lines of this file are not shown. View the raw message.

hw/i386/x86-iommu.c +1 -1
index fed34b2fcfa..2aea64fce93 100644

Lines of this file are not shown. View the raw message.

hw/i386/x86.c +1 -1
index 69bfc00b9a5..c8e2551b2b4 100644

Lines of this file are not shown. View the raw message.

hw/i386/xen/xen-pvh.c +1 -1
index 33c10279763..721d7488ea6 100644

Lines of this file are not shown. View the raw message.

hw/i386/xen/xen_apic.c +1 -1
index a94e9005cbe..f30398fa4ae 100644

Lines of this file are not shown. View the raw message.

hw/i386/xen/xen_platform.c +1 -1
index dd648a2ee94..7c0d345f964 100644

Lines of this file are not shown. View the raw message.

hw/i386/xen/xen_pvdevice.c +1 -1
index 9453da97bd9..65868bd5e59 100644

Lines of this file are not shown. View the raw message.

hw/ide/ahci-allwinner.c +1 -1
index 575be36fc5c..bc7a116a89a 100644

Lines of this file are not shown. View the raw message.

hw/ide/ahci-sysbus.c +1 -1
index 03a5bd42d07..52dbcf819dc 100644

Lines of this file are not shown. View the raw message.

hw/ide/cf.c +1 -1
index cfb4394f80d..f87cd413b68 100644

Lines of this file are not shown. View the raw message.

hw/ide/cmd646.c +1 -1
index 8e568e4c357..2a59516a9dd 100644

Lines of this file are not shown. View the raw message.

hw/ide/ich.c +1 -1
index a83128465f2..f2773ab4621 100644

Lines of this file are not shown. View the raw message.

hw/ide/ide-bus.c +1 -1
index 437502b5b4f..b24e4d17b48 100644

Lines of this file are not shown. View the raw message.

hw/ide/ide-dev.c +3 -3
index 26f0517019e..5d478588c61 100644

Lines of this file are not shown. View the raw message.

hw/ide/isa.c +1 -1
index 4863ad8080d..5f418413c18 100644

Lines of this file are not shown. View the raw message.

hw/ide/macio.c +1 -1
index 5fe764b49b5..dbdb00eb3de 100644

Lines of this file are not shown. View the raw message.

hw/ide/mmio.c +1 -1
index 13f16170ff2..699874db785 100644

Lines of this file are not shown. View the raw message.

hw/ide/piix.c +2 -2
index 818ff60d6f9..a0f2709c697 100644

Lines of this file are not shown. View the raw message.

hw/ide/sii3112.c +1 -1
index ce8a1e4cba3..9b28c691fd7 100644

Lines of this file are not shown. View the raw message.

hw/ide/via.c +1 -1
index 89fd28f646c..dedc2674c00 100644

Lines of this file are not shown. View the raw message.

hw/input/adb-kbd.c +1 -1
index 3649d03ef22..507557deecc 100644

Lines of this file are not shown. View the raw message.

hw/input/adb-mouse.c +1 -1
index 77b280d2420..373ef3f953c 100644

Lines of this file are not shown. View the raw message.

hw/input/adb.c +2 -2
index aff7130fd0f..bcb11edca35 100644

Lines of this file are not shown. View the raw message.

hw/input/lasips2.c +4 -4
index d9f8c36778d..511a921aa58 100644

Lines of this file are not shown. View the raw message.

hw/input/pckbd.c +2 -2
index fa0c549eb99..83930dd50c0 100644

Lines of this file are not shown. View the raw message.

hw/input/pl050.c +3 -3
index 6519e260ed5..c5f4a3fa843 100644

Lines of this file are not shown. View the raw message.

hw/input/ps2.c +3 -3
index 6a41b024c80..7f7b1fce2e5 100644

Lines of this file are not shown. View the raw message.

hw/input/stellaris_gamepad.c +1 -1
index 98382a0e153..fec1161c9c1 100644

Lines of this file are not shown. View the raw message.

hw/input/virtio-input-hid.c +3 -3
index 812faaef8fe..d986c3c16e3 100644

Lines of this file are not shown. View the raw message.

hw/input/virtio-input-host.c +1 -1
index 8bfb17f3c43..d33fd911f8f 100644

Lines of this file are not shown. View the raw message.

hw/input/virtio-input.c +1 -1
index 1394d99c6b4..1818cbddc7c 100644

Lines of this file are not shown. View the raw message.

hw/intc/allwinner-a10-pic.c +1 -1
index c0f30092cd6..340ef4a3cb3 100644

Lines of this file are not shown. View the raw message.

hw/intc/apic.c +1 -1
index d1d343d4216..30d47bf6483 100644

Lines of this file are not shown. View the raw message.

hw/intc/apic_common.c +1 -1
index 2a3e878c4da..37a7a7019d3 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gic.c +1 -1
index 3581ff8e8a2..d18bef40fcc 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gic_common.c +1 -1
index 5ac56e33898..f61d1c1fe60 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gic_kvm.c +1 -1
index 40adb028654..1e9232f47c8 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gicv2m.c +1 -1
index 3a8c62698c8..cef06882216 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gicv3.c +1 -1
index 58e18fff54f..6059ce926a6 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gicv3_common.c +1 -1
index 76b2283c928..dd86a50300a 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gicv3_its.c +1 -1
index 936368c901d..577b4454057 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gicv3_its_common.c +1 -1
index 70dbee83a65..e946e3fb87b 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gicv3_its_kvm.c +1 -1
index e1989745601..9812d508597 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gicv3_kvm.c +1 -1
index 8e17cab2a0f..3be3bf6c28d 100644

Lines of this file are not shown. View the raw message.

hw/intc/armv7m_nvic.c +1 -1
index 5fd07609824..c42624bd02c 100644

Lines of this file are not shown. View the raw message.

hw/intc/aspeed_intc.c +2 -2
index 126b711b943..2f965bbce98 100644

Lines of this file are not shown. View the raw message.

hw/intc/aspeed_vic.c +1 -1
index 55fe51a6675..7120088454c 100644

Lines of this file are not shown. View the raw message.

hw/intc/bcm2835_ic.c +1 -1
index 4a42fcf60dd..55e0a5a503b 100644

Lines of this file are not shown. View the raw message.

hw/intc/bcm2836_control.c +1 -1
index 197a0e2ccf7..1c028536696 100644

Lines of this file are not shown. View the raw message.

hw/intc/exynos4210_combiner.c +1 -1
index 6ddbcd4c6df..ebbe23436f4 100644

Lines of this file are not shown. View the raw message.

hw/intc/exynos4210_gic.c +1 -1
index 01a53936d3a..7e2d79d00cd 100644

Lines of this file are not shown. View the raw message.

hw/intc/goldfish_pic.c +1 -1
index aa5162c18fd..b80538cdeba 100644

Lines of this file are not shown. View the raw message.

hw/intc/grlib_irqmp.c +1 -1
index 95cdb411d2c..e0f26466ba3 100644

Lines of this file are not shown. View the raw message.

hw/intc/heathrow_pic.c +1 -1
index 729498f1dfe..447e8c25d8d 100644

Lines of this file are not shown. View the raw message.

hw/intc/i8259.c +1 -1
index d88b20f40b1..2359dd82534 100644

Lines of this file are not shown. View the raw message.

hw/intc/i8259_common.c +1 -1
index c77ff683bb8..4a92e0da908 100644

Lines of this file are not shown. View the raw message.

hw/intc/imx_avic.c +1 -1
index e1c9ce769dc..09c3bfac0b6 100644

Lines of this file are not shown. View the raw message.

hw/intc/imx_gpcv2.c +1 -1
index 9e5cf28371f..58d286c1cfc 100644

Lines of this file are not shown. View the raw message.

hw/intc/ioapic.c +1 -1
index 8cd1d85e06a..133bef852d1 100644

Lines of this file are not shown. View the raw message.

hw/intc/ioapic_common.c +1 -1
index 769896353a4..b0381c7990d 100644

Lines of this file are not shown. View the raw message.

hw/intc/loongarch_extioi.c +1 -1
index f3055ec4d26..2e6dfc2ec7f 100644

Lines of this file are not shown. View the raw message.

hw/intc/loongarch_extioi_common.c +2 -1
index fd56253d10b..9479eb51efd 100644

Lines of this file are not shown. View the raw message.

hw/intc/loongarch_ipi.c +1 -1
index 5376f1e0840..4c3944a4015 100644

Lines of this file are not shown. View the raw message.

hw/intc/loongarch_pch_msi.c +1 -1
index 66b5c1e660e..48d977c04b3 100644

Lines of this file are not shown. View the raw message.

hw/intc/loongarch_pch_pic.c +1 -1
index acd75ccb0c0..6c2b6de3f00 100644

Lines of this file are not shown. View the raw message.

hw/intc/loongarch_pic_common.c +2 -1
index e7f541db4b5..fdb250c4186 100644

Lines of this file are not shown. View the raw message.

hw/intc/loongson_ipi.c +1 -1
index d2268a27f87..fbc73e8b001 100644

Lines of this file are not shown. View the raw message.

hw/intc/loongson_ipi_common.c +1 -1
index f5ab5024c01..f32661c40f6 100644

Lines of this file are not shown. View the raw message.

hw/intc/m68k_irqc.c +1 -1
index a82b80f5c6f..215e1a6ed5b 100644

Lines of this file are not shown. View the raw message.

hw/intc/mips_gic.c +1 -1
index 5e3cbeabece..9795bef29ae 100644

Lines of this file are not shown. View the raw message.

hw/intc/omap_intc.c +1 -1
index 095a3d504f4..9e8737be338 100644

Lines of this file are not shown. View the raw message.

hw/intc/ompic.c +1 -1
index 42af4567c66..7f18346a089 100644

Lines of this file are not shown. View the raw message.

hw/intc/openpic.c +1 -1
index 78a82d0d30a..87733eb7c30 100644

Lines of this file are not shown. View the raw message.

hw/intc/openpic_kvm.c +1 -1
index 9cdaa97004e..673ea9ca055 100644

Lines of this file are not shown. View the raw message.

hw/intc/pl190.c +1 -1
index a5e2d763153..838c21c4a02 100644

Lines of this file are not shown. View the raw message.

hw/intc/pnv_xive.c +1 -1
index b755ddf0ffa..b67c2ed6c7e 100644

Lines of this file are not shown. View the raw message.

hw/intc/pnv_xive2.c +1 -1
index 9ed759417e0..8c9bcd40b92 100644

Lines of this file are not shown. View the raw message.

hw/intc/ppc-uic.c +1 -1
index 7de4bf9885c..bc4dc90ade1 100644

Lines of this file are not shown. View the raw message.

hw/intc/realview_gic.c +1 -1
index 9b12116b2af..63e25c2a781 100644

Lines of this file are not shown. View the raw message.

hw/intc/riscv_aclint.c +2 -2
index db374a7c2d2..b0139f03f59 100644

Lines of this file are not shown. View the raw message.

hw/intc/riscv_aplic.c +1 -1
index 48666491158..79f7f8b0030 100644

Lines of this file are not shown. View the raw message.

hw/intc/riscv_imsic.c +1 -1
index dc8162c0a7c..5feefd973c9 100644

Lines of this file are not shown. View the raw message.

hw/intc/rx_icu.c +1 -1
index ca13c5fb37b..f8615527b75 100644

Lines of this file are not shown. View the raw message.

hw/intc/s390_flic.c +2 -2
index c20f4c10750..f6711725dc8 100644

Lines of this file are not shown. View the raw message.

hw/intc/s390_flic_kvm.c +1 -1
index 10aaafbb312..f833a3996a6 100644

Lines of this file are not shown. View the raw message.

hw/intc/sifive_plic.c +1 -1
index a5b0f6ef1bc..3160b216fdc 100644

Lines of this file are not shown. View the raw message.

hw/intc/slavio_intctl.c +1 -1
index f83709a8576..5776055a8b4 100644

Lines of this file are not shown. View the raw message.

hw/intc/spapr_xive.c +1 -1
index a764c0bb575..fad03dbfbe8 100644

Lines of this file are not shown. View the raw message.

hw/intc/xics.c +2 -2
index 9c1b7bbe9e3..d9a199e8834 100644

Lines of this file are not shown. View the raw message.

hw/intc/xics_pnv.c +1 -1
index 753c067f172..ff602d9a346 100644

Lines of this file are not shown. View the raw message.

hw/intc/xics_spapr.c +1 -1
index a0d97bdefed..9e465fb8f3b 100644

Lines of this file are not shown. View the raw message.

hw/intc/xilinx_intc.c +1 -1
index 6930f83907a..f1ed3398c52 100644

Lines of this file are not shown. View the raw message.

hw/intc/xive.c +4 -4
index 139cfdf9bfa..a91d71d108e 100644

Lines of this file are not shown. View the raw message.

hw/intc/xive2.c +2 -2
index fc5aed33158..cf37aa2e4a7 100644

Lines of this file are not shown. View the raw message.

hw/intc/xlnx-pmu-iomod-intc.c +1 -1
index ccdab244b3a..9200585e325 100644

Lines of this file are not shown. View the raw message.

hw/intc/xlnx-zynqmp-ipi.c +1 -1
index 72413772981..610cd0e3164 100644

Lines of this file are not shown. View the raw message.

hw/ipack/ipack.c +1 -1
index b6defae6025..ab602bff734 100644

Lines of this file are not shown. View the raw message.

hw/ipack/tpci200.c +1 -1
index 470a4203ae4..f6993330d23 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/ipmi.c +2 -2
index fdeaa5269f7..b91e487e1b8 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/ipmi_bmc_extern.c +1 -1
index d015500254a..e14978b2576 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/ipmi_bmc_sim.c +1 -1
index 6157ac71201..df2aca088d0 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/isa_ipmi_bt.c +1 -1
index a1b66d5ee82..f7f7abcca89 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/isa_ipmi_kcs.c +1 -1
index d9ebdd5371f..67969ca0636 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/pci_ipmi_bt.c +1 -1
index afeea6f3031..78d81420089 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/pci_ipmi_kcs.c +1 -1
index 05ba97ec58f..40127de393e 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/smbus_ipmi.c +1 -1
index 56865df7dbd..7345844a3a9 100644

Lines of this file are not shown. View the raw message.

hw/isa/fdc37m81x-superio.c +1 -1
index 55e91fbca17..c2a38f04b11 100644

Lines of this file are not shown. View the raw message.

hw/isa/i82378.c +1 -1
index cbaa152a899..26c8ec4f77a 100644

Lines of this file are not shown. View the raw message.

hw/isa/isa-bus.c +3 -3
index 2599c1219a5..6c9802eb7ac 100644

Lines of this file are not shown. View the raw message.

hw/isa/isa-superio.c +1 -1
index 4260da547c6..2853485977c 100644

Lines of this file are not shown. View the raw message.

hw/isa/lpc_ich9.c +1 -1
index dcb0ac28483..d3e623b1e88 100644

Lines of this file are not shown. View the raw message.

hw/isa/pc87312.c +1 -1
index 5f5868442ab..388da8f5900 100644

Lines of this file are not shown. View the raw message.

hw/isa/piix.c +3 -3
index 7fc9e3ec9de..2c6e76f97cc 100644

Lines of this file are not shown. View the raw message.

hw/isa/smc37c669-superio.c +1 -1
index d2e58c9a895..0ec63f520c5 100644

Lines of this file are not shown. View the raw message.

hw/isa/vt82c686.c +6 -6
index 43bd67eeef2..80366aaf647 100644

Lines of this file are not shown. View the raw message.

hw/loongarch/virt.c +1 -1
index 63fa0f4e32a..9c3ede6e74c 100644

Lines of this file are not shown. View the raw message.

hw/m68k/mcf5206.c +1 -1
index c22e615f7a8..a25e782403f 100644

Lines of this file are not shown. View the raw message.

hw/m68k/mcf_intc.c +1 -1
index 7b9213947df..e3055b841e8 100644

Lines of this file are not shown. View the raw message.

hw/m68k/next-cube.c +4 -4
index 0570e4a76f1..186baaaac58 100644

Lines of this file are not shown. View the raw message.

hw/m68k/next-kbd.c +1 -1
index 68b17786b2d..2bec945acfb 100644

Lines of this file are not shown. View the raw message.

hw/m68k/q800-glue.c +1 -1
index 168665b3829..b428e7c833e 100644

Lines of this file are not shown. View the raw message.

hw/m68k/q800.c +1 -1
index aeed4c8ddb8..88e304c548d 100644

Lines of this file are not shown. View the raw message.

hw/m68k/virt.c +2 -2
index d967bdd7438..05d5334adf6 100644

Lines of this file are not shown. View the raw message.

hw/mem/cxl_type3.c +1 -1
index 0ae1704a345..b98c068476d 100644

Lines of this file are not shown. View the raw message.

hw/mem/npcm7xx_mc.c +1 -1
index abc5af56208..07fc108e0a9 100644

Lines of this file are not shown. View the raw message.

hw/mem/nvdimm.c +1 -1
index c05007ab21d..23ab143ef8e 100644

Lines of this file are not shown. View the raw message.

hw/mem/pc-dimm.c +1 -1
index 799a618c1cc..6f68171442f 100644

Lines of this file are not shown. View the raw message.

hw/mem/sparse-mem.c +1 -1
index 6a9a591370a..ed8fd70ac08 100644

Lines of this file are not shown. View the raw message.

hw/microblaze/petalogix_s3adsp1800_mmu.c +2 -1
index 2c0d8c34cd2..9c5059ee245 100644

Lines of this file are not shown. View the raw message.

hw/microblaze/xlnx-zynqmp-pmu.c +1 -1
index bdbf7328bf4..254672901e8 100644

Lines of this file are not shown. View the raw message.

hw/mips/cps.c +1 -1
index 0d8cbdc8924..2a3ba3f58d2 100644

Lines of this file are not shown. View the raw message.

hw/mips/jazz.c +2 -2
index c89610639a9..8a7df89c515 100644

Lines of this file are not shown. View the raw message.

hw/mips/loongson3_virt.c +1 -1
index 831fddb1bd7..c35ab09027a 100644

Lines of this file are not shown. View the raw message.

hw/misc/a9scu.c +1 -1
index 088d4adb0d5..bb00ae29692 100644

Lines of this file are not shown. View the raw message.

hw/misc/allwinner-a10-ccm.c +1 -1
index 575b0189524..0d590679cae 100644

Lines of this file are not shown. View the raw message.

hw/misc/allwinner-a10-dramc.c +1 -1
index a7c58fa6d06..495ba87cd08 100644

Lines of this file are not shown. View the raw message.

hw/misc/allwinner-cpucfg.c +1 -1
index 022f63ddf34..6a1ad553184 100644

Lines of this file are not shown. View the raw message.

hw/misc/allwinner-h3-ccu.c +1 -1
index 92e579a9918..5e58e11c9c7 100644

Lines of this file are not shown. View the raw message.

hw/misc/allwinner-h3-dramc.c +1 -1
index 13bba26d0e4..efdb37607b5 100644

Lines of this file are not shown. View the raw message.

hw/misc/allwinner-h3-sysctrl.c +2 -1
index 40059e8cb0c..8ae232ff0bb 100644

Lines of this file are not shown. View the raw message.

hw/misc/allwinner-r40-ccu.c +1 -1
index 005a15b2dae..93ad6507d4b 100644

Lines of this file are not shown. View the raw message.

hw/misc/allwinner-r40-dramc.c +1 -1
index 97c3664e3a3..ca46341dfd6 100644

Lines of this file are not shown. View the raw message.

hw/misc/allwinner-sid.c +1 -1
index 042b747f30b..2fd1917f56c 100644

Lines of this file are not shown. View the raw message.

hw/misc/allwinner-sramc.c +2 -2
index a20b0b4c5cb..e400583f966 100644

Lines of this file are not shown. View the raw message.

hw/misc/applesmc.c +1 -1
index 97ea842d60c..d83a81b60d3 100644

Lines of this file are not shown. View the raw message.

hw/misc/arm11scu.c +1 -1
index 02493cec31b..2ad4fd1d21d 100644

Lines of this file are not shown. View the raw message.

hw/misc/arm_l2x0.c +1 -1
index 39b4642da7d..8b4b61eed00 100644

Lines of this file are not shown. View the raw message.

hw/misc/arm_sysctl.c +1 -1
index 01663407eca..0f4e37cd474 100644

Lines of this file are not shown. View the raw message.

hw/misc/armsse-cpu-pwrctrl.c +1 -1
index 2d3a0ac29ce..66e9218f277 100644

Lines of this file are not shown. View the raw message.

hw/misc/armsse-cpuid.c +1 -1
index 58cb37333f0..a57764d731f 100644

Lines of this file are not shown. View the raw message.

hw/misc/armsse-mhu.c +1 -1
index 91c49108b00..d5d307a186c 100644

Lines of this file are not shown. View the raw message.

hw/misc/armv7m_ras.c +1 -1
index de24922c944..7bf5acd0a54 100644

Lines of this file are not shown. View the raw message.

hw/misc/aspeed_hace.c +5 -5
index e3f7df2e862..1ebda4f10a7 100644

Lines of this file are not shown. View the raw message.

hw/misc/aspeed_i3c.c +2 -2
index ab39c6435b5..3bef1c84dd1 100644

Lines of this file are not shown. View the raw message.

hw/misc/aspeed_lpc.c +1 -1
index 228d250dc03..78406dae248 100644

Lines of this file are not shown. View the raw message.

hw/misc/aspeed_peci.c +1 -1
index 9025b35f836..a7a449a9236 100644

Lines of this file are not shown. View the raw message.

hw/misc/aspeed_sbc.c +2 -2
index e4a6bd15818..a7d101ba71f 100644

Lines of this file are not shown. View the raw message.

hw/misc/aspeed_scu.c +7 -7
index bac1441b061..7fb1b5a51b0 100644

Lines of this file are not shown. View the raw message.

hw/misc/aspeed_sdmc.c +5 -5
index f359640a9a5..f04d9930dd7 100644

Lines of this file are not shown. View the raw message.

hw/misc/aspeed_sli.c +3 -3
index fe720ead509..c51484035e0 100644

Lines of this file are not shown. View the raw message.

hw/misc/aspeed_xdma.c +4 -4
index 1dd32f72f45..cc03c422b0e 100644

Lines of this file are not shown. View the raw message.

hw/misc/auxbus.c +3 -3
index 28d50d9d097..877f3456062 100644

Lines of this file are not shown. View the raw message.

hw/misc/avr_power.c +1 -1
index ac7b96f53e3..411f016c997 100644

Lines of this file are not shown. View the raw message.

hw/misc/axp2xx.c +3 -3
index af646878cd2..46d17712dde 100644

Lines of this file are not shown. View the raw message.

hw/misc/bcm2835_cprman.c +5 -5
index aa14cd931f5..9321080ce8f 100644

Lines of this file are not shown. View the raw message.

hw/misc/bcm2835_mbox.c +1 -1
index ed6dbea1917..603eaaa710d 100644

Lines of this file are not shown. View the raw message.

hw/misc/bcm2835_mphi.c +1 -1
index 7309cf22fc7..55d79e7e876 100644

Lines of this file are not shown. View the raw message.

hw/misc/bcm2835_powermgt.c +1 -1
index e4e9bae3745..3ec7abad0e0 100644

Lines of this file are not shown. View the raw message.

hw/misc/bcm2835_property.c +1 -1
index 2bae64b64c6..a21c6a541c0 100644

Lines of this file are not shown. View the raw message.

hw/misc/bcm2835_rng.c +1 -1
index 06f40817df6..e4d2c224c88 100644

Lines of this file are not shown. View the raw message.

hw/misc/bcm2835_thermal.c +1 -1
index 1c1b0671cc0..33bfc91c7aa 100644

Lines of this file are not shown. View the raw message.

hw/misc/debugexit.c +1 -1
index 577b8844946..04a9fc31223 100644

Lines of this file are not shown. View the raw message.

hw/misc/djmemc.c +1 -1
index 96d5efb5e3a..c5b09f551b0 100644

Lines of this file are not shown. View the raw message.

hw/misc/eccmemctl.c +1 -1
index d7452c4cc8a..81fc536131c 100644

Lines of this file are not shown. View the raw message.

hw/misc/edu.c +1 -1
index 504178b4a22..a6e0786b6f1 100644

Lines of this file are not shown. View the raw message.

hw/misc/empty_slot.c +1 -1
index 221ea7cb54d..239d7603207 100644

Lines of this file are not shown. View the raw message.

hw/misc/exynos4210_clk.c +1 -1
index 886d10bbab5..fdf5bdd6034 100644

Lines of this file are not shown. View the raw message.

hw/misc/exynos4210_pmu.c +1 -1
index d44aac3af5c..a86ec9aba85 100644

Lines of this file are not shown. View the raw message.

hw/misc/exynos4210_rng.c +1 -1
index a741cf176b7..2d0ebc457bc 100644

Lines of this file are not shown. View the raw message.

hw/misc/grlib_ahb_apb_pnp.c +2 -2
index 5b05f158592..cdca00ad542 100644

Lines of this file are not shown. View the raw message.

hw/misc/i2c-echo.c +1 -1
index 65d10029dc7..0f906fa60ef 100644

Lines of this file are not shown. View the raw message.

hw/misc/imx25_ccm.c +1 -1
index 9654d23f195..a6665d55353 100644

Lines of this file are not shown. View the raw message.

hw/misc/imx31_ccm.c +1 -1
index 93130b24e5e..339458e8596 100644

Lines of this file are not shown. View the raw message.

hw/misc/imx6_ccm.c +1 -1
index 7d522ed7c5f..a10b67d3961 100644

Lines of this file are not shown. View the raw message.

hw/misc/imx6_src.c +1 -1
index 06cc46292ed..8d2c4175e4e 100644

Lines of this file are not shown. View the raw message.

hw/misc/imx6ul_ccm.c +1 -1
index c836dfe494c..7f3ae61710c 100644

Lines of this file are not shown. View the raw message.

hw/misc/imx7_ccm.c +2 -2
index c3ecfd78c19..c061a584e46 100644

Lines of this file are not shown. View the raw message.

hw/misc/imx7_gpr.c +1 -1
index b03341a2eba..e12b4962730 100644

Lines of this file are not shown. View the raw message.

hw/misc/imx7_snvs.c +1 -1
index c8a096bc137..6a8733d23d7 100644

Lines of this file are not shown. View the raw message.

hw/misc/imx7_src.c +1 -1
index 35341c68198..df0b0a69057 100644

Lines of this file are not shown. View the raw message.

hw/misc/imx_rngc.c +1 -1
index 0cbf28db5dd..630f6cb54b5 100644

Lines of this file are not shown. View the raw message.

hw/misc/iosb.c +1 -1
index 31927eaedb4..96221e1ee5a 100644

Lines of this file are not shown. View the raw message.

hw/misc/iotkit-secctl.c +1 -1
index 04ced3559c2..afd9ab48df7 100644

Lines of this file are not shown. View the raw message.

hw/misc/iotkit-sysctl.c +1 -1
index c654af2e884..d70e51ab2ec 100644

Lines of this file are not shown. View the raw message.

hw/misc/iotkit-sysinfo.c +1 -1
index 75260f7fabb..57405cb7e17 100644

Lines of this file are not shown. View the raw message.

hw/misc/ivshmem-flat.c +1 -1
index 40309a8ff38..7cf9075a847 100644

Lines of this file are not shown. View the raw message.

hw/misc/ivshmem-pci.c +3 -3
index 900d523334c..2844b6f9099 100644

Lines of this file are not shown. View the raw message.

hw/misc/lasi.c +1 -1
index 24d20ffcb8d..9f758c6a863 100644

Lines of this file are not shown. View the raw message.

hw/misc/led.c +1 -1
index 9364d9945ec..f7f709072af 100644

Lines of this file are not shown. View the raw message.

hw/misc/mac_via.c +2 -2
index 03b1feda505..63552dc088e 100644

Lines of this file are not shown. View the raw message.

hw/misc/macio/cuda.c +2 -2
index 34731ae560a..bcd00c9bb1b 100644

Lines of this file are not shown. View the raw message.

hw/misc/macio/gpio.c +1 -1
index 7cad62819a0..1b4e386b0d8 100644

Lines of this file are not shown. View the raw message.

hw/misc/macio/mac_dbdma.c +1 -1
index de0f934f7d0..b2b42dd5622 100644

Lines of this file are not shown. View the raw message.

hw/misc/macio/macio.c +3 -3
index 194b152effe..b0418db49ea 100644

Lines of this file are not shown. View the raw message.

hw/misc/macio/pmu.c +2 -2
index 73190559a83..37349139948 100644

Lines of this file are not shown. View the raw message.

hw/misc/mchp_pfsoc_dmc.c +3 -2
index 43d8e970abc..599f845f459 100644

Lines of this file are not shown. View the raw message.

hw/misc/mchp_pfsoc_ioscb.c +1 -1
index a71d134295a..10fc7ea2a95 100644

Lines of this file are not shown. View the raw message.

hw/misc/mchp_pfsoc_sysreg.c +1 -1
index 7876fe0c5ba..bfa78d3d2fa 100644

Lines of this file are not shown. View the raw message.

hw/misc/mips_cmgcr.c +1 -1
index 95f19912b46..5484b739674 100644

Lines of this file are not shown. View the raw message.

hw/misc/mips_cpc.c +1 -1
index 772b8c0017d..c7311edc3fd 100644

Lines of this file are not shown. View the raw message.

hw/misc/mips_itu.c +1 -1
index 2d126ebaf85..fc17385cde7 100644

Lines of this file are not shown. View the raw message.

hw/misc/mos6522.c +1 -1
index 0b8f6a4cb4c..8dd6b82ac5f 100644

Lines of this file are not shown. View the raw message.

hw/misc/mps2-fpgaio.c +1 -1
index d07568248d6..f76c915ced9 100644

Lines of this file are not shown. View the raw message.

hw/misc/mps2-scc.c +1 -1
index 5f8d6bca43b..a9a5d4a535b 100644

Lines of this file are not shown. View the raw message.

hw/misc/msf2-sysreg.c +1 -1
index 20009adbd95..ce0ad50c1be 100644

Lines of this file are not shown. View the raw message.

hw/misc/npcm7xx_clk.c +4 -4
index 46f907b61c2..bd4bba76a99 100644

Lines of this file are not shown. View the raw message.

hw/misc/npcm7xx_gcr.c +1 -1
index 07464a4dc93..c0c2a0b3edc 100644

Lines of this file are not shown. View the raw message.

hw/misc/npcm7xx_mft.c +1 -1
index e565cac05d8..b35e971fe53 100644

Lines of this file are not shown. View the raw message.

hw/misc/npcm7xx_pwm.c +1 -1
index f7f77e30a22..2de18d09b82 100644

Lines of this file are not shown. View the raw message.

hw/misc/npcm7xx_rng.c +1 -1
index 7f7e5eca626..7d47a1caa07 100644

Lines of this file are not shown. View the raw message.

hw/misc/nrf51_rng.c +1 -1
index 1e67acdf234..8cd7ffe3f55 100644

Lines of this file are not shown. View the raw message.

hw/misc/pc-testdev.c +1 -1
index e3896518694..67c486f347c 100644

Lines of this file are not shown. View the raw message.

hw/misc/pci-testdev.c +1 -1
index f6718a7c37d..0ea26451f1f 100644

Lines of this file are not shown. View the raw message.

hw/misc/pvpanic-isa.c +1 -1
index c3713dc5c47..55522ee56cb 100644

Lines of this file are not shown. View the raw message.

hw/misc/pvpanic-pci.c +1 -1
index e5f0788ec0e..51ebf661076 100644

Lines of this file are not shown. View the raw message.

hw/misc/sbsa_ec.c +1 -1
index a1e813691e4..dfee1af5ad2 100644

Lines of this file are not shown. View the raw message.

hw/misc/sifive_e_aon.c +1 -1
index 17a522ccf9b..6eef38d622a 100644

Lines of this file are not shown. View the raw message.

hw/misc/sifive_u_otp.c +1 -1
index d6df867fbd7..1ebed2fd8b4 100644

Lines of this file are not shown. View the raw message.

hw/misc/sifive_u_prci.c +1 -1
index cafe6a66f4e..6e75cb6d0d5 100644

Lines of this file are not shown. View the raw message.

hw/misc/slavio_misc.c +1 -1
index dace6d28ccb..a034df3592f 100644

Lines of this file are not shown. View the raw message.

hw/misc/stm32_rcc.c +1 -1
index 26672b5b24a..94e8dae441c 100644

Lines of this file are not shown. View the raw message.

hw/misc/stm32f2xx_syscfg.c +1 -1
index 6c7b722274a..d285896ea76 100644

Lines of this file are not shown. View the raw message.

hw/misc/stm32f4xx_exti.c +1 -1
index efd996df94e..0688e6e73ec 100644

Lines of this file are not shown. View the raw message.

hw/misc/stm32f4xx_syscfg.c +1 -1
index 7d0f3eb5f5b..addfb031e88 100644

Lines of this file are not shown. View the raw message.

hw/misc/stm32l4x5_exti.c +1 -1
index e281841dcf4..9c002164c82 100644

Lines of this file are not shown. View the raw message.

hw/misc/stm32l4x5_rcc.c +3 -3
index fd8466dff34..fb4ef15067c 100644

Lines of this file are not shown. View the raw message.

hw/misc/stm32l4x5_syscfg.c +1 -1
index a947a9e036b..4e21756e0b4 100644

Lines of this file are not shown. View the raw message.

hw/misc/tz-mpc.c +2 -2
index 6d827d21dc2..a158d4a2944 100644

Lines of this file are not shown. View the raw message.

hw/misc/tz-msc.c +1 -1
index 505df4e1902..af0cc5d4718 100644

Lines of this file are not shown. View the raw message.

hw/misc/tz-ppc.c +1 -1
index 1daa54c5e69..e4235a846d4 100644

Lines of this file are not shown. View the raw message.

hw/misc/unimp.c +1 -1
index 257282a3a9d..4370c14ef16 100644

Lines of this file are not shown. View the raw message.

hw/misc/virt_ctrl.c +1 -1
index a210a5924c9..9f16093ca2c 100644

Lines of this file are not shown. View the raw message.

hw/misc/vmcoreinfo.c +1 -1
index b0145fa5044..9c2e9005ad3 100644

Lines of this file are not shown. View the raw message.

hw/misc/xlnx-versal-cframe-reg.c +2 -2
index 8db0f7e6589..e28d569ebef 100644

Lines of this file are not shown. View the raw message.

hw/misc/xlnx-versal-cfu.c +3 -3
index 26d06e2557d..02e4fed05b9 100644

Lines of this file are not shown. View the raw message.

hw/misc/xlnx-versal-crl.c +1 -1
index f143900d5b4..08ff2fcc24f 100644

Lines of this file are not shown. View the raw message.

hw/misc/xlnx-versal-pmc-iou-slcr.c +2 -1
index e469c04d763..d76df468d49 100644

Lines of this file are not shown. View the raw message.

hw/misc/xlnx-versal-trng.c +1 -1
index dbd9b58a4ec..e122e417c35 100644

Lines of this file are not shown. View the raw message.

hw/misc/xlnx-versal-xramc.c +1 -1
index d1e76be027c..07370b80c0d 100644

Lines of this file are not shown. View the raw message.

hw/misc/xlnx-zynqmp-apu-ctrl.c +1 -1
index 87e4a140679..e85da32d99c 100644

Lines of this file are not shown. View the raw message.

hw/misc/xlnx-zynqmp-crf.c +1 -1
index e5aba56f691..cccca0e814e 100644

Lines of this file are not shown. View the raw message.

hw/misc/zynq_slcr.c +1 -1
index a766bab1825..010387beec4 100644

Lines of this file are not shown. View the raw message.

hw/net/allwinner-sun8i-emac.c +2 -1
index ff44554e957..134e6bd0cc0 100644

Lines of this file are not shown. View the raw message.

hw/net/allwinner_emac.c +1 -1
index 3eb9e09dc5c..6dce3f04683 100644

Lines of this file are not shown. View the raw message.

hw/net/cadence_gem.c +1 -1
index 80fbbacc1e7..50025d5a6f2 100644

Lines of this file are not shown. View the raw message.

hw/net/can/can_kvaser_pci.c +1 -1
index 9e363d532f5..c0bb598baef 100644

Lines of this file are not shown. View the raw message.

hw/net/can/can_mioe3680_pci.c +1 -1
index 580f099e00a..9aac70dccd3 100644

Lines of this file are not shown. View the raw message.

hw/net/can/can_pcm3680_pci.c +1 -1
index 3195b79954a..b305f7e9b7d 100644

Lines of this file are not shown. View the raw message.

hw/net/can/ctucan_pci.c +1 -1
index a8c77b91943..0dee9b59d10 100644

Lines of this file are not shown. View the raw message.

hw/net/can/xlnx-versal-canfd.c +1 -1
index dc242e92155..39071800136 100644

Lines of this file are not shown. View the raw message.

hw/net/can/xlnx-zynqmp-can.c +1 -1
index 9fbdeea368f..ca9edd4a5b8 100644

Lines of this file are not shown. View the raw message.

hw/net/dp8393x.c +1 -1
index c80ddb12e38..d49032059bb 100644

Lines of this file are not shown. View the raw message.

hw/net/e1000.c +1 -1
index 3d0b2277039..d49730f4ad4 100644

Lines of this file are not shown. View the raw message.

hw/net/e1000e.c +1 -1
index f637853073e..5e58f39235e 100644

Lines of this file are not shown. View the raw message.

hw/net/eepro100.c +1 -1
index 6d853229aec..02a4e787f67 100644

Lines of this file are not shown. View the raw message.

hw/net/fsl_etsec/etsec.c +1 -1
index 781b9003954..e26ba431def 100644

Lines of this file are not shown. View the raw message.

hw/net/ftgmac100.c +2 -2
index 1f524d7a01e..c41ce889cf1 100644

Lines of this file are not shown. View the raw message.

hw/net/igb.c +1 -1
index 4d93ce629f9..61e7ea7896b 100644

Lines of this file are not shown. View the raw message.

hw/net/igbvf.c +1 -1
index 21a97d4d61d..91e7ccf931b 100644

Lines of this file are not shown. View the raw message.

hw/net/imx_fec.c +1 -1
index 0f0afda58ae..5c8c441c1e5 100644

Lines of this file are not shown. View the raw message.

hw/net/lan9118.c +1 -1
index afee68c7db6..6dda1e5c940 100644

Lines of this file are not shown. View the raw message.

hw/net/lan9118_phy.c +1 -1
index 5c53a4a1e3f..4c4e03df115 100644

Lines of this file are not shown. View the raw message.

hw/net/lance.c +1 -1
index 15492382f9c..dfb855c23a4 100644

Lines of this file are not shown. View the raw message.

hw/net/lasi_i82596.c +1 -1
index cad01f53518..9e1dd215467 100644

Lines of this file are not shown. View the raw message.

hw/net/mcf_fec.c +1 -1
index d5572a81d3f..ae128fa3114 100644

Lines of this file are not shown. View the raw message.

hw/net/mipsnet.c +1 -1
index 8852b6f3a12..583aa1c7de6 100644

Lines of this file are not shown. View the raw message.

hw/net/msf2-emac.c +1 -1
index 80f75f19ddf..59045973ab9 100644

Lines of this file are not shown. View the raw message.

hw/net/mv88w8618_eth.c +1 -1
index 5a9d14bef62..6f08846c81c 100644

Lines of this file are not shown. View the raw message.

hw/net/ne2000-isa.c +1 -1
index 20973651f32..673c785abc9 100644

Lines of this file are not shown. View the raw message.

hw/net/ne2000-pci.c +1 -1
index 6840d0e7206..2153973af43 100644

Lines of this file are not shown. View the raw message.

hw/net/npcm7xx_emc.c +1 -1
index e06f6526297..9ba35e2c819 100644

Lines of this file are not shown. View the raw message.

hw/net/npcm_gmac.c +1 -1
index e1fb3837725..a4341125809 100644

Lines of this file are not shown. View the raw message.

hw/net/opencores_eth.c +1 -1
index 54daab7b04c..7e955c01322 100644

Lines of this file are not shown. View the raw message.

hw/net/pcnet-pci.c +1 -1
index b314ea7d6d6..429c2171803 100644

Lines of this file are not shown. View the raw message.

hw/net/rocker/rocker.c +1 -1
index aa5d87fbc5a..3d307f4ab15 100644

Lines of this file are not shown. View the raw message.

hw/net/rtl8139.c +1 -1
index 135ab57160c..ad812954cf8 100644

Lines of this file are not shown. View the raw message.

hw/net/smc91c111.c +1 -1
index b18d5c23c39..c5c50b085ee 100644

Lines of this file are not shown. View the raw message.

hw/net/spapr_llan.c +1 -1
index 13fc6565f09..f6f217d6320 100644

Lines of this file are not shown. View the raw message.

hw/net/stellaris_enet.c +1 -1
index a420732d48f..2fc51e1e16d 100644

Lines of this file are not shown. View the raw message.

hw/net/sungem.c +1 -1
index 12a9a9df46a..123d08ee8e3 100644

Lines of this file are not shown. View the raw message.

hw/net/sunhme.c +1 -1
index fa234d0da12..46c9f5020b1 100644

Lines of this file are not shown. View the raw message.

hw/net/tulip.c +1 -1
index a0646bb84c3..fb3366d8ee3 100644

Lines of this file are not shown. View the raw message.

hw/net/virtio-net.c +1 -1
index d847429b1c3..a85f4818323 100644

Lines of this file are not shown. View the raw message.

hw/net/vmxnet3.c +1 -1
index 7abed664690..702a0ac78dc 100644

Lines of this file are not shown. View the raw message.

hw/net/xen_nic.c +1 -1
index c48691207df..34c6a1d0b08 100644

Lines of this file are not shown. View the raw message.

hw/net/xgmac.c +1 -1
index e3cc4c60ebd..9c87c4e70fd 100644

Lines of this file are not shown. View the raw message.

hw/net/xilinx_axienet.c +4 -3
index 457952af196..e45bc048e05 100644

Lines of this file are not shown. View the raw message.

hw/net/xilinx_ethlite.c +1 -1
index 14bf2b2e17a..279932dbb94 100644

Lines of this file are not shown. View the raw message.

hw/nubus/mac-nubus-bridge.c +1 -1
index a0da5a8b2fa..0dac8d19b37 100644

Lines of this file are not shown. View the raw message.

hw/nubus/nubus-bridge.c +1 -1
index 8fe43627237..fb14402c4fc 100644

Lines of this file are not shown. View the raw message.

hw/nubus/nubus-bus.c +1 -1
index 07c279bde5c..44820f13a85 100644

Lines of this file are not shown. View the raw message.

hw/nubus/nubus-device.c +1 -1
index 6755c3dc438..7797e61c7fc 100644

Lines of this file are not shown. View the raw message.

hw/nubus/nubus-virtio-mmio.c +1 -1
index 7a98731c451..63aeca5b122 100644

Lines of this file are not shown. View the raw message.

hw/nvme/ctrl.c +1 -1
index 68903d1d706..a49f1ea9cfe 100644

Lines of this file are not shown. View the raw message.

hw/nvme/ns.c +1 -1
index 410df295919..a9233f8d0c4 100644

Lines of this file are not shown. View the raw message.

hw/nvme/subsys.c +1 -1
index 2ae56f12a59..8d037c2515c 100644

Lines of this file are not shown. View the raw message.

hw/nvram/bcm2835_otp.c +1 -1
index c4aed28472b..6816b534178 100644

Lines of this file are not shown. View the raw message.

hw/nvram/ds1225y.c +1 -1
index 6b2aa8c7d26..dbfd0d2e536 100644

Lines of this file are not shown. View the raw message.

hw/nvram/eeprom_at24c.c +1 -1
index a40cc5dd15a..02e0f664674 100644

Lines of this file are not shown. View the raw message.

hw/nvram/fw_cfg.c +3 -3
index a757939cfb7..871d0b4d226 100644

Lines of this file are not shown. View the raw message.

hw/nvram/mac_nvram.c +1 -1
index 0d82e5a128f..66526a22914 100644

Lines of this file are not shown. View the raw message.

hw/nvram/npcm7xx_otp.c +3 -3
index f00ebfa931e..1fb752b20f4 100644

Lines of this file are not shown. View the raw message.

hw/nvram/nrf51_nvm.c +1 -1
index 2ed40788582..23cc9fe9b3d 100644

Lines of this file are not shown. View the raw message.

hw/nvram/spapr_nvram.c +1 -1
index a45827f6aac..d0ac4e5735f 100644

Lines of this file are not shown. View the raw message.

hw/nvram/xlnx-bbram.c +1 -1
index 0e8552ce656..b01475784e0 100644

Lines of this file are not shown. View the raw message.

hw/nvram/xlnx-efuse.c +1 -1
index e2e8311a48c..d0332c1a883 100644

Lines of this file are not shown. View the raw message.

hw/nvram/xlnx-versal-efuse-cache.c +1 -1
index 2fb599422ca..d4ec96a6264 100644

Lines of this file are not shown. View the raw message.

hw/nvram/xlnx-versal-efuse-ctrl.c +1 -1
index 3246eb3ca6e..0d0e7925ccf 100644

Lines of this file are not shown. View the raw message.

hw/nvram/xlnx-zynqmp-efuse.c +1 -1
index 15024daf4fc..5a218c32e84 100644

Lines of this file are not shown. View the raw message.

hw/openrisc/openrisc_sim.c +1 -1
index e0da4067ba3..0b70121e187 100644

Lines of this file are not shown. View the raw message.

hw/openrisc/virt.c +1 -1
index 7b60bf85094..283b2537211 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/cxl_downstream.c +1 -1
index e337f1ac501..ab3b550a889 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/cxl_root_port.c +1 -1
index c0037f2cfbf..8b1e149e9ba 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/cxl_upstream.c +1 -1
index 28b109c49af..822a8285554 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/gen_pcie_root_port.c +1 -1
index 3c0b41ef1a5..d9078e783bf 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/i82801b11.c +1 -1
index 00d2fbd7cf1..f2b294aee27 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/ioh3420.c +1 -1
index be752a4bda5..bba640f495b 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/pci_bridge_dev.c +2 -2
index 0a91a8ae6c4..4ac07e82567 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/pci_expander_bridge.c +6 -6
index 3396ab4bdd3..1e2e394ee8a 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/pcie_pci_bridge.c +1 -1
index fd4514a595c..bb81bccb185 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/pcie_root_port.c +1 -1
index dd40b366bfa..512c2ab305c 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/simba.c +1 -1
index 5fe090df6cf..c7565d9e946 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/xio3130_downstream.c +1 -1
index d4e94f26571..d85c23fe4a8 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/xio3130_upstream.c +1 -1
index fb1547b74ab..d7a27158124 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/articia.c +3 -3
index f3fcc49f812..043fb85e840 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/astro.c +3 -3
index 039cc3ad01d..c364fa15daf 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/bonito.c +2 -2
index 49669148923..4508cdd21ae 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/designware.c +4 -2
index 3e8c36e6a76..70759cab149 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/dino.c +1 -1
index 58fdbf7bc90..11b353be2ea 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/gpex.c +2 -2
index 9fcedd7fc58..7dcac4ee3c4 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/grackle.c +2 -2
index 84e5ee8c6ef..b48d44623dd 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/gt64120.c +2 -2
index d5c13a89b68..bd74b6e8714 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/i440fx.c +2 -2
index 1e69691c6d1..fcc9f3818a4 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/mv64361.c +3 -3
index 9c41c155fb4..591186f41ff 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/pnv_phb.c +2 -2
index 6c1e76fbbb6..4b0ced79b08 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/pnv_phb3.c +3 -3
index 82884e1e929..a4335f44f22 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/pnv_phb3_msi.c +1 -1
index 81986644b14..3a83311faff 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/pnv_phb3_pbcq.c +1 -1
index 82f70efa431..4e24b1449d0 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/pnv_phb4.c +3 -3
index 178c73f519b..feb812dc1a9 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/pnv_phb4_pec.c +2 -2
index a156839caf5..a4e5e8c226c 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/ppc440_pcix.c +1 -1
index 07924bce28a..744b85e49cc 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/ppc4xx_pci.c +2 -2
index 292cb308ba9..dcc4b78660c 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/ppce500.c +2 -2
index 9b905d1971d..2f6354c931e 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/q35.c +2 -2
index 06be3d77cb9..c2a71108f2e 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/raven.c +2 -2
index e3d8d206b73..3f158838a0a 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/remote.c +1 -1
index bfb25ef6af8..3b9c042065a 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/sabre.c +2 -2
index be6641de15e..f7086086f9a 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/sh_pci.c +2 -2
index 4edebced5eb..52bff66d6a1 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/uninorth.c +10 -9
index 37e2461bbbf..7cb37e01d8f 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/versatile.c +2 -2
index c3fbf4cbf94..10bb89f528f 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/xen_igd_pt.c +2 -1
index d094b675d6d..5dd17ef236f 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/xilinx-pcie.c +2 -2
index 18688485f48..70e9b2b9810 100644

Lines of this file are not shown. View the raw message.

hw/pci/pci.c +3 -3
index 00f50e6f2cc..e9e0524f5c3 100644

Lines of this file are not shown. View the raw message.

hw/pci/pci_bridge.c +1 -1
index aee4dd7d1f6..0fe66e8b12d 100644

Lines of this file are not shown. View the raw message.

hw/pci/pci_host.c +1 -1
index 80f91f409f9..abe83bbab89 100644

Lines of this file are not shown. View the raw message.

hw/pci/pcie_port.c +2 -2
index c73db30e989..8629b3aafd6 100644

Lines of this file are not shown. View the raw message.

hw/ppc/e500plat.c +1 -1
index 70a80333733..cd594eeb3ed 100644

Lines of this file are not shown. View the raw message.

hw/ppc/mac_newworld.c +1 -1
index cb3dc3ab482..dc4bd85544a 100644

Lines of this file are not shown. View the raw message.

hw/ppc/mac_oldworld.c +1 -1
index 0dbcea035c3..3906fb724e6 100644

Lines of this file are not shown. View the raw message.

hw/ppc/mpc8544ds.c +1 -1
index d74af766eed..97fb0f35ba9 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pef.c +1 -1
index 8b2d726e008..254f5707876 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pegasos2.c +1 -1
index b057672e829..dac1f11c225 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv.c +13 -12
index 11fd477b71b..6d95e24dd2b 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv_adu.c +1 -1
index d09a167466b..f9620806ec7 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv_chiptod.c +3 -3
index c8987ae67a2..4ca511a4dee 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv_core.c +7 -7
index 99d9644ee38..700b1501bd3 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv_homer.c +4 -4
index a1d83c8149d..cadf9108eae 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv_i2c.c +1 -1
index 8d35f452a2a..b2f372c8743 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv_lpc.c +4 -4
index 0480a60f3f7..84079443738 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv_n1_chiplet.c +1 -1
index 03ff9fbad0d..05e3fd6f731 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv_nest_pervasive.c +1 -1
index 780fa69dde7..b5182d54fa1 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv_occ.c +4 -4
index 48123ceae17..8bd2db56843 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv_pnor.c +1 -1
index 863e2e70aca..165424c8feb 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv_psi.c +4 -4
index 1fe11dde501..5eed22252df 100644

Lines of this file are not shown. View the raw message.

hw/ppc/pnv_sbe.c +3 -3
index 74cee4eea7a..34dc013d47b 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppc405_boards.c +3 -3
index 969cac345ac..53e18906c99 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppc405_uc.c +8 -8
index 8250824a1a2..73af4c54246 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppc440_uc.c +1 -1
index 9da30a1724c..89e3fae08d7 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppc4xx_devs.c +4 -4
index 9ce97775109..f36c519c8bf 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppc4xx_sdram.c +2 -2
index 562bff8d53e..21c8b951f76 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppce500_spin.c +1 -1
index baab74c4ed0..2310f62a91e 100644

Lines of this file are not shown. View the raw message.

hw/ppc/prep_systemio.c +1 -1
index b1f2e130f03..1d366a0f21f 100644

Lines of this file are not shown. View the raw message.

hw/ppc/rs6000_mc.c +1 -1
index 0e5d53b8b69..9a2ace55942 100644

Lines of this file are not shown. View the raw message.

hw/ppc/spapr.c +2 -2
index f3a4b4235d4..bb31dc96a80 100644

Lines of this file are not shown. View the raw message.

hw/ppc/spapr_cpu_core.c +1 -1
index 9e0e0648a72..c1964d3dc8a 100644

Lines of this file are not shown. View the raw message.

hw/ppc/spapr_drc.c +8 -8
index 549b652c206..d2044b4fb52 100644

Lines of this file are not shown. View the raw message.

hw/ppc/spapr_iommu.c +3 -2
index db3a14c1dfd..c2432a0c00c 100644

Lines of this file are not shown. View the raw message.

hw/ppc/spapr_nvdimm.c +1 -1
index 6f875d73b25..4be0ed00b16 100644

Lines of this file are not shown. View the raw message.

hw/ppc/spapr_pci.c +1 -1
index 904227d9aa1..a2f7e731623 100644

Lines of this file are not shown. View the raw message.

hw/ppc/spapr_rng.c +1 -1
index 95def5b1e52..6fec6070370 100644

Lines of this file are not shown. View the raw message.

hw/ppc/spapr_rtc.c +1 -1
index 46fbc789001..1f7d2d8f898 100644

Lines of this file are not shown. View the raw message.

hw/ppc/spapr_tpm_proxy.c +1 -1
index ceaa0acaa18..862eeaa50a3 100644

Lines of this file are not shown. View the raw message.

hw/ppc/spapr_vio.c +3 -3
index 09243c183bb..7759436a4f5 100644

Lines of this file are not shown. View the raw message.

hw/remote/machine.c +1 -1
index fdc6c441bbd..dadc5ce3307 100644

Lines of this file are not shown. View the raw message.

hw/remote/proxy.c +1 -1
index 96d831a579d..d2de48c9e37 100644

Lines of this file are not shown. View the raw message.

hw/remote/remote-obj.c +1 -1
index 2f25f92dcd0..75f8d6df8a1 100644

Lines of this file are not shown. View the raw message.

hw/remote/vfio-user-obj.c +1 -1
index 9e5ff6d87a9..23f339936a2 100644

Lines of this file are not shown. View the raw message.

hw/riscv/microchip_pfsoc.c +3 -2
index ec7e2e42264..a667eb83a42 100644

Lines of this file are not shown. View the raw message.

hw/riscv/opentitan.c +2 -2
index b9e56235d87..a421faa5c17 100644

Lines of this file are not shown. View the raw message.

hw/riscv/riscv-iommu-pci.c +1 -1
index 12451869e41..4e0e3cc5be5 100644

Lines of this file are not shown. View the raw message.

hw/riscv/riscv-iommu-sys.c +1 -1
index 65b24fb07de..be2e3944dc7 100644

Lines of this file are not shown. View the raw message.

hw/riscv/riscv-iommu.c +2 -2
index e7568ca227a..96d6a4d42e2 100644

Lines of this file are not shown. View the raw message.

hw/riscv/riscv_hart.c +1 -1
index a55d1566687..ac6539bd3eb 100644

Lines of this file are not shown. View the raw message.

hw/riscv/shakti_c.c +2 -2
index e2242b97d0c..280e68f2fa3 100644

Lines of this file are not shown. View the raw message.

hw/riscv/sifive_e.c +2 -2
index 73d3b74281c..7baed1958e0 100644

Lines of this file are not shown. View the raw message.

hw/riscv/sifive_u.c +2 -2
index 9a20bcbf7fb..a68f781a323 100644

Lines of this file are not shown. View the raw message.

hw/riscv/spike.c +1 -1
index 74a20016f14..641aae8c019 100644

Lines of this file are not shown. View the raw message.

hw/riscv/virt.c +1 -1
index 241389d72f8..1744ed8c73c 100644

Lines of this file are not shown. View the raw message.

hw/rtc/allwinner-rtc.c +4 -4
index a19e4310bb1..23d0f9fe988 100644

Lines of this file are not shown. View the raw message.

hw/rtc/aspeed_rtc.c +1 -1
index fbdeb0781f3..c4feea23a0b 100644

Lines of this file are not shown. View the raw message.

hw/rtc/ds1338.c +1 -1
index 8dd17fdc07c..5f1ee2e410a 100644

Lines of this file are not shown. View the raw message.

hw/rtc/exynos4210_rtc.c +1 -1
index aa1b3cd1151..624b4f61a85 100644

Lines of this file are not shown. View the raw message.

hw/rtc/goldfish_rtc.c +1 -1
index fa1d9051f4a..9509b323a9a 100644

Lines of this file are not shown. View the raw message.

hw/rtc/ls7a_rtc.c +1 -1
index fce23a3dbe8..10097b2db75 100644

Lines of this file are not shown. View the raw message.

hw/rtc/m41t80.c +1 -1
index 96006956798..c631ec3ea1d 100644

Lines of this file are not shown. View the raw message.

hw/rtc/m48t59-isa.c +2 -2
index 9c3855a3ef1..4a7c0af9f04 100644

Lines of this file are not shown. View the raw message.

hw/rtc/m48t59.c +3 -2
index 3fb2f27d9d1..821472a680e 100644

Lines of this file are not shown. View the raw message.

hw/rtc/mc146818rtc.c +1 -1
index e322fc2ffb9..93b632bdf4a 100644

Lines of this file are not shown. View the raw message.

hw/rtc/pl031.c +1 -1
index ed439bd3ada..e545b9dfd64 100644

Lines of this file are not shown. View the raw message.

hw/rtc/sun4v-rtc.c +1 -1
index ffcc0aa25d9..29e24ef6bed 100644

Lines of this file are not shown. View the raw message.

hw/rtc/xlnx-zynqmp-rtc.c +1 -1
index b596b608c5b..500982a8011 100644

Lines of this file are not shown. View the raw message.

hw/rx/rx-gdbsim.c +3 -3
index 88c8f12c101..d9bfcd6ac3b 100644

Lines of this file are not shown. View the raw message.

hw/rx/rx62n.c +3 -3
index e6bac4f053e..a2a243afa41 100644

Lines of this file are not shown. View the raw message.

hw/s390x/3270-ccw.c +1 -1
index 3a8930dfd15..3f0d384fd80 100644

Lines of this file are not shown. View the raw message.

hw/s390x/ap-bridge.c +2 -2
index ef8fa2b15be..4aa7d5a90db 100644

Lines of this file are not shown. View the raw message.

hw/s390x/ap-device.c +1 -1
index 237d1f19c50..733104403e5 100644

Lines of this file are not shown. View the raw message.

hw/s390x/ccw-device.c +1 -1
index 494faebb5a8..1fcbbe65060 100644

Lines of this file are not shown. View the raw message.

hw/s390x/css-bridge.c +2 -2
index c48d5571b55..9d91e5a5fec 100644

Lines of this file are not shown. View the raw message.

hw/s390x/event-facility.c +2 -2
index 2b0332c20e2..1afe3645730 100644

Lines of this file are not shown. View the raw message.

hw/s390x/ipl.c +1 -1
index ce6f6078d74..716a6b78694 100644

Lines of this file are not shown. View the raw message.

hw/s390x/s390-ccw.c +1 -1
index 909475f0481..10c81a4c893 100644

Lines of this file are not shown. View the raw message.

hw/s390x/s390-pci-bus.c +4 -3
index eead269cc28..3edc3493a46 100644

Lines of this file are not shown. View the raw message.

hw/s390x/s390-skeys-kvm.c +1 -1
index 0215e94388e..f3056d6d25c 100644

Lines of this file are not shown. View the raw message.

hw/s390x/s390-skeys.c +2 -2
index 811d892122b..3775cae5e25 100644

Lines of this file are not shown. View the raw message.

hw/s390x/s390-stattrib-kvm.c +1 -1
index 2a8e31718bf..c2c7b843b2b 100644

Lines of this file are not shown. View the raw message.

hw/s390x/s390-stattrib.c +2 -2
index be07c28c6e5..b7da68f3546 100644

Lines of this file are not shown. View the raw message.

hw/s390x/s390-virtio-ccw.c +2 -2
index d9e683c5b49..74848d34710 100644

Lines of this file are not shown. View the raw message.

hw/s390x/sclp.c +1 -1
index 5945c9b1d82..9718564fa42 100644

Lines of this file are not shown. View the raw message.

hw/s390x/sclpcpu.c +1 -1
index a178a9dd4c8..4b6ebfed469 100644

Lines of this file are not shown. View the raw message.

hw/s390x/sclpquiesce.c +1 -1
index 7bb5aad5208..da4c8f3e369 100644

Lines of this file are not shown. View the raw message.

hw/s390x/tod-kvm.c +1 -1
index 5da9037e0cb..c9b8896b638 100644

Lines of this file are not shown. View the raw message.

hw/s390x/tod-tcg.c +1 -1
index 3b3ef8843ed..0cc96624e1b 100644

Lines of this file are not shown. View the raw message.

hw/s390x/tod.c +1 -1
index 6afbb23fc7e..3f913cc88ab 100644

Lines of this file are not shown. View the raw message.

hw/s390x/vhost-scsi-ccw.c +1 -1
index e6bf0c55bc2..8341b23a95c 100644

Lines of this file are not shown. View the raw message.

hw/s390x/vhost-user-fs-ccw.c +1 -1
index 6a9654d77b4..cc1b8227fc0 100644

Lines of this file are not shown. View the raw message.

hw/s390x/vhost-vsock-ccw.c +1 -1
index 875ccf3485e..552e9e86a4b 100644

Lines of this file are not shown. View the raw message.

hw/s390x/virtio-ccw-9p.c +1 -1
index 287ae2ba767..72bf6ec80c8 100644

Lines of this file are not shown. View the raw message.

hw/s390x/virtio-ccw-balloon.c +1 -1
index 1180efaf6d5..399b40f366e 100644

Lines of this file are not shown. View the raw message.

hw/s390x/virtio-ccw-blk.c +1 -1
index db9d442ffb5..7d8c4a75ced 100644

Lines of this file are not shown. View the raw message.

hw/s390x/virtio-ccw-crypto.c +1 -1
index b693f87c70e..75e714603b1 100644

Lines of this file are not shown. View the raw message.

hw/s390x/virtio-ccw-gpu.c +1 -1
index a6b14c25d97..edb6a47d376 100644

Lines of this file are not shown. View the raw message.

hw/s390x/virtio-ccw-input.c +1 -1
index 6ca10d58eeb..2250d8cf981 100644

Lines of this file are not shown. View the raw message.

hw/s390x/virtio-ccw-mem.c +1 -1
index 90fd89f0156..daa485d189f 100644

Lines of this file are not shown. View the raw message.

hw/s390x/virtio-ccw-net.c +1 -1
index 80a5581baf8..a7d4afbeb9e 100644

Lines of this file are not shown. View the raw message.

hw/s390x/virtio-ccw-rng.c +1 -1
index ccd124ee917..3263287d45a 100644

Lines of this file are not shown. View the raw message.

hw/s390x/virtio-ccw-scsi.c +1 -1
index bfcea3cfe78..06b4c6c4a5a 100644

Lines of this file are not shown. View the raw message.

hw/s390x/virtio-ccw-serial.c +1 -1
index 59743d1e256..0dac590c080 100644

Lines of this file are not shown. View the raw message.

hw/s390x/virtio-ccw.c +2 -2
index 43f3b162c83..ebf8c6716ad 100644

Lines of this file are not shown. View the raw message.

hw/scsi/esp-pci.c +2 -2
index fe4e045a6f5..74e9af0b5d8 100644

Lines of this file are not shown. View the raw message.

hw/scsi/esp.c +2 -2
index ac841dc32e7..4a30c77c8b3 100644

Lines of this file are not shown. View the raw message.

hw/scsi/lsi53c895a.c +2 -2
index d85e384ad63..81da262289c 100644

Lines of this file are not shown. View the raw message.

hw/scsi/megasas.c +1 -1
index 9f3b30e6ce2..cfa5516b96c 100644

Lines of this file are not shown. View the raw message.

hw/scsi/mptsas.c +1 -1
index ba7a7d07707..17f73ce3816 100644

Lines of this file are not shown. View the raw message.

hw/scsi/scsi-bus.c +2 -2
index 7d4546800fa..d7d0ef8f21f 100644

Lines of this file are not shown. View the raw message.

hw/scsi/scsi-disk.c +4 -4
index e7f738b4841..913cd9b2162 100644

Lines of this file are not shown. View the raw message.

hw/scsi/scsi-generic.c +1 -1
index 6566720064b..9e380a2109e 100644

Lines of this file are not shown. View the raw message.

hw/scsi/spapr_vscsi.c +1 -1
index 6962194eaac..20f70fb2729 100644

Lines of this file are not shown. View the raw message.

hw/scsi/vhost-scsi.c +1 -1
index 8039d13fd95..6a7bb5949ad 100644

Lines of this file are not shown. View the raw message.

hw/scsi/vhost-user-scsi.c +1 -1
index adb41b9816b..807a58ecf4c 100644

Lines of this file are not shown. View the raw message.

hw/scsi/virtio-scsi.c +2 -2
index 7d094e18810..8490a4dc711 100644

Lines of this file are not shown. View the raw message.

hw/scsi/vmw_pvscsi.c +1 -1
index f07e377cb88..a8ea57ffad3 100644

Lines of this file are not shown. View the raw message.

hw/sd/allwinner-sdhost.c +9 -6
index ee5c5c78a81..d6489467709 100644

Lines of this file are not shown. View the raw message.

hw/sd/aspeed_sdhci.c +5 -5
index 12cbbae5e77..fc38ad39ce1 100644

Lines of this file are not shown. View the raw message.

hw/sd/bcm2835_sdhost.c +1 -1
index 0724949d0cf..29debdf59e4 100644

Lines of this file are not shown. View the raw message.

hw/sd/cadence_sdhci.c +1 -1
index ad9daa20ed9..d576855a1a8 100644

Lines of this file are not shown. View the raw message.

hw/sd/npcm7xx_sdhci.c +1 -1
index 99028c1a2ca..0233d7bd4d3 100644

Lines of this file are not shown. View the raw message.

hw/sd/omap_mmc.c +1 -1
index bbe7b971bbe..b7648d41cc5 100644

Lines of this file are not shown. View the raw message.

hw/sd/pl181.c +2 -2
index 03d2ae7d21f..b8fc9f86f13 100644

Lines of this file are not shown. View the raw message.

hw/sd/sd.c +4 -4
index e541c57f8c3..c275fdda2d0 100644

Lines of this file are not shown. View the raw message.

hw/sd/sdhci-pci.c +1 -1
index 5268c0dee50..4c2944df01c 100644

Lines of this file are not shown. View the raw message.

hw/sd/sdhci.c +2 -2
index 1f45a77566c..c84f957cd83 100644

Lines of this file are not shown. View the raw message.

hw/sd/ssi-sd.c +1 -1
index c4a58da0abc..6c90a86ab41 100644

Lines of this file are not shown. View the raw message.

hw/sensor/adm1266.c +1 -1
index 25b87a72961..9017ce6116c 100644

Lines of this file are not shown. View the raw message.

hw/sensor/adm1272.c +1 -1
index 3fc1e5d0ad9..0c739aa0d85 100644

Lines of this file are not shown. View the raw message.

hw/sensor/dps310.c +1 -1
index 6966a53248b..bcf615423ae 100644

Lines of this file are not shown. View the raw message.

hw/sensor/emc141x.c +2 -2
index 33c1bd330fd..7b2ce383a12 100644

Lines of this file are not shown. View the raw message.

hw/sensor/isl_pmbus_vr.c +4 -4
index c60282cfe77..e8d29b08ff3 100644

Lines of this file are not shown. View the raw message.

hw/sensor/lsm303dlhc_mag.c +1 -1
index 04471539b59..f9e501da840 100644

Lines of this file are not shown. View the raw message.

hw/sensor/max31785.c +1 -1
index 3577a7c2180..c75581455a2 100644

Lines of this file are not shown. View the raw message.

hw/sensor/max34451.c +1 -1
index 93b53f3db2f..a369d2b5319 100644

Lines of this file are not shown. View the raw message.

hw/sensor/tmp105.c +1 -1
index ef2824f3e1b..f5b61109e36 100644

Lines of this file are not shown. View the raw message.

hw/sensor/tmp421.c +1 -1
index 007f7cd018b..263bfa1bbda 100644

Lines of this file are not shown. View the raw message.

hw/sparc/sun4m.c +14 -14
index a48d3622c5a..228acf7c341 100644

Lines of this file are not shown. View the raw message.

hw/sparc/sun4m_iommu.c +3 -2
index 5a4c1f5e3bd..b9f5c741127 100644

Lines of this file are not shown. View the raw message.

hw/sparc64/niagara.c +1 -1
index 805ba6b1e3d..1ffe92060ad 100644

Lines of this file are not shown. View the raw message.

hw/sparc64/sun4u.c +6 -6
index 8ab5cf0461f..0794c1fbff0 100644

Lines of this file are not shown. View the raw message.

hw/sparc64/sun4u_iommu.c +3 -2
index eba811af0cc..ac47527a6ab 100644

Lines of this file are not shown. View the raw message.

hw/ssi/allwinner-a10-spi.c +1 -1
index 3eb50b44ac5..9aa5f159169 100644

Lines of this file are not shown. View the raw message.

hw/ssi/aspeed_smc.c +18 -18
index faef1a8e5b8..0d38f95c7a3 100644

Lines of this file are not shown. View the raw message.

hw/ssi/bcm2835_spi.c +1 -1
index ebd8809f7cc..bf8ba35e04c 100644

Lines of this file are not shown. View the raw message.

hw/ssi/ibex_spi_host.c +1 -1
index 46c7b633c26..6a29835885e 100644

Lines of this file are not shown. View the raw message.

hw/ssi/imx_spi.c +1 -1
index 2e317879b47..1312f588d2e 100644

Lines of this file are not shown. View the raw message.

hw/ssi/mss-spi.c +1 -1
index 340adcdd3f6..fd7ba7eeb04 100644

Lines of this file are not shown. View the raw message.

hw/ssi/npcm7xx_fiu.c +1 -1
index 21fc4890383..c4f5f9b05c7 100644

Lines of this file are not shown. View the raw message.

hw/ssi/npcm_pspi.c +1 -1
index 41a53235303..a31dcc050e8 100644

Lines of this file are not shown. View the raw message.

hw/ssi/pl022.c +1 -1
index 53c9c225ad8..1dc0bcbcc04 100644

Lines of this file are not shown. View the raw message.

hw/ssi/pnv_spi.c +1 -1
index 15e25bd1be3..9575cb88fd5 100644

Lines of this file are not shown. View the raw message.

hw/ssi/sifive_spi.c +1 -1
index 76f8654f412..3e01fef61cd 100644

Lines of this file are not shown. View the raw message.

hw/ssi/ssi.c +2 -2
index 872c4e8036e..d0de640fe64 100644

Lines of this file are not shown. View the raw message.

hw/ssi/stm32f2xx_spi.c +1 -1
index ea9b74a4094..871d57324d1 100644

Lines of this file are not shown. View the raw message.

hw/ssi/xilinx_spi.c +1 -1
index fd1ff12eb1d..8aca891bbcd 100644

Lines of this file are not shown. View the raw message.

hw/ssi/xilinx_spips.c +3 -3
index 60d092039f1..a79f3b8e494 100644

Lines of this file are not shown. View the raw message.

hw/ssi/xlnx-versal-ospi.c +1 -1
index 9e96c9b69af..56d51ce0e30 100644

Lines of this file are not shown. View the raw message.

hw/timer/a9gtimer.c +1 -1
index 9835c354832..690140f5a6c 100644

Lines of this file are not shown. View the raw message.

hw/timer/allwinner-a10-pit.c +1 -1
index ddaf2128c2d..541cb0217f4 100644

Lines of this file are not shown. View the raw message.

hw/timer/arm_mptimer.c +1 -1
index 803dad1e8a6..7cc5915e9ec 100644

Lines of this file are not shown. View the raw message.

hw/timer/arm_timer.c +1 -1
index 1213b77aa09..56638ff5cdc 100644

Lines of this file are not shown. View the raw message.

hw/timer/armv7m_systick.c +1 -1
index a07febd1d1e..7e4ddcd4058 100644

Lines of this file are not shown. View the raw message.

hw/timer/aspeed_timer.c +6 -6
index ecda49574e2..57db03512f4 100644

Lines of this file are not shown. View the raw message.

hw/timer/avr_timer16.c +1 -1
index 96baf9cf605..012d8290018 100644

Lines of this file are not shown. View the raw message.

hw/timer/bcm2835_systmr.c +1 -1
index 2f0fee33420..7929aaa882a 100644

Lines of this file are not shown. View the raw message.

hw/timer/cadence_ttc.c +1 -1
index 54dbd4c5646..9c7ba168768 100644

Lines of this file are not shown. View the raw message.

hw/timer/cmsdk-apb-dualtimer.c +1 -1
index 2ecd8dfe3c7..34c550a3f98 100644

Lines of this file are not shown. View the raw message.

hw/timer/cmsdk-apb-timer.c +1 -1
index 16d0b2170ef..4095267b4aa 100644

Lines of this file are not shown. View the raw message.

hw/timer/digic-timer.c +1 -1
index 00c32978d29..355138d3547 100644

Lines of this file are not shown. View the raw message.

hw/timer/exynos4210_mct.c +1 -1
index 5c6e139b202..bb0f9c8b9a6 100644

Lines of this file are not shown. View the raw message.

hw/timer/exynos4210_pwm.c +1 -1
index 703d1d2b4ad..69f737a8e6f 100644

Lines of this file are not shown. View the raw message.

hw/timer/grlib_gptimer.c +1 -1
index f0802b6eb6d..0e06fa09e99 100644

Lines of this file are not shown. View the raw message.

hw/timer/hpet.c +1 -1
index 1c8c6c69ef5..dede01ea336 100644

Lines of this file are not shown. View the raw message.

hw/timer/i8254.c +1 -1
index 058fc61ce99..4b25c487f79 100644

Lines of this file are not shown. View the raw message.

hw/timer/i8254_common.c +1 -1
index 29105afcc33..ad091594cde 100644

Lines of this file are not shown. View the raw message.

hw/timer/ibex_timer.c +1 -1
index 3ebc8700973..c7320ef30fa 100644

Lines of this file are not shown. View the raw message.

hw/timer/imx_epit.c +1 -1
index f40ab166973..6123321c352 100644

Lines of this file are not shown. View the raw message.

hw/timer/imx_gpt.c +1 -1
index 11eca9fa4df..9c3d939a4f3 100644

Lines of this file are not shown. View the raw message.

hw/timer/mss-timer.c +1 -1
index 594da64eae6..2ce821178b6 100644

Lines of this file are not shown. View the raw message.

hw/timer/npcm7xx_timer.c +1 -1
index c55ba022353..6a116ad54b7 100644

Lines of this file are not shown. View the raw message.

hw/timer/nrf51_timer.c +1 -1
index 11ad8b575e4..e228fdebc34 100644

Lines of this file are not shown. View the raw message.

hw/timer/pxa2xx_timer.c +2 -2
index 9e4dd0fd9fb..7a94366b0f8 100644

Lines of this file are not shown. View the raw message.

hw/timer/renesas_cmt.c +1 -1
index 93e7f58cc20..cdff7f47f16 100644

Lines of this file are not shown. View the raw message.

hw/timer/renesas_tmr.c +1 -1
index 884349c2cc2..95707f2b8c5 100644

Lines of this file are not shown. View the raw message.

hw/timer/sifive_pwm.c +1 -1
index fc796e9bc30..e85e389f7a5 100644

Lines of this file are not shown. View the raw message.

hw/timer/slavio_timer.c +1 -1
index 65b24e4f06b..3e071fbdb4c 100644

Lines of this file are not shown. View the raw message.

hw/timer/sse-counter.c +1 -1
index f17064abe35..31f77acf61e 100644

Lines of this file are not shown. View the raw message.

hw/timer/sse-timer.c +1 -1
index e106739ea9c..866d5eef8af 100644

Lines of this file are not shown. View the raw message.

hw/timer/stellaris-gptm.c +1 -1
index f28958cefca..d97b2f8309c 100644

Lines of this file are not shown. View the raw message.

hw/timer/stm32f2xx_timer.c +1 -1
index 4707190d6a2..be844e7f5a3 100644

Lines of this file are not shown. View the raw message.

hw/timer/xilinx_timer.c +1 -1
index 6595cf5f517..c096ac6a069 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_crb.c +1 -1
index 6cdeb72df0d..8a3dd32fbeb 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_spapr.c +1 -1
index 9a031e1e75c..1cad9a88ead 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_tis_i2c.c +1 -1
index 504328e3b0d..2c28028b54f 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_tis_isa.c +1 -1
index 876cb02cb51..c0098a26e80 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_tis_sysbus.c +1 -1
index ee0bfe9538e..862556c3a64 100644

Lines of this file are not shown. View the raw message.

hw/tricore/tc27x_soc.c +2 -2
index 81bb16d89b6..f3b84980e52 100644

Lines of this file are not shown. View the raw message.

hw/tricore/triboard.c +1 -1
index f5baa8ccbb3..cb45b01d2d2 100644

Lines of this file are not shown. View the raw message.

hw/tricore/tricore_testdevice.c +1 -1
index d2da74e3846..e8daf952982 100644

Lines of this file are not shown. View the raw message.

hw/ufs/lu.c +1 -1
index 1c3794b2d46..57b307ea560 100644

Lines of this file are not shown. View the raw message.

hw/ufs/ufs.c +2 -2
index 428fe927ad0..24dcdc7ee36 100644

Lines of this file are not shown. View the raw message.

hw/usb/bus.c +2 -2
index f45b82c776d..d8446cf50e6 100644

Lines of this file are not shown. View the raw message.

hw/usb/canokey.c +1 -1
index e2d66179e0b..cbefbb5daf8 100644

Lines of this file are not shown. View the raw message.

hw/usb/ccid-card-emulated.c +1 -1
index b1e330f21d7..c21cefd82d2 100644

Lines of this file are not shown. View the raw message.

hw/usb/ccid-card-passthru.c +1 -1
index bf81485f876..1eea21a7337 100644

Lines of this file are not shown. View the raw message.

hw/usb/chipidea.c +1 -1
index b1c85404d6f..250c2b3bca9 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-audio.c +1 -1
index 40f031252a7..26af709f314 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-hid.c +4 -4
index accdd460e3b..54d064e54e1 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-hub.c +1 -1
index 3880e2aca8e..a19350d9c42 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-mtp.c +1 -1
index 326c92a43d0..cfb9f4d84cc 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-network.c +1 -1
index a87a0ffb955..81cc09dcac9 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-serial.c +3 -3
index aa50a92e26f..bef1382da06 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-smartcard-reader.c +2 -2
index 73deb3ce839..1bb4332238f 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-storage-bot.c +1 -1
index 1e5c5c711f5..df6ab7f656b 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-storage-classic.c +1 -1
index 56ef39da2e6..dabe1563593 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-storage.c +1 -1
index 4f1e8b7f6cb..b13fe345c45 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-uas.c +1 -1
index 44e30013d73..acfc38cb062 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-wacom.c +1 -1
index 7177c17f031..f4b71a21472 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-dwc2.c +1 -1
index e8152719f8e..83864505bb8 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-dwc3.c +1 -1
index 9ce9ba0b046..c2c12e29afc 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-ehci-pci.c +2 -2
index e00316721ac..73122aa7971 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-ehci-sysbus.c +8 -8
index 768c3dd797f..0449f5fa6d6 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-ohci-pci.c +1 -1
index b3684a2ef6b..3c82525a1e4 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-ohci-sysbus.c +1 -1
index 15311949b39..3fc6cce44b0 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-uhci.c +2 -2
index 0561a6d801a..2b1aee1f21f 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-xhci-nec.c +1 -1
index 1df518baf59..9e0fea26f40 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-xhci-pci.c +2 -2
index 49642aab58e..cc5c4e600e0 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-xhci-sysbus.c +1 -1
index ce433223963..244698e5f2b 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-xhci.c +1 -1
index 00d5bc37792..32c665c4c4a 100644

Lines of this file are not shown. View the raw message.

hw/usb/host-libusb.c +1 -1
index c3d642c9d37..b74670ae256 100644

Lines of this file are not shown. View the raw message.

hw/usb/imx-usb-phy.c +1 -1
index f519250567d..c25566d0fae 100644

Lines of this file are not shown. View the raw message.

hw/usb/redirect.c +1 -1
index f3a83b3f4c9..f516ff42a11 100644

Lines of this file are not shown. View the raw message.

hw/usb/u2f-emulated.c +1 -1
index e1dd19ee92b..ace5eceadd9 100644

Lines of this file are not shown. View the raw message.

hw/usb/u2f-passthru.c +1 -1
index 8df5215a1fa..fa8d9cdda89 100644

Lines of this file are not shown. View the raw message.

hw/usb/u2f.c +1 -1
index 1fb59cf404f..b051a999d3a 100644

Lines of this file are not shown. View the raw message.

hw/usb/xlnx-usb-subsystem.c +1 -1
index d8deeb6ced5..98967ef49f1 100644

Lines of this file are not shown. View the raw message.

hw/usb/xlnx-versal-usb2-ctrl-regs.c +1 -1
index 66c793a6021..4114672d4f4 100644

Lines of this file are not shown. View the raw message.

hw/vfio/amd-xgbe.c +1 -1
index 96bd608b8dd..f3bc7d98c79 100644

Lines of this file are not shown. View the raw message.

hw/vfio/ap.c +1 -1
index 30b08ad375d..80e08c02063 100644

Lines of this file are not shown. View the raw message.

hw/vfio/calxeda-xgmac.c +1 -1
index 87c382e7361..c1404889e65 100644

Lines of this file are not shown. View the raw message.

hw/vfio/ccw.c +1 -1
index 67bc137f9be..8583b8cbaa8 100644

Lines of this file are not shown. View the raw message.

hw/vfio/container.c +2 -2
index 4ebb5268088..faeaf8afaba 100644

Lines of this file are not shown. View the raw message.

hw/vfio/igd.c +2 -1
index 0740a5dd8cc..ebeceaadcd9 100644

Lines of this file are not shown. View the raw message.

hw/vfio/iommufd.c +2 -2
index 3490a8f1eb8..902b69997ec 100644

Lines of this file are not shown. View the raw message.

hw/vfio/pci.c +3 -2
index 9a55e7b7732..5f3d7d044f3 100644

Lines of this file are not shown. View the raw message.

hw/vfio/platform.c +1 -1
index 1070a2113a1..d3f6afd2dac 100644

Lines of this file are not shown. View the raw message.

hw/vfio/spapr.c +1 -1
index ad4c499eafe..0df9add322f 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vdpa-dev-pci.c +2 -1
index 787926801a1..30681121465 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vdpa-dev.c +1 -1
index a7e73b1c992..dd8837ce4e9 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-scsi-pci.c +1 -1
index 3778f6131ef..7399acef8e2 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-base.c +1 -1
index 2bc3423326e..77143320a23 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-blk-pci.c +1 -1
index 1767ef2c9c9..904369f5a3d 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-device-pci.c +2 -1
index efaf55d3dd4..f10bac874e7 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-device.c +1 -1
index 86eba138b4e..3939bdf7552 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-fs-pci.c +1 -1
index 116eaab9071..1490c118bca 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-fs.c +1 -1
index 3f00d79ed01..315931dbefa 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-gpio-pci.c +1 -1
index b3028a24a19..9b165b54f8f 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-gpio.c +1 -1
index 4a08814904d..a7fd49b10a3 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-i2c-pci.c +1 -1
index 00ac10941fa..692cd66fde6 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-i2c.c +1 -1
index 1c7cde503c3..ae007fe97d9 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-input.c +1 -1
index 917405329f2..5cfc5bbb564 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-rng-pci.c +1 -1
index a4e690148d6..9f45fc6f355 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-rng.c +1 -1
index 5aa432e5e1a..61dadcda054 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-scmi-pci.c +1 -1
index 7f53af7fced..0ab56a50bb3 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-scmi.c +1 -1
index 410a936ca74..5a341b5381c 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-scsi-pci.c +1 -1
index 4a4128d961b..994e51a37bb 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-snd-pci.c +1 -1
index 0cb86b7d85d..f5015fb6c4e 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-snd.c +1 -1
index 8610370af80..bdbd0956dc2 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-vsock-pci.c +2 -1
index f730a05e781..adb877b6e05 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-vsock.c +1 -1
index 293273080b4..63d572ce3da 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-vsock-common.c +1 -1
index 9ac587d20c1..4b4fbb45ccd 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-vsock-pci.c +1 -1
index 6c618ee9083..0022a713d43 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-vsock.c +1 -1
index 940b30fa27c..b73dc723c29 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-9p-pci.c +1 -1
index aa1dce8f284..594742ff656 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-balloon-pci.c +1 -1
index db7e1cb4753..96e88b6b86d 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-balloon.c +1 -1
index ad05768dedc..3829cf980f0 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-blk-pci.c +1 -1
index fc06cec6566..fd33bbd7e83 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-bus.c +1 -1
index 896feb37a1c..1a963a71e9a 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-crypto-pci.c +1 -1
index 8699481375d..868abc03a9e 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-crypto.c +1 -1
index a1b3c90618a..e24d6914b63 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-input-pci.c +4 -3
index 9e3c1067776..3be5358b4cd 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-iommu-pci.c +1 -1
index 97e03ce803b..8123c6f83a3 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-iommu.c +2 -2
index f41104a9523..cf800881538 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-mem-pci.c +1 -1
index 6cc5f0fd3b8..f592eb1a784 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-mem.c +3 -2
index b1a003736b0..9fc05a11da0 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-mmio.c +2 -2
index 029817139bd..532c67107ba 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-net-pci.c +1 -1
index e18953ad674..8cf9788bc3e 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-nsm-pci.c +1 -1
index dca797315a4..ec243963e1e 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-nsm.c +1 -1
index 098e1aeac6e..492279e974d 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-pci.c +4 -4
index c773a9130c7..acb49a6a330 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-pmem-pci.c +1 -1
index cfe7f3b67ca..babd91c21f0 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-pmem.c +1 -1
index adb3268bd46..3416ea1827c 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-rng-pci.c +1 -1
index a94ff767b2d..39b600356ea 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-rng.c +1 -1
index a515fc5cd9b..dcb3c71d6ae 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-scsi-pci.c +1 -1
index d44fd2fffbe..af877592070 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-serial-pci.c +1 -1
index b5b77eb2661..3f212ffe52f 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio.c +1 -1
index 85110bce374..a8756ed32cb 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/allwinner-wdt.c +3 -3
index 1bfec41ff8b..71e5eaa0833 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/cmsdk-apb-watchdog.c +1 -1
index a52121dc44f..6a8d07ca569 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/sbsa_gwdt.c +1 -1
index 65ac42a1870..92bca90d65b 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/spapr_watchdog.c +1 -1
index 2bb1d3c5325..5b3f50de3a1 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/wdt_aspeed.c +6 -6
index d94b83c1093..318894c12b2 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/wdt_diag288.c +1 -1
index 39f2894f216..1275353e8e5 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/wdt_i6300esb.c +1 -1
index aa1d0866c89..1536e1fe032 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/wdt_ib700.c +1 -1
index 23519e058e3..51a26a4cbbc 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/wdt_imx2.c +1 -1
index 18e40bd4664..10151a15d08 100644

Lines of this file are not shown. View the raw message.

hw/xen/xen-bus.c +2 -2
index 8260f1e1bbf..435e03a1e72 100644

Lines of this file are not shown. View the raw message.

hw/xen/xen-legacy-backend.c +2 -2
index 118c571b3a7..938dd8fb28f 100644

Lines of this file are not shown. View the raw message.

hw/xen/xen-pvh-common.c +1 -1
index 9c21fa858d3..8d6c3813f6c 100644

Lines of this file are not shown. View the raw message.

hw/xen/xen_pt.c +1 -1
index e2bd4c7d411..d9f1ddd25c6 100644

Lines of this file are not shown. View the raw message.

hw/xen/xen_pt_graphics.c +1 -1
index 6c2e3f4840f..264851ece36 100644

Lines of this file are not shown. View the raw message.

hw/xtensa/xtfpga.c +8 -8
index 3f3677f1c9a..7c5132e31ec 100644

Lines of this file are not shown. View the raw message.

io/channel-buffer.c +1 -1
index 8096180f855..189fa67ac21 100644

Lines of this file are not shown. View the raw message.

io/channel-command.c +1 -1
index 6d5f64e146d..8966dd3a2ba 100644

Lines of this file are not shown. View the raw message.

io/channel-file.c +1 -1
index 2ea8d083600..ca3f180cc2f 100644

Lines of this file are not shown. View the raw message.

io/channel-null.c +1 -1
index ef995863483..49f1c80a54e 100644

Lines of this file are not shown. View the raw message.

io/channel-socket.c +1 -1
index 608bcf066ec..088b49ffdb0 100644

Lines of this file are not shown. View the raw message.

io/channel-tls.c +1 -1
index aab630e5ae3..455c530dd0e 100644

Lines of this file are not shown. View the raw message.

io/channel-websock.c +1 -1
index 55192b770a3..08ddb274f0c 100644

Lines of this file are not shown. View the raw message.

iothread.c +1 -1
index 589bcd35523..8810376dcea 100644

Lines of this file are not shown. View the raw message.

migration/channel-block.c +1 -1
index fff8d870942..dd99c3c7a16 100644

Lines of this file are not shown. View the raw message.

migration/migration.c +1 -1
index 396928513ab..0382d4c5ea8 100644

Lines of this file are not shown. View the raw message.

migration/rdma.c +1 -1
index 855753c6719..2944f2c9db8 100644

Lines of this file are not shown. View the raw message.

net/can/can_core.c +1 -1
index 0115d787941..e16e15c036e 100644

Lines of this file are not shown. View the raw message.

net/can/can_host.c +1 -1
index b2fe553f91a..ca5fcf1ea12 100644

Lines of this file are not shown. View the raw message.

net/can/can_socketcan.c +1 -1
index c1a1ad05636..8a57ae07178 100644

Lines of this file are not shown. View the raw message.

net/colo-compare.c +1 -1
index 165610bfe24..7e5f6e09dba 100644

Lines of this file are not shown. View the raw message.

net/dump.c +1 -1
index 140215aa105..581234b7751 100644

Lines of this file are not shown. View the raw message.

net/filter-buffer.c +1 -1
index 283dc9cbe6b..a36be31dc8e 100644

Lines of this file are not shown. View the raw message.

net/filter-mirror.c +2 -2
index 34a63b5dbbf..27734c91a71 100644

Lines of this file are not shown. View the raw message.

net/filter-replay.c +1 -1
index 81b71afe357..451663c5a56 100644

Lines of this file are not shown. View the raw message.

net/filter-rewriter.c +1 -1
index c18c4c20190..cdf85aa5eed 100644

Lines of this file are not shown. View the raw message.

net/filter.c +1 -1
index 33359087711..03b3c793f76 100644

Lines of this file are not shown. View the raw message.

qom/object.c +2 -2
index dfd59502d11..06d7367032e 100644

Lines of this file are not shown. View the raw message.

scsi/pr-manager-helper.c +1 -1
index 3be52a98d58..6b86f01b01f 100644

Lines of this file are not shown. View the raw message.

system/qtest.c +1 -1
index 12152efbcd3..7a8b9ff2a76 100644

Lines of this file are not shown. View the raw message.

target/alpha/cpu.c +1 -1
index e1b898e5755..31acc9910c5 100644

Lines of this file are not shown. View the raw message.

target/arm/cpu.c +2 -2
index 32dc7c1e692..fbcd9274843 100644

Lines of this file are not shown. View the raw message.

target/arm/cpu64.c +2 -2
index 8188ede5cc8..1184c92b4c0 100644

Lines of this file are not shown. View the raw message.

target/arm/tcg/cpu-v7m.c +1 -1
index 03acdf83e00..eeee68404c4 100644

Lines of this file are not shown. View the raw message.

target/avr/cpu.c +1 -1
index 8a126ff3222..7747781de31 100644

Lines of this file are not shown. View the raw message.

target/hexagon/cpu.c +1 -1
index 0b7fc98f6ce..a565f8c46b8 100644

Lines of this file are not shown. View the raw message.

target/hppa/cpu.c +1 -1
index 5655677431c..623199d57b5 100644

Lines of this file are not shown. View the raw message.

target/i386/confidential-guest.c +1 -1
index b3727845adc..cfb71bf0349 100644

Lines of this file are not shown. View the raw message.

target/i386/cpu.c +4 -4
index 4b2da45366b..38626b66f50 100644

Lines of this file are not shown. View the raw message.

target/i386/host-cpu.c +1 -1
index 3e4e85e729c..96c2cf1d94a 100644

Lines of this file are not shown. View the raw message.

target/i386/hvf/hvf-cpu.c +1 -1
index 560b5a05940..dfde53201f4 100644

Lines of this file are not shown. View the raw message.

target/i386/kvm/kvm-cpu.c +1 -1
index 1bda403f88b..520fadb58df 100644

Lines of this file are not shown. View the raw message.

target/i386/nvmm/nvmm-accel-ops.c +1 -1
index e7b56662fee..eb337b64320 100644

Lines of this file are not shown. View the raw message.

target/i386/nvmm/nvmm-all.c +1 -1
index 04e5f7e6371..9d7987d9381 100644

Lines of this file are not shown. View the raw message.

target/i386/sev.c +3 -3
index 0e1dbb6959e..f44cc1d2153 100644

Lines of this file are not shown. View the raw message.

target/i386/tcg/tcg-cpu.c +1 -1
index 14ee038079a..afa19b4d478 100644

Lines of this file are not shown. View the raw message.

target/i386/whpx/whpx-accel-ops.c +1 -1
index ab2e014c9ea..6ca442ba345 100644

Lines of this file are not shown. View the raw message.

target/i386/whpx/whpx-all.c +1 -1
index 41fb8c5a4e5..d824e2824b0 100644

Lines of this file are not shown. View the raw message.

target/i386/whpx/whpx-apic.c +1 -1
index 4245ab68a27..ada72854e3e 100644

Lines of this file are not shown. View the raw message.

target/loongarch/cpu.c +3 -3
index e91f4a5239c..c9d1b8337ac 100644

Lines of this file are not shown. View the raw message.

target/m68k/cpu.c +3 -3
index 41dfdf58045..361acaad063 100644

Lines of this file are not shown. View the raw message.

target/microblaze/cpu.c +1 -1
index f114789abd8..65ce46f9433 100644

Lines of this file are not shown. View the raw message.

target/mips/cpu.c +2 -2
index 47cd7cfdcef..9a45adb3ec5 100644

Lines of this file are not shown. View the raw message.

target/openrisc/cpu.c +1 -1
index b7bab0d7abf..0507edd759d 100644

Lines of this file are not shown. View the raw message.

target/ppc/cpu-models.c +1 -1
index ece34817818..ea86ea202ab 100644

Lines of this file are not shown. View the raw message.

target/ppc/cpu_init.c +45 -45

90 lines not on this page · raw message

target/ppc/kvm.c +2 -2
index 966c2c65723..6e10aae4ee3 100644

Lines of this file are not shown. View the raw message.

target/riscv/cpu.c +2 -2
index 9fe1b23a297..fbed389a81a 100644

Lines of this file are not shown. View the raw message.

target/riscv/kvm/kvm-cpu.c +1 -1
index 23ce7793594..b011693f397 100644

Lines of this file are not shown. View the raw message.

target/riscv/tcg/tcg-cpu.c +1 -1
index 0a137281de1..5e88e7beb02 100644

Lines of this file are not shown. View the raw message.

target/rx/cpu.c +1 -1
index 8c50c7a1bc8..a050b819354 100644

Lines of this file are not shown. View the raw message.

target/s390x/cpu.c +1 -1
index 97d41c23de7..5d51ce19e93 100644

Lines of this file are not shown. View the raw message.

target/s390x/cpu_models.c +5 -5
index 93a05e43d79..972a99236f0 100644

Lines of this file are not shown. View the raw message.

target/s390x/kvm/pv.c +1 -1
index b191a4a68a2..fe0a72c416e 100644

Lines of this file are not shown. View the raw message.

target/sh4/cpu.c +4 -4
index 24a22724c61..4c50b5d2912 100644

Lines of this file are not shown. View the raw message.

target/sparc/cpu.c +2 -2
index fbd38ec334a..f46600249bd 100644

Lines of this file are not shown. View the raw message.

target/tricore/cpu.c +1 -1
index 95202fadbfd..89e41a31586 100644

Lines of this file are not shown. View the raw message.

target/xtensa/cpu.c +1 -1
index 4eb699d1f45..9e1ed75ba7d 100644

Lines of this file are not shown. View the raw message.

target/xtensa/helper.c +1 -1
index f64699b116d..75bb00ee246 100644

Lines of this file are not shown. View the raw message.

tests/unit/check-qom-interface.c +1 -1
index c99be97ed8b..4e1c4d67297 100644

Lines of this file are not shown. View the raw message.

tests/unit/check-qom-proplist.c +3 -3
index 13d632cfed4..f1de1618f60 100644

Lines of this file are not shown. View the raw message.

tests/unit/test-qdev-global-props.c +4 -4
index 6f6a306788f..33062762a67 100644

Lines of this file are not shown. View the raw message.

tests/unit/test-smp-parse.c +13 -10
index f9bccb56abc..326045ecbb3 100644

Lines of this file are not shown. View the raw message.

ui/console-vc.c +3 -3
index fe20579832a..8d27cdb4db9 100644

Lines of this file are not shown. View the raw message.

ui/console.c +2 -2
index 914ed2cc76b..3291c4b88f2 100644

Lines of this file are not shown. View the raw message.

ui/dbus-chardev.c +1 -1
index bf061cbc930..d05dddaf81b 100644

Lines of this file are not shown. View the raw message.

ui/dbus.c +2 -2
index 2eb03aa2471..0c0f86eaa6f 100644

Lines of this file are not shown. View the raw message.

ui/gtk.c +1 -1
index c0237431489..474318201da 100644

Lines of this file are not shown. View the raw message.

ui/input-barrier.c +1 -1
index c86e5d67eb3..9dce31ea9a7 100644

Lines of this file are not shown. View the raw message.

ui/input-linux.c +1 -1
index 381148ea994..b940198bfe2 100644

Lines of this file are not shown. View the raw message.

ui/spice-app.c +1 -1
index 91e258a621d..24f78f305c4 100644

Lines of this file are not shown. View the raw message.

ui/vdagent.c +1 -1
index 724eff972f9..04513ded298 100644

Lines of this file are not shown. View the raw message.

util/main-loop.c +1 -1
index acad8c2e6cd..11913a03e79 100644

Lines of this file are not shown. View the raw message.

util/thread-context.c +1 -1
index 2bc7883b9e0..95228a3d4f6 100644

Lines of this file are not shown. View the raw message.

hw/display/apple-gfx-mmio.m +1 -1
index b2e0e7a30fa..b0b6e2993eb 100644

Lines of this file are not shown. View the raw message.

hw/display/apple-gfx-pci.m +1 -1
index b939bb9b233..2f0d24f7fee 100644

Lines of this file are not shown. View the raw message.

rust/qemu-api/src/qom.rs +1 -1
index f3d43e066ef..b39dba829d4 100644

Lines of this file are not shown. View the raw message.

scripts/codeconverter/codeconverter/qom_type_info.py +2 -1
index f92c3a4730e..22a25560760 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.47.1

Part of the diff is not shown here. View the raw message.

#12 lore raw

PATCH v3 10/19 qom: Constify TypeInfo::class_data

In reply to Philippe Mathieu-Daudé

All callers now correctly expect a const class data.

---
 include/qom/object.h                                | 2 +-
 hw/arm/armsse.c                                     | 2 +-
 hw/block/m25p80.c                                   | 2 +-
 hw/isa/vt82c686.c                                   | 4 ++--
 hw/net/e1000.c                                      | 2 +-
 hw/ppc/spapr_cpu_core.c                             | 2 +-
 hw/scsi/megasas.c                                   | 2 +-
 hw/sensor/tmp421.c                                  | 2 +-
 hw/virtio/virtio-pci.c                              | 4 ++--
 qom/object.c                                        | 2 +-
 target/arm/cpu.c                                    | 2 +-
 target/arm/cpu64.c                                  | 2 +-
 target/mips/cpu.c                                   | 2 +-
 target/s390x/cpu_models.c                           | 4 ++--
 target/sparc/cpu.c                                  | 2 +-
 target/xtensa/helper.c                              | 2 +-
 rust/qemu-api/src/qom.rs                            | 2 +-
 scripts/codeconverter/codeconverter/test_regexps.py | 2 +-
 18 files changed, 21 insertions(+), 21 deletions(-)
include/qom/object.h +1 -1
index 2fb86f00a68..42b75d10a43 100644
@@ -488,7 +488,7 @@ struct TypeInfo
 
     void (*class_init)(ObjectClass *klass, const void *data);
     void (*class_base_init)(ObjectClass *klass, const void *data);
-    void *class_data;
+    const void *class_data;
 
     InterfaceInfo *interfaces;
 };
hw/arm/armsse.c +1 -1
index d65a46b8d8d..9403b65ddb5 100644
@@ -1730,7 +1730,7 @@ static void armsse_register_types(void)
             .name = armsse_variants[i].name,
             .parent = TYPE_ARM_SSE,
             .class_init = armsse_class_init,
-            .class_data = (void *)&armsse_variants[i],
+            .class_data = &armsse_variants[i],
         };
         type_register_static(&ti);
     }
hw/block/m25p80.c +1 -1
index 236fa798c34..eee7bedd6b3 100644
@@ -1891,7 +1891,7 @@ static void m25p80_register_types(void)
             .name       = known_devices[i].part_name,
             .parent     = TYPE_M25P80,
             .class_init = m25p80_class_init,
-            .class_data = (void *)&known_devices[i],
+            .class_data = &known_devices[i],
         };
         type_register_static(&ti);
     }
hw/isa/vt82c686.c +2 -2
index 80366aaf647..c62afc907b2 100644
@@ -259,7 +259,7 @@ static const TypeInfo vt82c686b_pm_info = {
     .name          = TYPE_VT82C686B_PM,
     .parent        = TYPE_VIA_PM,
     .class_init    = via_pm_class_init,
-    .class_data    = (void *)&vt82c686b_pm_init_info,
+    .class_data    = &vt82c686b_pm_init_info,
 };
 
 static const ViaPMInitInfo vt8231_pm_init_info = {
@@ -272,7 +272,7 @@ static const TypeInfo vt8231_pm_info = {
     .name          = TYPE_VT8231_PM,
     .parent        = TYPE_VIA_PM,
     .class_init    = via_pm_class_init,
-    .class_data    = (void *)&vt8231_pm_init_info,
+    .class_data    = &vt8231_pm_init_info,
 };
 
 
hw/net/e1000.c +1 -1
index d49730f4ad4..13814e84d18 100644
@@ -1770,7 +1770,7 @@ static void e1000_register_types(void)
 
         type_info.name = info->name;
         type_info.parent = TYPE_E1000_BASE;
-        type_info.class_data = (void *)info;
+        type_info.class_data = info;
         type_info.class_init = e1000_class_init;
 
         type_register_static(&type_info);
hw/ppc/spapr_cpu_core.c +1 -1
index c1964d3dc8a..e1929a546a3 100644
@@ -380,7 +380,7 @@ static void spapr_cpu_core_class_init(ObjectClass *oc, const void *data)
 #define DEFINE_SPAPR_CPU_CORE_TYPE(cpu_model) \
     {                                                   \
         .parent = TYPE_SPAPR_CPU_CORE,                  \
-        .class_data = (void *) POWERPC_CPU_TYPE_NAME(cpu_model), \
+        .class_data = POWERPC_CPU_TYPE_NAME(cpu_model), \
         .class_init = spapr_cpu_core_class_init,        \
         .name = SPAPR_CPU_CORE_TYPE_NAME(cpu_model),    \
     }
hw/scsi/megasas.c +1 -1
index cfa5516b96c..6104d4202aa 100644
@@ -2573,7 +2573,7 @@ static void megasas_register_types(void)
 
         type_info.name = info->name;
         type_info.parent = TYPE_MEGASAS_BASE;
-        type_info.class_data = (void *)info;
+        type_info.class_data = info;
         type_info.class_init = megasas_class_init;
         type_info.interfaces = info->interfaces;
 
hw/sensor/tmp421.c +1 -1
index 263bfa1bbda..3421c440869 100644
@@ -382,7 +382,7 @@ static void tmp421_register_types(void)
             .name       = devices[i].name,
             .parent     = TYPE_TMP421,
             .class_init = tmp421_class_init,
-            .class_data = (void *) &devices[i],
+            .class_data = &devices[i],
         };
         type_register_static(&ti);
     }
hw/virtio/virtio-pci.c +2 -2
index acb49a6a330..48082445bc6 100644
@@ -2500,13 +2500,13 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
 
         generic_type_info.parent = base_name;
         generic_type_info.class_init = virtio_pci_base_class_init;
-        generic_type_info.class_data = (void *)t;
+        generic_type_info.class_data = t;
 
         assert(!t->non_transitional_name);
         assert(!t->transitional_name);
     } else {
         base_type_info.class_init = virtio_pci_base_class_init;
-        base_type_info.class_data = (void *)t;
+        base_type_info.class_data = t;
     }
 
     type_register_static(&base_type_info);
qom/object.c +1 -1
index 06d7367032e..425ee2f0ee8 100644
@@ -57,7 +57,7 @@ struct TypeImpl
     void (*class_init)(ObjectClass *klass, const void *data);
     void (*class_base_init)(ObjectClass *klass, const void *data);
 
-    void *class_data;
+    const void *class_data;
 
     void (*instance_init)(Object *obj);
     void (*instance_post_init)(Object *obj);
target/arm/cpu.c +1 -1
index fbcd9274843..edfae8be40a 100644
@@ -2769,7 +2769,7 @@ void arm_cpu_register(const ARMCPUInfo *info)
         .parent = TYPE_ARM_CPU,
         .instance_init = arm_cpu_instance_init,
         .class_init = info->class_init ?: cpu_register_class_init,
-        .class_data = (void *)info,
+        .class_data = info,
     };
 
     type_info.name = g_strdup_printf("%s-" TYPE_ARM_CPU, info->name);
target/arm/cpu64.c +1 -1
index 1184c92b4c0..eaf5705cdc2 100644
@@ -855,7 +855,7 @@ void aarch64_cpu_register(const ARMCPUInfo *info)
         .parent = TYPE_AARCH64_CPU,
         .instance_init = aarch64_cpu_instance_init,
         .class_init = info->class_init ?: cpu_register_class_init,
-        .class_data = (void *)info,
+        .class_data = info,
     };
 
     type_info.name = g_strdup_printf("%s-" TYPE_ARM_CPU, info->name);
target/mips/cpu.c +1 -1
index 9a45adb3ec5..a7abaf9b286 100644
@@ -619,7 +619,7 @@ static void mips_register_cpudef_type(const struct mips_def_t *def)
         .name = typename,
         .parent = TYPE_MIPS_CPU,
         .class_init = mips_cpu_cpudef_class_init,
-        .class_data = (void *)def,
+        .class_data = def,
     };
 
     type_register_static(&ti);
target/s390x/cpu_models.c +2 -2
index 972a99236f0..4afef45c72f 100644
@@ -1073,7 +1073,7 @@ static void register_types(void)
             .instance_init = s390_cpu_model_initfn,
             .instance_finalize = s390_cpu_model_finalize,
             .class_init = s390_base_cpu_model_class_init,
-            .class_data = (void *) &s390_cpu_defs[i],
+            .class_data = &s390_cpu_defs[i],
         };
         char *name = s390_cpu_type_name(s390_cpu_defs[i].name);
         TypeInfo ti = {
@@ -1082,7 +1082,7 @@ static void register_types(void)
             .instance_init = s390_cpu_model_initfn,
             .instance_finalize = s390_cpu_model_finalize,
             .class_init = s390_cpu_model_class_init,
-            .class_data = (void *) &s390_cpu_defs[i],
+            .class_data = &s390_cpu_defs[i],
         };
 
         type_register_static(&ti_base);
target/sparc/cpu.c +1 -1
index f46600249bd..d140fb948e3 100644
@@ -1074,7 +1074,7 @@ static void sparc_register_cpudef_type(const struct sparc_def_t *def)
         .name = typename,
         .parent = TYPE_SPARC_CPU,
         .class_init = sparc_cpu_cpudef_class_init,
-        .class_data = (void *)def,
+        .class_data = def,
     };
 
     type_register_static(&ti);
target/xtensa/helper.c +1 -1
index 75bb00ee246..1ca6f37562c 100644
@@ -191,7 +191,7 @@ void xtensa_register_core(XtensaConfigList *node)
     TypeInfo type = {
         .parent = TYPE_XTENSA_CPU,
         .class_init = xtensa_core_class_init,
-        .class_data = (void *)node->config,
+        .class_data = node->config,
     };
 
     xtensa_finalize_config(node->config);
rust/qemu-api/src/qom.rs +1 -1
index b39dba829d4..b007f089153 100644
@@ -496,7 +496,7 @@ pub trait ObjectImpl: ObjectType + ClassInitImpl<Self::Class> {
         class_size: core::mem::size_of::<Self::Class>(),
         class_init: Some(rust_class_init::<Self>),
         class_base_init: Self::CLASS_BASE_INIT,
-        class_data: core::ptr::null_mut(),
+        class_data: core::ptr::null(),
         interfaces: core::ptr::null_mut(),
     };
 
scripts/codeconverter/codeconverter/test_regexps.py +1 -1
index 72113927960..08857c5008d 100644
@@ -70,7 +70,7 @@ def fullmatch(regexp, s):
             .name = armsse_variants[i].name,
             .parent = TYPE_ARMSSE,
             .class_init = armsse_class_init,
-            .class_data = (void *)&armsse_variants[i],
+            .class_data = &armsse_variants[i],
         };''', re.MULTILINE)
 
     print(RE_ARRAY_ITEM)
Signature · 1 line
2.47.1
#13 lore raw

PATCH v3 11/19 qom: Constify InterfaceInfo[] interfaces

In reply to Philippe Mathieu-Daudé

Mechanical change using gsed.

---
 include/hw/virtio/virtio-pci.h                      |  2 +-
 include/qom/object.h                                |  4 ++--
 authz/list.c                                        |  2 +-
 authz/listfile.c                                    |  2 +-
 authz/pamacct.c                                     |  2 +-
 authz/simple.c                                      |  2 +-
 backends/cryptodev.c                                |  2 +-
 backends/dbus-vmstate.c                             |  2 +-
 backends/hostmem.c                                  |  2 +-
 backends/iommufd.c                                  |  2 +-
 backends/rng.c                                      |  2 +-
 block/throttle-groups.c                             |  2 +-
 crypto/secret_common.c                              |  2 +-
 crypto/tls-cipher-suites.c                          |  2 +-
 crypto/tlscredsanon.c                               |  2 +-
 crypto/tlscredspsk.c                                |  2 +-
 crypto/tlscredsx509.c                               |  2 +-
 event-loop-base.c                                   |  2 +-
 hw/acpi/erst.c                                      |  2 +-
 hw/acpi/generic_event_device.c                      |  2 +-
 hw/acpi/piix4.c                                     |  2 +-
 hw/arm/armsse.c                                     |  2 +-
 hw/arm/mps2-tz.c                                    |  2 +-
 hw/arm/virt.c                                       |  2 +-
 hw/audio/ac97.c                                     |  2 +-
 hw/audio/es1370.c                                   |  2 +-
 hw/audio/intel-hda.c                                |  2 +-
 hw/audio/via-ac97.c                                 |  4 ++--
 hw/block/fdc-isa.c                                  |  2 +-
 hw/char/diva-gsp.c                                  |  4 ++--
 hw/char/parallel.c                                  |  2 +-
 hw/char/serial-isa.c                                |  2 +-
 hw/char/serial-pci-multi.c                          |  4 ++--
 hw/char/serial-pci.c                                |  2 +-
 hw/char/virtio-serial-bus.c                         |  2 +-
 hw/core/bus.c                                       |  2 +-
 hw/core/qdev.c                                      |  2 +-
 hw/cxl/switch-mailbox-cci.c                         |  2 +-
 hw/display/ati.c                                    |  2 +-
 hw/display/bochs-display.c                          |  2 +-
 hw/display/cirrus_vga.c                             |  2 +-
 hw/display/qxl.c                                    |  2 +-
 hw/display/sm501.c                                  |  2 +-
 hw/display/vga-pci.c                                |  2 +-
 hw/display/virtio-gpu-pci-rutabaga.c                |  2 +-
 hw/display/vmware_vga.c                             |  2 +-
 hw/dma/i8257.c                                      |  2 +-
 hw/dma/xilinx_axidma.c                              |  4 ++--
 hw/dma/xlnx_csu_dma.c                               |  2 +-
 hw/hppa/machine.c                                   |  4 ++--
 hw/i2c/smbus_ich9.c                                 |  2 +-
 hw/i386/amd_iommu.c                                 |  2 +-
 hw/i386/microvm.c                                   |  2 +-
 hw/i386/pc.c                                        |  2 +-
 hw/i386/sgx-epc.c                                   |  2 +-
 hw/i386/x86.c                                       |  2 +-
 hw/i386/xen/xen_platform.c                          |  2 +-
 hw/i386/xen/xen_pvdevice.c                          |  2 +-
 hw/ide/ich.c                                        |  2 +-
 hw/ide/pci.c                                        |  2 +-
 hw/input/pckbd.c                                    |  2 +-
 hw/intc/arm_gic_common.c                            |  2 +-
 hw/intc/arm_gicv3_common.c                          |  2 +-
 hw/intc/goldfish_pic.c                              |  2 +-
 hw/intc/i8259_common.c                              |  2 +-
 hw/intc/ioapic_common.c                             |  2 +-
 hw/intc/m68k_irqc.c                                 |  2 +-
 hw/intc/pnv_xive.c                                  |  2 +-
 hw/intc/pnv_xive2.c                                 |  2 +-
 hw/intc/slavio_intctl.c                             |  2 +-
 hw/intc/spapr_xive.c                                |  2 +-
 hw/intc/xics_spapr.c                                |  2 +-
 hw/intc/xive.c                                      |  2 +-
 hw/intc/xive2.c                                     |  2 +-
 hw/ipack/tpci200.c                                  |  2 +-
 hw/ipmi/isa_ipmi_bt.c                               |  2 +-
 hw/ipmi/isa_ipmi_kcs.c                              |  2 +-
 hw/ipmi/pci_ipmi_bt.c                               |  2 +-
 hw/ipmi/pci_ipmi_kcs.c                              |  2 +-
 hw/ipmi/smbus_ipmi.c                                |  2 +-
 hw/isa/i82378.c                                     |  2 +-
 hw/isa/lpc_ich9.c                                   |  2 +-
 hw/isa/piix.c                                       |  2 +-
 hw/isa/vt82c686.c                                   |  4 ++--
 hw/loongarch/virt.c                                 |  2 +-
 hw/m68k/q800-glue.c                                 |  2 +-
 hw/mem/cxl_type3.c                                  |  2 +-
 hw/mem/pc-dimm.c                                    |  2 +-
 hw/misc/applesmc.c                                  |  2 +-
 hw/misc/edu.c                                       |  2 +-
 hw/misc/ivshmem-pci.c                               |  2 +-
 hw/misc/macio/gpio.c                                |  2 +-
 hw/misc/macio/macio.c                               |  2 +-
 hw/misc/pci-testdev.c                               |  2 +-
 hw/misc/pvpanic-isa.c                               |  2 +-
 hw/misc/pvpanic-pci.c                               |  2 +-
 hw/misc/xlnx-versal-cframe-reg.c                    |  2 +-
 hw/misc/xlnx-versal-cfu.c                           |  4 ++--
 hw/net/can/can_kvaser_pci.c                         |  2 +-
 hw/net/can/can_mioe3680_pci.c                       |  2 +-
 hw/net/can/can_pcm3680_pci.c                        |  2 +-
 hw/net/can/ctucan_pci.c                             |  2 +-
 hw/net/e1000.c                                      |  2 +-
 hw/net/e1000e.c                                     |  2 +-
 hw/net/eepro100.c                                   |  2 +-
 hw/net/igb.c                                        |  2 +-
 hw/net/igbvf.c                                      |  2 +-
 hw/net/ne2000-pci.c                                 |  2 +-
 hw/net/pcnet-pci.c                                  |  2 +-
 hw/net/rocker/rocker.c                              |  2 +-
 hw/net/rtl8139.c                                    |  2 +-
 hw/net/sungem.c                                     |  2 +-
 hw/net/sunhme.c                                     |  2 +-
 hw/net/tulip.c                                      |  2 +-
 hw/net/vmxnet3.c                                    |  2 +-
 hw/net/xilinx_axienet.c                             |  4 ++--
 hw/nvme/ctrl.c                                      |  2 +-
 hw/pci-bridge/cxl_downstream.c                      |  2 +-
 hw/pci-bridge/cxl_root_port.c                       |  2 +-
 hw/pci-bridge/cxl_upstream.c                        |  2 +-
 hw/pci-bridge/i82801b11.c                           |  2 +-
 hw/pci-bridge/pci_bridge_dev.c                      |  2 +-
 hw/pci-bridge/pci_expander_bridge.c                 |  6 +++---
 hw/pci-bridge/pcie_pci_bridge.c                     |  2 +-
 hw/pci-bridge/pcie_root_port.c                      |  2 +-
 hw/pci-bridge/simba.c                               |  2 +-
 hw/pci-bridge/xio3130_downstream.c                  |  2 +-
 hw/pci-bridge/xio3130_upstream.c                    |  2 +-
 hw/pci-host/articia.c                               |  4 ++--
 hw/pci-host/bonito.c                                |  2 +-
 hw/pci-host/designware.c                            |  2 +-
 hw/pci-host/gpex.c                                  |  2 +-
 hw/pci-host/grackle.c                               |  2 +-
 hw/pci-host/gt64120.c                               |  2 +-
 hw/pci-host/i440fx.c                                |  2 +-
 hw/pci-host/mv64361.c                               |  2 +-
 hw/pci-host/pnv_phb3_pbcq.c                         |  2 +-
 hw/pci-host/pnv_phb4.c                              |  2 +-
 hw/pci-host/pnv_phb4_pec.c                          |  4 ++--
 hw/pci-host/ppc4xx_pci.c                            |  2 +-
 hw/pci-host/ppce500.c                               |  2 +-
 hw/pci-host/q35.c                                   |  2 +-
 hw/pci-host/raven.c                                 |  2 +-
 hw/pci-host/sabre.c                                 |  2 +-
 hw/pci-host/sh_pci.c                                |  2 +-
 hw/pci-host/uninorth.c                              |  8 ++++----
 hw/pci-host/versatile.c                             |  2 +-
 hw/pci-host/xilinx-pcie.c                           |  2 +-
 hw/pci/pci.c                                        |  2 +-
 hw/pci/pci_bridge.c                                 |  2 +-
 hw/pci/pcie_port.c                                  |  2 +-
 hw/ppc/e500plat.c                                   |  2 +-
 hw/ppc/mac_newworld.c                               |  2 +-
 hw/ppc/mac_oldworld.c                               |  2 +-
 hw/ppc/pegasos2.c                                   |  2 +-
 hw/ppc/pnv.c                                        |  8 ++++----
 hw/ppc/pnv_adu.c                                    |  2 +-
 hw/ppc/pnv_chiptod.c                                |  4 ++--
 hw/ppc/pnv_i2c.c                                    |  2 +-
 hw/ppc/pnv_lpc.c                                    |  2 +-
 hw/ppc/pnv_n1_chiplet.c                             |  2 +-
 hw/ppc/pnv_nest_pervasive.c                         |  2 +-
 hw/ppc/pnv_psi.c                                    |  4 ++--
 hw/ppc/spapr.c                                      |  2 +-
 hw/ppc/spapr_pci.c                                  |  2 +-
 hw/remote/machine.c                                 |  2 +-
 hw/remote/proxy.c                                   |  2 +-
 hw/remote/remote-obj.c                              |  2 +-
 hw/remote/vfio-user-obj.c                           |  2 +-
 hw/riscv/riscv-iommu-pci.c                          |  2 +-
 hw/riscv/virt.c                                     |  2 +-
 hw/rtc/m48t59-isa.c                                 |  2 +-
 hw/rtc/m48t59.c                                     |  2 +-
 hw/rtc/mc146818rtc.c                                |  2 +-
 hw/s390x/ap-bridge.c                                |  2 +-
 hw/s390x/css-bridge.c                               |  2 +-
 hw/s390x/s390-pci-bus.c                             |  2 +-
 hw/s390x/s390-virtio-ccw.c                          |  2 +-
 hw/s390x/virtio-ccw-md.c                            |  2 +-
 hw/scsi/esp-pci.c                                   |  2 +-
 hw/scsi/lsi53c895a.c                                |  2 +-
 hw/scsi/megasas.c                                   |  6 +++---
 hw/scsi/mptsas.c                                    |  2 +-
 hw/scsi/scsi-bus.c                                  |  2 +-
 hw/scsi/vhost-scsi.c                                |  2 +-
 hw/scsi/vhost-user-scsi.c                           |  2 +-
 hw/scsi/virtio-scsi.c                               |  2 +-
 hw/scsi/vmw_pvscsi.c                                |  2 +-
 hw/sd/sdhci-pci.c                                   |  2 +-
 hw/sparc64/sun4u.c                                  |  4 ++--
 hw/ssi/pnv_spi.c                                    |  2 +-
 hw/tpm/tpm_crb.c                                    |  2 +-
 hw/tpm/tpm_spapr.c                                  |  2 +-
 hw/tpm/tpm_tis_i2c.c                                |  2 +-
 hw/tpm/tpm_tis_isa.c                                |  2 +-
 hw/tpm/tpm_tis_sysbus.c                             |  2 +-
 hw/ufs/ufs.c                                        |  2 +-
 hw/usb/bus.c                                        |  2 +-
 hw/usb/dev-smartcard-reader.c                       |  2 +-
 hw/usb/hcd-ehci-pci.c                               |  2 +-
 hw/usb/hcd-ohci-pci.c                               |  2 +-
 hw/usb/hcd-uhci.c                                   |  2 +-
 hw/usb/hcd-xhci-pci.c                               |  2 +-
 hw/vfio/igd.c                                       |  2 +-
 hw/vfio/pci.c                                       |  2 +-
 hw/virtio/virtio-md-pci.c                           |  2 +-
 hw/virtio/virtio-mem.c                              |  2 +-
 hw/virtio/virtio-pci.c                              |  6 +++---
 hw/watchdog/wdt_i6300esb.c                          |  2 +-
 hw/xen/xen-bus.c                                    |  2 +-
 hw/xen/xen-legacy-backend.c                         |  2 +-
 hw/xen/xen_pt.c                                     |  2 +-
 hw/xen/xen_pt_graphics.c                            |  2 +-
 net/can/can_core.c                                  |  2 +-
 net/can/can_host.c                                  |  2 +-
 net/colo-compare.c                                  |  2 +-
 net/filter.c                                        |  2 +-
 scsi/pr-manager.c                                   |  2 +-
 system/qtest.c                                      |  2 +-
 target/i386/sev.c                                   |  2 +-
 target/ppc/cpu_init.c                               |  2 +-
 tests/unit/check-qom-interface.c                    |  2 +-
 tests/unit/check-qom-proplist.c                     |  2 +-
 ui/dbus.c                                           |  2 +-
 ui/input-barrier.c                                  |  2 +-
 ui/input-linux.c                                    |  2 +-
 util/thread-context.c                               |  2 +-
 hw/display/apple-gfx-pci.m                          |  2 +-
 rust/qemu-api/src/qom.rs                            |  2 +-
 scripts/codeconverter/codeconverter/test_regexps.py | 10 +++++-----
 230 files changed, 260 insertions(+), 260 deletions(-)
include/hw/virtio/virtio-pci.h +1 -1
index 567a9b0a9da..31ec144509f 100644
@@ -256,7 +256,7 @@ typedef struct VirtioPCIDeviceTypeInfo {
     void (*instance_init)(Object *obj);
     void (*instance_finalize)(Object *obj);
     void (*class_init)(ObjectClass *klass, const void *data);
-    InterfaceInfo *interfaces;
+    const InterfaceInfo *interfaces;
 } VirtioPCIDeviceTypeInfo;
 
 /* Register virtio-pci type(s).  @t must be static. */
include/qom/object.h +2 -2
index 42b75d10a43..1d5b0337242 100644
@@ -294,7 +294,7 @@ struct Object
         .class_size = CLASS_SIZE, \
         .class_init = module_obj_name##_class_init, \
         .abstract = ABSTRACT, \
-        .interfaces = (InterfaceInfo[]) { __VA_ARGS__ } , \
+        .interfaces = (const InterfaceInfo[]) { __VA_ARGS__ } , \
     }; \
     \
     static void \
@@ -490,7 +490,7 @@ struct TypeInfo
     void (*class_base_init)(ObjectClass *klass, const void *data);
     const void *class_data;
 
-    InterfaceInfo *interfaces;
+    const InterfaceInfo *interfaces;
 };
 
 /**
authz/list.c +1 -1
index bbd99f2b7fc..17aa0efd80e 100644
@@ -253,7 +253,7 @@ static const TypeInfo qauthz_list_info = {
     .instance_size = sizeof(QAuthZList),
     .instance_finalize = qauthz_list_finalize,
     .class_init = qauthz_list_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
authz/listfile.c +1 -1
index b58d4ebd1d8..13741d5a722 100644
@@ -272,7 +272,7 @@ static const TypeInfo qauthz_list_file_info = {
     .instance_size = sizeof(QAuthZListFile),
     .instance_finalize = qauthz_list_file_finalize,
     .class_init = qauthz_list_file_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
authz/pamacct.c +1 -1
index 07b8aad4972..c0ad67479a7 100644
@@ -136,7 +136,7 @@ static const TypeInfo qauthz_pam_info = {
     .instance_size = sizeof(QAuthZPAM),
     .instance_finalize = qauthz_pam_finalize,
     .class_init = qauthz_pam_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
authz/simple.c +1 -1
index f6985b840ea..f8f2b98518a 100644
@@ -111,7 +111,7 @@ static const TypeInfo qauthz_simple_info = {
     .instance_size = sizeof(QAuthZSimple),
     .instance_finalize = qauthz_simple_finalize,
     .class_init = qauthz_simple_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
backends/cryptodev.c +1 -1
index 51bbe5ce40f..79f8882d3be 100644
@@ -641,7 +641,7 @@ static const TypeInfo cryptodev_backend_info = {
     .instance_finalize = cryptodev_backend_finalize,
     .class_size = sizeof(CryptoDevBackendClass),
     .class_init = cryptodev_backend_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
backends/dbus-vmstate.c +1 -1
index 8c2deef43d4..7d5b58b4c90 100644
@@ -505,7 +505,7 @@ static const TypeInfo dbus_vmstate_info = {
     .instance_size = sizeof(DBusVMState),
     .instance_finalize = dbus_vmstate_finalize,
     .class_init = dbus_vmstate_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { TYPE_VMSTATE_IF },
         { }
backends/hostmem.c +1 -1
index 195f37fa443..35734d6f4d1 100644
@@ -586,7 +586,7 @@ static const TypeInfo host_memory_backend_info = {
     .instance_size = sizeof(HostMemoryBackend),
     .instance_init = host_memory_backend_init,
     .instance_post_init = host_memory_backend_post_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
backends/iommufd.c +1 -1
index 53566beb8a5..cbe34994884 100644
@@ -345,7 +345,7 @@ static const TypeInfo types[] = {
         .instance_finalize = iommufd_backend_finalize,
         .class_size = sizeof(IOMMUFDBackendClass),
         .class_init = iommufd_backend_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { TYPE_USER_CREATABLE },
             { }
         }
backends/rng.c +1 -1
index b3480d27a12..ab94dfea850 100644
@@ -119,7 +119,7 @@ static const TypeInfo rng_backend_info = {
     .class_size = sizeof(RngBackendClass),
     .class_init = rng_backend_class_init,
     .abstract = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
block/throttle-groups.c +1 -1
index a72765e847e..24851972e84 100644
@@ -968,7 +968,7 @@ static const TypeInfo throttle_group_info = {
     .instance_size = sizeof(ThrottleGroup),
     .instance_init = throttle_group_obj_init,
     .instance_finalize = throttle_group_obj_finalize,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     },
crypto/secret_common.c +1 -1
index 2399ce412be..a5ecb876aeb 100644
@@ -375,7 +375,7 @@ static const TypeInfo qcrypto_secret_info = {
     .class_size = sizeof(QCryptoSecretCommonClass),
     .class_init = qcrypto_secret_class_init,
     .abstract = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
crypto/tls-cipher-suites.c +1 -1
index e546cc7c0e6..d9b61d0c08a 100644
@@ -118,7 +118,7 @@ static const TypeInfo qcrypto_tls_cipher_suites_info = {
     .instance_size = sizeof(QCryptoTLSCipherSuites),
     .class_size = sizeof(QCryptoTLSCredsClass),
     .class_init = qcrypto_tls_cipher_suites_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { TYPE_FW_CFG_DATA_GENERATOR_INTERFACE },
         { }
crypto/tlscredsanon.c +1 -1
index 0e2d133821f..44af9e6c9af 100644
@@ -152,7 +152,7 @@ static const TypeInfo qcrypto_tls_creds_anon_info = {
     .instance_finalize = qcrypto_tls_creds_anon_finalize,
     .class_size = sizeof(QCryptoTLSCredsAnonClass),
     .class_init = qcrypto_tls_creds_anon_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
crypto/tlscredspsk.c +1 -1
index 287c2a3c96c..5b68a6b7ba2 100644
@@ -255,7 +255,7 @@ static const TypeInfo qcrypto_tls_creds_psk_info = {
     .instance_finalize = qcrypto_tls_creds_psk_finalize,
     .class_size = sizeof(QCryptoTLSCredsPSKClass),
     .class_init = qcrypto_tls_creds_psk_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
crypto/tlscredsx509.c +1 -1
index 143993f5393..63a72fe47c8 100644
@@ -828,7 +828,7 @@ static const TypeInfo qcrypto_tls_creds_x509_info = {
     .instance_finalize = qcrypto_tls_creds_x509_finalize,
     .class_size = sizeof(QCryptoTLSCredsX509Class),
     .class_init = qcrypto_tls_creds_x509_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
event-loop-base.c +1 -1
index 10b669ffc73..b3e2978450d 100644
@@ -128,7 +128,7 @@ static const TypeInfo event_loop_base_info = {
     .class_size = sizeof(EventLoopBaseClass),
     .class_init = event_loop_base_class_init,
     .abstract = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
hw/acpi/erst.c +1 -1
index 621c82f019f..6c653a92cd4 100644
@@ -1044,7 +1044,7 @@ static const TypeInfo erst_type_info = {
     .parent        = TYPE_PCI_DEVICE,
     .class_init    = erst_class_init,
     .instance_size = sizeof(ERSTDeviceState),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { }
     }
hw/acpi/generic_event_device.c +1 -1
index f589e79a2bb..d8adfea6480 100644
@@ -494,7 +494,7 @@ static const TypeInfo acpi_ged_info = {
     .instance_size = sizeof(AcpiGedState),
     .instance_init  = acpi_ged_initfn,
     .class_init    = acpi_ged_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { TYPE_ACPI_DEVICE_IF },
         { }
hw/acpi/piix4.c +1 -1
index 5860e8408bd..b16d45f03e1 100644
@@ -657,7 +657,7 @@ static const TypeInfo piix4_pm_info = {
     .instance_init  = piix4_pm_init,
     .instance_size = sizeof(PIIX4PMState),
     .class_init    = piix4_pm_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { TYPE_ACPI_DEVICE_IF },
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
hw/arm/armsse.c +1 -1
index 9403b65ddb5..50ab7f48105 100644
@@ -1713,7 +1713,7 @@ static const TypeInfo armsse_info = {
     .class_size = sizeof(ARMSSEClass),
     .instance_init = armsse_init,
     .abstract = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_IDAU_INTERFACE },
         { }
     }
hw/arm/mps2-tz.c +1 -1
index 609abe9db65..c53604e6108 100644
@@ -1453,7 +1453,7 @@ static const TypeInfo mps2tz_info = {
     .instance_size = sizeof(MPS2TZMachineState),
     .class_size = sizeof(MPS2TZMachineClass),
     .class_init = mps2tz_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_IDAU_INTERFACE },
         { }
     },
hw/arm/virt.c +1 -1
index 03ce6dcff4a..b17442e143a 100644
@@ -3342,7 +3342,7 @@ static const TypeInfo virt_machine_info = {
     .class_size    = sizeof(VirtMachineClass),
     .class_init    = virt_machine_class_init,
     .instance_init = virt_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
          { TYPE_HOTPLUG_HANDLER },
          { }
     },
hw/audio/ac97.c +1 -1
index 7454cc60deb..669a0463cc1 100644
@@ -1351,7 +1351,7 @@ static const TypeInfo ac97_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(AC97LinkState),
     .class_init    = ac97_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/audio/es1370.c +1 -1
index 322b7798149..8efb9692128 100644
@@ -896,7 +896,7 @@ static const TypeInfo es1370_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof (ES1370State),
     .class_init    = es1370_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/audio/intel-hda.c +1 -1
index 2f1b08e9c1c..b256c8ccea1 100644
@@ -1262,7 +1262,7 @@ static const TypeInfo intel_hda_info = {
     .instance_size = sizeof(IntelHDAState),
     .class_init    = intel_hda_class_init,
     .abstract      = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/audio/via-ac97.c +2 -2
index 5feef663d8c..1e0a5c7398b 100644
@@ -487,7 +487,7 @@ static const TypeInfo via_ac97_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(ViaAC97State),
     .class_init    = via_ac97_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
@@ -522,7 +522,7 @@ static const TypeInfo via_mc97_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIDevice),
     .class_init    = via_mc97_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/block/fdc-isa.c +1 -1
index 1d32a66d3b7..6a6fca43748 100644
@@ -331,7 +331,7 @@ static const TypeInfo isa_fdc_info = {
     .instance_size = sizeof(FDCtrlISABus),
     .class_init    = isabus_fdc_class_init,
     .instance_init = isabus_fdc_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_ACPI_DEV_AML_IF },
         { },
     },
hw/char/diva-gsp.c +2 -2
index 9a623d680b3..60f933191d2 100644
@@ -268,7 +268,7 @@ static const TypeInfo diva_aux_info = {
     .instance_size = sizeof(DivaAuxState),
     .instance_init = diva_aux_init,
     .class_init    = diva_aux_class_initfn,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
@@ -282,7 +282,7 @@ static const TypeInfo diva_serial_pci_info = {
     .instance_size = sizeof(PCIDivaSerialState),
     .instance_init = diva_serial_init,
     .class_init    = diva_serial_class_initfn,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/char/parallel.c +1 -1
index 217ddaf2e3e..8732e4e9f96 100644
@@ -627,7 +627,7 @@ static const TypeInfo parallel_isa_info = {
     .parent        = TYPE_ISA_DEVICE,
     .instance_size = sizeof(ISAParallelState),
     .class_init    = parallel_isa_class_initfn,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_ACPI_DEV_AML_IF },
         { },
     },
hw/char/serial-isa.c +1 -1
index fe7fb1625b5..0ea59a3d5c2 100644
@@ -146,7 +146,7 @@ static const TypeInfo serial_isa_info = {
     .instance_size = sizeof(ISASerialState),
     .instance_init = serial_isa_initfn,
     .class_init    = serial_isa_class_initfn,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_ACPI_DEV_AML_IF },
         { },
     },
hw/char/serial-pci-multi.c +2 -2
index ee1c0f7dc4f..fb184c2e6dc 100644
@@ -194,7 +194,7 @@ static const TypeInfo multi_2x_serial_pci_info = {
     .instance_size = sizeof(PCIMultiSerialState),
     .instance_init = multi_serial_init,
     .class_init    = multi_2x_serial_pci_class_initfn,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
@@ -206,7 +206,7 @@ static const TypeInfo multi_4x_serial_pci_info = {
     .instance_size = sizeof(PCIMultiSerialState),
     .instance_init = multi_serial_init,
     .class_init    = multi_4x_serial_pci_class_initfn,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/char/serial-pci.c +1 -1
index bd38c7428c6..8707e819144 100644
@@ -115,7 +115,7 @@ static const TypeInfo serial_pci_info = {
     .instance_size = sizeof(PCISerialState),
     .instance_init = serial_pci_init,
     .class_init    = serial_pci_class_initfn,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/char/virtio-serial-bus.c +1 -1
index 00572873d28..eb79f5258b6 100644
@@ -1188,7 +1188,7 @@ static const TypeInfo virtio_device_info = {
     .parent = TYPE_VIRTIO_DEVICE,
     .instance_size = sizeof(VirtIOSerial),
     .class_init = virtio_serial_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     }
hw/core/bus.c +1 -1
index c3b431a014b..bddfc22d388 100644
@@ -260,7 +260,7 @@ static const TypeInfo bus_info = {
     .instance_init = qbus_initfn,
     .instance_finalize = qbus_finalize,
     .class_init = bus_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_RESETTABLE_INTERFACE },
         { }
     },
hw/core/qdev.c +1 -1
index 4a3760c101e..f6002261768 100644
@@ -870,7 +870,7 @@ static const TypeInfo device_type_info = {
     .class_init = device_class_init,
     .abstract = true,
     .class_size = sizeof(DeviceClass),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_VMSTATE_IF },
         { TYPE_RESETTABLE_INTERFACE },
         { }
hw/cxl/switch-mailbox-cci.c +1 -1
index c57bf555f97..5455b4f6219 100644
@@ -97,7 +97,7 @@ static const TypeInfo cswmbcci_info = {
     .parent = TYPE_PCI_DEVICE,
     .class_init = cswmbcci_class_init,
     .instance_size = sizeof(CSWMBCCIDev),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { }
     },
hw/display/ati.c +1 -1
index 4e88d099431..7de27732cdc 100644
@@ -1079,7 +1079,7 @@ static const TypeInfo ati_vga_info = {
     .instance_size = sizeof(ATIVGAState),
     .class_init = ati_vga_class_init,
     .instance_init = ati_vga_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
           { INTERFACE_CONVENTIONAL_PCI_DEVICE },
           { },
     },
hw/display/bochs-display.c +1 -1
index 1d329fc9cce..ad2821c9745 100644
@@ -374,7 +374,7 @@ static const TypeInfo bochs_display_type_info = {
     .instance_size  = sizeof(BochsDisplayState),
     .instance_init  = bochs_display_init,
     .class_init     = bochs_display_class_init,
-    .interfaces     = (InterfaceInfo[]) {
+    .interfaces     = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
hw/display/cirrus_vga.c +1 -1
index 4e5ae04af0f..ef08694626d 100644
@@ -3013,7 +3013,7 @@ static const TypeInfo cirrus_vga_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCICirrusVGAState),
     .class_init    = cirrus_vga_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/display/qxl.c +1 -1
index 0e4612d55aa..a8cd0209a3c 100644
@@ -2496,7 +2496,7 @@ static const TypeInfo qxl_pci_type_info = {
     .instance_size = sizeof(PCIQXLDevice),
     .abstract = true,
     .class_init = qxl_pci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/display/sm501.c +1 -1
index dcff1e978ed..6d2f18684c3 100644
@@ -2196,7 +2196,7 @@ static const TypeInfo sm501_pci_info = {
     .instance_size = sizeof(SM501PCIState),
     .class_init    = sm501_pci_class_init,
     .instance_init = sm501_pci_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/display/vga-pci.c +1 -1
index a8601972740..b81f7fd2d0f 100644
@@ -369,7 +369,7 @@ static const TypeInfo vga_pci_type_info = {
     .instance_size = sizeof(PCIVGAState),
     .abstract = true,
     .class_init = vga_pci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { TYPE_ACPI_DEV_AML_IF },
         { },
hw/display/virtio-gpu-pci-rutabaga.c +1 -1
index abbb898c65d..5fdff37f2c1 100644
@@ -34,7 +34,7 @@ static const TypeInfo virtio_gpu_rutabaga_pci_info[] = {
         .parent = TYPE_VIRTIO_GPU_PCI_BASE,
         .instance_size = sizeof(VirtIOGPURutabagaPCI),
         .instance_init = virtio_gpu_rutabaga_initfn,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { INTERFACE_CONVENTIONAL_PCI_DEVICE },
             { },
         }
hw/display/vmware_vga.c +1 -1
index 7777deb17d0..544bb65320b 100644
@@ -1363,7 +1363,7 @@ static const TypeInfo vmsvga_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(struct pci_vmsvga_state_s),
     .class_init    = vmsvga_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/dma/i8257.c +1 -1
index 1d67e505364..2463952ada2 100644
@@ -618,7 +618,7 @@ static const TypeInfo i8257_info = {
     .parent = TYPE_ISA_DEVICE,
     .instance_size = sizeof(I8257State),
     .class_init = i8257_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_ISADMA },
         { }
     }
hw/dma/xilinx_axidma.c +2 -2
index bf1b523ac88..2020399fd59 100644
@@ -662,7 +662,7 @@ static const TypeInfo xilinx_axidma_data_stream_info = {
     .instance_size = sizeof(XilinxAXIDMAStreamSink),
     .class_init    = xilinx_axidma_stream_class_init,
     .class_data    = &xilinx_axidma_data_stream_class,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_STREAM_SINK },
         { }
     }
@@ -674,7 +674,7 @@ static const TypeInfo xilinx_axidma_control_stream_info = {
     .instance_size = sizeof(XilinxAXIDMAStreamSink),
     .class_init    = xilinx_axidma_stream_class_init,
     .class_data    = &xilinx_axidma_control_stream_class,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_STREAM_SINK },
         { }
     }
hw/dma/xlnx_csu_dma.c +1 -1
index 6943c927d07..3db3904d835 100644
@@ -744,7 +744,7 @@ static const TypeInfo xlnx_csu_dma_info = {
     .class_init    = xlnx_csu_dma_class_init,
     .class_size    = sizeof(XlnxCSUDMAClass),
     .instance_init = xlnx_csu_dma_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_STREAM_SINK },
         { }
     }
hw/hppa/machine.c +2 -2
index 37f6cb6346b..6e04c0d13d5 100644
@@ -712,7 +712,7 @@ static const TypeInfo HP_B160L_machine_init_typeinfo = {
     .name = MACHINE_TYPE_NAME("B160L"),
     .parent = TYPE_MACHINE,
     .class_init = HP_B160L_machine_init_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_NMI },
         { }
     },
@@ -748,7 +748,7 @@ static const TypeInfo HP_C3700_machine_init_typeinfo = {
     .name = MACHINE_TYPE_NAME("C3700"),
     .parent = TYPE_MACHINE,
     .class_init = HP_C3700_machine_init_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_NMI },
         { }
     },
hw/i2c/smbus_ich9.c +1 -1
index f1fca30fea5..956c9b59bbc 100644
@@ -145,7 +145,7 @@ static const TypeInfo ich9_smb_info = {
     .parent = TYPE_PCI_DEVICE,
     .instance_size = sizeof(ICH9SMBState),
     .class_init = ich9_smb_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { TYPE_ACPI_DEV_AML_IF },
         { },
hw/i386/amd_iommu.c +1 -1
index a6654cfa8af..08c18174c2e 100644
@@ -1720,7 +1720,7 @@ static const TypeInfo amdvi_pci = {
     .parent = TYPE_PCI_DEVICE,
     .instance_size = sizeof(AMDVIPCIState),
     .class_init = amdvi_pci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/i386/microvm.c +1 -1
index a0e39673c9e..ef7401dc162 100644
@@ -726,7 +726,7 @@ static const TypeInfo microvm_machine_info = {
     .instance_init = microvm_machine_initfn,
     .class_size    = sizeof(MicrovmMachineClass),
     .class_init    = microvm_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
          { TYPE_HOTPLUG_HANDLER },
          { }
     },
hw/i386/pc.c +1 -1
index a20ca1e54fb..3b2539753b5 100644
@@ -1862,7 +1862,7 @@ static const TypeInfo pc_machine_info = {
     .instance_init = pc_machine_initfn,
     .class_size = sizeof(PCMachineClass),
     .class_init = pc_machine_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
          { TYPE_HOTPLUG_HANDLER },
          { }
     },
hw/i386/sgx-epc.c +1 -1
index d5590cd0b53..e3defb774f6 100644
@@ -173,7 +173,7 @@ static const TypeInfo sgx_epc_info = {
     .instance_init = sgx_epc_init,
     .class_init    = sgx_epc_class_init,
     .class_size    = sizeof(DeviceClass),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_MEMORY_DEVICE },
         { }
     },
hw/i386/x86.c +1 -1
index c8e2551b2b4..e2d04092992 100644
@@ -450,7 +450,7 @@ static const TypeInfo x86_machine_info = {
     .instance_init = x86_machine_initfn,
     .class_size = sizeof(X86MachineClass),
     .class_init = x86_machine_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
          { TYPE_NMI },
          { }
     },
hw/i386/xen/xen_platform.c +1 -1
index 7c0d345f964..c8b852be0cc 100644
@@ -604,7 +604,7 @@ static const TypeInfo xen_platform_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIXenPlatformState),
     .class_init    = xen_platform_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/i386/xen/xen_pvdevice.c +1 -1
index 65868bd5e59..87a974ae5a0 100644
@@ -139,7 +139,7 @@ static const TypeInfo xen_pv_type_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(XenPVDevice),
     .class_init    = xen_pv_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/ide/ich.c +1 -1
index f2773ab4621..4cade0d1219 100644
@@ -197,7 +197,7 @@ static const TypeInfo ich_ahci_info = {
     .instance_size = sizeof(AHCIPCIState),
     .instance_init = pci_ich9_ahci_init,
     .class_init    = ich_ahci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/ide/pci.c +1 -1
index 0ed72e42233..1e50bb9e483 100644
@@ -625,7 +625,7 @@ static const TypeInfo pci_ide_type_info = {
     .instance_size = sizeof(PCIIDEState),
     .instance_init = pci_ide_init,
     .abstract = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/input/pckbd.c +1 -1
index 83930dd50c0..71f5f976e9c 100644
@@ -958,7 +958,7 @@ static const TypeInfo i8042_info = {
     .instance_size = sizeof(ISAKBDState),
     .instance_init = i8042_initfn,
     .class_init    = i8042_class_initfn,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_ACPI_DEV_AML_IF },
         { },
     },
hw/intc/arm_gic_common.c +1 -1
index f61d1c1fe60..0f0c48d89ab 100644
@@ -382,7 +382,7 @@ static const TypeInfo arm_gic_common_type = {
     .class_size = sizeof(ARMGICCommonClass),
     .class_init = arm_gic_common_class_init,
     .abstract = true,
-    .interfaces = (InterfaceInfo []) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_ARM_LINUX_BOOT_IF },
         { },
     },
hw/intc/arm_gicv3_common.c +1 -1
index dd86a50300a..1cee68193ca 100644
@@ -644,7 +644,7 @@ static const TypeInfo arm_gicv3_common_type = {
     .class_init = arm_gicv3_common_class_init,
     .instance_finalize = arm_gicv3_finalize,
     .abstract = true,
-    .interfaces = (InterfaceInfo []) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_ARM_LINUX_BOOT_IF },
         { },
     },
hw/intc/goldfish_pic.c +1 -1
index b80538cdeba..2359861785d 100644
@@ -204,7 +204,7 @@ static const TypeInfo goldfish_pic_info = {
     .class_init = goldfish_pic_class_init,
     .instance_init = goldfish_pic_instance_init,
     .instance_size = sizeof(GoldfishPICState),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
          { TYPE_INTERRUPT_STATS_PROVIDER },
          { }
     },
hw/intc/i8259_common.c +1 -1
index 4a92e0da908..602e44c8eaf 100644
@@ -226,7 +226,7 @@ static const TypeInfo pic_common_type = {
     .class_size = sizeof(PICCommonClass),
     .class_init = pic_common_class_init,
     .abstract = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_INTERRUPT_STATS_PROVIDER },
         { }
     },
hw/intc/ioapic_common.c +1 -1
index b0381c7990d..fce3486e519 100644
@@ -215,7 +215,7 @@ static const TypeInfo ioapic_common_type = {
     .class_size = sizeof(IOAPICCommonClass),
     .class_init = ioapic_common_class_init,
     .abstract = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_INTERRUPT_STATS_PROVIDER },
         { }
     },
hw/intc/m68k_irqc.c +1 -1
index 215e1a6ed5b..2532322618a 100644
@@ -110,7 +110,7 @@ static const TypeInfo m68k_irqc_type_info = {
     .instance_size = sizeof(M68KIRQCState),
     .instance_init = m68k_irqc_instance_init,
     .class_init = m68k_irqc_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
          { TYPE_NMI },
          { TYPE_INTERRUPT_STATS_PROVIDER },
          { }
hw/intc/pnv_xive.c +1 -1
index b67c2ed6c7e..155c46b6404 100644
@@ -2106,7 +2106,7 @@ static const TypeInfo pnv_xive_info = {
     .instance_size = sizeof(PnvXive),
     .class_init    = pnv_xive_class_init,
     .class_size    = sizeof(PnvXiveClass),
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
hw/intc/pnv_xive2.c +1 -1
index 8c9bcd40b92..fd9ecd2a898 100644
@@ -2441,7 +2441,7 @@ static const TypeInfo pnv_xive2_info = {
     .instance_size = sizeof(PnvXive2),
     .class_init    = pnv_xive2_class_init,
     .class_size    = sizeof(PnvXive2Class),
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
hw/intc/slavio_intctl.c +1 -1
index 5776055a8b4..00b80bb177c 100644
@@ -460,7 +460,7 @@ static const TypeInfo slavio_intctl_info = {
     .instance_size = sizeof(SLAVIO_INTCTLState),
     .instance_init = slavio_intctl_init,
     .class_init    = slavio_intctl_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_INTERRUPT_STATS_PROVIDER },
         { }
     },
hw/intc/spapr_xive.c +1 -1
index fad03dbfbe8..9f00d717c98 100644
@@ -856,7 +856,7 @@ static const TypeInfo spapr_xive_info = {
     .instance_size = sizeof(SpaprXive),
     .class_init = spapr_xive_class_init,
     .class_size = sizeof(SpaprXiveClass),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_SPAPR_INTC },
         { }
     },
hw/intc/xics_spapr.c +1 -1
index 9e465fb8f3b..7663596a4a4 100644
@@ -461,7 +461,7 @@ static const TypeInfo ics_spapr_info = {
     .name = TYPE_ICS_SPAPR,
     .parent = TYPE_ICS,
     .class_init = ics_spapr_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_SPAPR_INTC },
         { }
     },
hw/intc/xive.c +1 -1
index a91d71d108e..43c1bf5296c 100644
@@ -2028,7 +2028,7 @@ static const TypeInfo xive_router_info = {
     .instance_size = sizeof(XiveRouter),
     .class_size    = sizeof(XiveRouterClass),
     .class_init    = xive_router_class_init,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_XIVE_NOTIFIER },
         { TYPE_XIVE_PRESENTER },
         { }
hw/intc/xive2.c +1 -1
index cf37aa2e4a7..88eef9a1d14 100644
@@ -1052,7 +1052,7 @@ static const TypeInfo xive2_router_info = {
     .instance_size = sizeof(Xive2Router),
     .class_size    = sizeof(Xive2RouterClass),
     .class_init    = xive2_router_class_init,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_XIVE_NOTIFIER },
         { TYPE_XIVE_PRESENTER },
         { }
hw/ipack/tpci200.c +1 -1
index f6993330d23..40b30517c75 100644
@@ -650,7 +650,7 @@ static const TypeInfo tpci200_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(TPCI200State),
     .class_init    = tpci200_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/ipmi/isa_ipmi_bt.c +1 -1
index f7f7abcca89..fa8b3ac1066 100644
@@ -161,7 +161,7 @@ static const TypeInfo isa_ipmi_bt_info = {
     .instance_size = sizeof(ISAIPMIBTDevice),
     .instance_init = isa_ipmi_bt_init,
     .class_init    = isa_ipmi_bt_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_IPMI_INTERFACE },
         { TYPE_ACPI_DEV_AML_IF },
         { }
hw/ipmi/isa_ipmi_kcs.c +1 -1
index 67969ca0636..0bd5554f78f 100644
@@ -168,7 +168,7 @@ static const TypeInfo isa_ipmi_kcs_info = {
     .instance_size = sizeof(ISAIPMIKCSDevice),
     .instance_init = isa_ipmi_kcs_init,
     .class_init    = isa_ipmi_kcs_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_IPMI_INTERFACE },
         { TYPE_ACPI_DEV_AML_IF },
         { }
hw/ipmi/pci_ipmi_bt.c +1 -1
index 78d81420089..5709a1efe89 100644
@@ -133,7 +133,7 @@ static const TypeInfo pci_ipmi_bt_info = {
     .instance_size = sizeof(PCIIPMIBTDevice),
     .instance_init = pci_ipmi_bt_instance_init,
     .class_init    = pci_ipmi_bt_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_IPMI_INTERFACE },
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { }
hw/ipmi/pci_ipmi_kcs.c +1 -1
index 40127de393e..64d70506779 100644
@@ -133,7 +133,7 @@ static const TypeInfo pci_ipmi_kcs_info = {
     .instance_size = sizeof(PCIIPMIKCSDevice),
     .instance_init = pci_ipmi_kcs_instance_init,
     .class_init    = pci_ipmi_kcs_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_IPMI_INTERFACE },
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { }
hw/ipmi/smbus_ipmi.c +1 -1
index 7345844a3a9..78c332de54d 100644
@@ -376,7 +376,7 @@ static const TypeInfo smbus_ipmi_info = {
     .instance_size = sizeof(SMBusIPMIDevice),
     .instance_init = smbus_ipmi_init,
     .class_init    = smbus_ipmi_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_IPMI_INTERFACE },
         { TYPE_ACPI_DEV_AML_IF },
         { }
hw/isa/i82378.c +1 -1
index 26c8ec4f77a..06e8f0ce3e0 100644
@@ -142,7 +142,7 @@ static const TypeInfo i82378_type_info = {
     .instance_size = sizeof(I82378State),
     .instance_init = i82378_init,
     .class_init = i82378_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/isa/lpc_ich9.c +1 -1
index d3e623b1e88..71afb45b631 100644
@@ -915,7 +915,7 @@ static const TypeInfo ich9_lpc_info = {
     .instance_size = sizeof(ICH9LPCState),
     .instance_init = ich9_lpc_initfn,
     .class_init  = ich9_lpc_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { TYPE_ACPI_DEVICE_IF },
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
hw/isa/piix.c +1 -1
index 2c6e76f97cc..52c14d3cd5b 100644
@@ -445,7 +445,7 @@ static const TypeInfo piix_pci_type_info = {
     .instance_init = pci_piix_init,
     .abstract = true,
     .class_init = pci_piix_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { TYPE_ACPI_DEV_AML_IF },
         { },
hw/isa/vt82c686.c +2 -2
index c62afc907b2..337958617a4 100644
@@ -243,7 +243,7 @@ static const TypeInfo via_pm_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(ViaPMState),
     .abstract      = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
@@ -634,7 +634,7 @@ static const TypeInfo via_isa_info = {
     .instance_size = sizeof(ViaISAState),
     .instance_init = via_isa_init,
     .abstract      = true,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/loongarch/virt.c +1 -1
index 9c3ede6e74c..422259c3a81 100644
@@ -1507,7 +1507,7 @@ static const TypeInfo virt_machine_types[] = {
         .instance_size  = sizeof(LoongArchVirtMachineState),
         .class_init     = virt_class_init,
         .instance_init  = virt_initfn,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
          { TYPE_HOTPLUG_HANDLER },
          { }
         },
hw/m68k/q800-glue.c +1 -1
index b428e7c833e..36de67c328e 100644
@@ -248,7 +248,7 @@ static const TypeInfo glue_info_types[] = {
         .instance_init = glue_init,
         .instance_finalize = glue_finalize,
         .class_init = glue_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
              { TYPE_NMI },
              { }
         },
hw/mem/cxl_type3.c +1 -1
index b98c068476d..4ae2985891d 100644
@@ -2161,7 +2161,7 @@ static const TypeInfo ct3d_info = {
     .class_size = sizeof(struct CXLType3Class),
     .class_init = ct3_class_init,
     .instance_size = sizeof(CXLType3Dev),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CXL_DEVICE },
         { INTERFACE_PCIE_DEVICE },
         {}
hw/mem/pc-dimm.c +1 -1
index 6f68171442f..f701d5b5f9b 100644
@@ -301,7 +301,7 @@ static const TypeInfo pc_dimm_info = {
     .instance_init = pc_dimm_init,
     .class_init    = pc_dimm_class_init,
     .class_size    = sizeof(PCDIMMDeviceClass),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_MEMORY_DEVICE },
         { }
     },
hw/misc/applesmc.c +1 -1
index d83a81b60d3..a015d4a9b8c 100644
@@ -393,7 +393,7 @@ static const TypeInfo applesmc_isa_info = {
     .parent        = TYPE_ISA_DEVICE,
     .instance_size = sizeof(AppleSMCState),
     .class_init    = qdev_applesmc_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_ACPI_DEV_AML_IF },
         { },
     },
hw/misc/edu.c +1 -1
index a6e0786b6f1..b92c7e06bef 100644
@@ -431,7 +431,7 @@ static void edu_class_init(ObjectClass *class, const void *data)
 
 static void pci_edu_register_types(void)
 {
-    static InterfaceInfo interfaces[] = {
+    static const InterfaceInfo interfaces[] = {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     };
hw/misc/ivshmem-pci.c +1 -1
index 2844b6f9099..5a10bca633d 100644
@@ -1002,7 +1002,7 @@ static const TypeInfo ivshmem_common_info = {
     .instance_size = sizeof(IVShmemState),
     .abstract      = true,
     .class_init    = ivshmem_common_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/misc/macio/gpio.c +1 -1
index 1b4e386b0d8..f03cf7e06fc 100644
@@ -205,7 +205,7 @@ static const TypeInfo macio_gpio_init_info = {
     .instance_size = sizeof(MacIOGPIOState),
     .instance_init = macio_gpio_init,
     .class_init    = macio_gpio_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_NMI },
         { }
     },
hw/misc/macio/macio.c +1 -1
index b0418db49ea..6710485d728 100644
@@ -465,7 +465,7 @@ static const TypeInfo macio_type_info = {
     .instance_init = macio_instance_init,
     .abstract      = true,
     .class_init    = macio_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/misc/pci-testdev.c +1 -1
index 0ea26451f1f..3f6a8bba84f 100644
@@ -345,7 +345,7 @@ static const TypeInfo pci_testdev_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCITestDevState),
     .class_init    = pci_testdev_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/misc/pvpanic-isa.c +1 -1
index 55522ee56cb..f7b421c713b 100644
@@ -121,7 +121,7 @@ static const TypeInfo pvpanic_isa_info = {
     .instance_size = sizeof(PVPanicISAState),
     .instance_init = pvpanic_isa_initfn,
     .class_init    = pvpanic_isa_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_ACPI_DEV_AML_IF },
         { },
     },
hw/misc/pvpanic-pci.c +1 -1
index 51ebf661076..2869b6a7ff8 100644
@@ -80,7 +80,7 @@ static const TypeInfo pvpanic_pci_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PVPanicPCIState),
     .class_init    = pvpanic_pci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { }
     }
hw/misc/xlnx-versal-cframe-reg.c +1 -1
index e28d569ebef..1ce083e2409 100644
@@ -833,7 +833,7 @@ static const TypeInfo cframe_reg_info = {
     .instance_size = sizeof(XlnxVersalCFrameReg),
     .class_init    = cframe_reg_class_init,
     .instance_init = cframe_reg_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_XLNX_CFI_IF },
         { }
     }
hw/misc/xlnx-versal-cfu.c +2 -2
index 02e4fed05b9..b920fc77c3f 100644
@@ -532,7 +532,7 @@ static const TypeInfo cfu_apb_info = {
     .instance_size = sizeof(XlnxVersalCFUAPB),
     .class_init    = cfu_apb_class_init,
     .instance_init = cfu_apb_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_XLNX_CFI_IF },
         { }
     }
@@ -545,7 +545,7 @@ static const TypeInfo cfu_fdro_info = {
     .class_init    = cfu_fdro_class_init,
     .instance_init = cfu_fdro_init,
     .instance_finalize = cfu_fdro_finalize,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_XLNX_CFI_IF },
         { }
     }
hw/net/can/can_kvaser_pci.c +1 -1
index c0bb598baef..be16769de29 100644
@@ -305,7 +305,7 @@ static const TypeInfo kvaser_pci_info = {
     .instance_size = sizeof(KvaserPCIState),
     .class_init    = kvaser_pci_class_init,
     .instance_init = kvaser_pci_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/net/can/can_mioe3680_pci.c +1 -1
index 9aac70dccd3..44f3ba370dc 100644
@@ -248,7 +248,7 @@ static const TypeInfo mioe3680_pci_info = {
     .instance_size = sizeof(Mioe3680PCIState),
     .class_init    = mioe3680_pci_class_init,
     .instance_init = mioe3680_pci_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/net/can/can_pcm3680_pci.c +1 -1
index b305f7e9b7d..7296d63be79 100644
@@ -249,7 +249,7 @@ static const TypeInfo pcm3680i_pci_info = {
     .instance_size = sizeof(Pcm3680iPCIState),
     .class_init    = pcm3680i_pci_class_init,
     .instance_init = pcm3680i_pci_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/net/can/ctucan_pci.c +1 -1
index 0dee9b59d10..bed6785433e 100644
@@ -262,7 +262,7 @@ static const TypeInfo ctucan_pci_info = {
     .instance_size = sizeof(CtuCanPCIState),
     .class_init    = ctucan_pci_class_init,
     .instance_init = ctucan_pci_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/net/e1000.c +1 -1
index 13814e84d18..cba4999e6d0 100644
@@ -1732,7 +1732,7 @@ static const TypeInfo e1000_base_info = {
     .instance_init = e1000_instance_init,
     .class_size    = sizeof(E1000BaseClass),
     .abstract      = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/net/e1000e.c +1 -1
index 5e58f39235e..ae4fcdc544d 100644
@@ -722,7 +722,7 @@ static const TypeInfo e1000e_info = {
     .instance_size = sizeof(E1000EState),
     .class_init = e1000e_class_init,
     .instance_init = e1000e_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { }
     },
hw/net/eepro100.c +1 -1
index 02a4e787f67..10d4a00ec99 100644
@@ -2096,7 +2096,7 @@ static void eepro100_register_types(void)
         type_info.class_init = eepro100_class_init;
         type_info.instance_size = sizeof(EEPRO100State);
         type_info.instance_init = eepro100_instance_init;
-        type_info.interfaces = (InterfaceInfo[]) {
+        type_info.interfaces = (const InterfaceInfo[]) {
             { INTERFACE_CONVENTIONAL_PCI_DEVICE },
             { },
         };
hw/net/igb.c +1 -1
index 61e7ea7896b..62c5869f51d 100644
@@ -632,7 +632,7 @@ static const TypeInfo igb_info = {
     .instance_size = sizeof(IGBState),
     .class_init = igb_class_init,
     .instance_init = igb_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { }
     },
hw/net/igbvf.c +1 -1
index 91e7ccf931b..31d72c4977d 100644
@@ -325,7 +325,7 @@ static const TypeInfo igbvf_info = {
     .parent = TYPE_PCI_DEVICE,
     .instance_size = sizeof(IgbVfState),
     .class_init = igbvf_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { }
     },
hw/net/ne2000-pci.c +1 -1
index 2153973af43..ce937e1b618 100644
@@ -122,7 +122,7 @@ static const TypeInfo ne2000_info = {
     .instance_size = sizeof(PCINE2000State),
     .class_init    = ne2000_class_init,
     .instance_init = ne2000_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/net/pcnet-pci.c +1 -1
index 429c2171803..0ca5bc21938 100644
@@ -280,7 +280,7 @@ static const TypeInfo pcnet_info = {
     .instance_size = sizeof(PCIPCNetState),
     .class_init    = pcnet_class_init,
     .instance_init = pcnet_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/net/rocker/rocker.c +1 -1
index 3d307f4ab15..cc49701dd3c 100644
@@ -1498,7 +1498,7 @@ static const TypeInfo rocker_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(Rocker),
     .class_init    = rocker_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/net/rtl8139.c +1 -1
index ad812954cf8..15b8f7501ae 100644
@@ -3438,7 +3438,7 @@ static const TypeInfo rtl8139_info = {
     .instance_size = sizeof(RTL8139State),
     .class_init    = rtl8139_class_init,
     .instance_init = rtl8139_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/net/sungem.c +1 -1
index 123d08ee8e3..b405eb89fa5 100644
@@ -1477,7 +1477,7 @@ static const TypeInfo sungem_info = {
     .instance_size = sizeof(SunGEMState),
     .class_init    = sungem_class_init,
     .instance_init = sungem_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { }
     }
hw/net/sunhme.c +1 -1
index 46c9f5020b1..c2f7a8483da 100644
@@ -958,7 +958,7 @@ static const TypeInfo sunhme_info = {
     .class_init    = sunhme_class_init,
     .instance_size = sizeof(SunHMEState),
     .instance_init = sunhme_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { }
     }
hw/net/tulip.c +1 -1
index fb3366d8ee3..63fe5134586 100644
@@ -1035,7 +1035,7 @@ static const TypeInfo tulip_info = {
     .instance_size = sizeof(TULIPState),
     .class_init    = tulip_class_init,
     .instance_init = tulip_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/net/vmxnet3.c +1 -1
index 702a0ac78dc..85c230e3e93 100644
@@ -2523,7 +2523,7 @@ static const TypeInfo vmxnet3_info = {
     .instance_size = sizeof(VMXNET3State),
     .class_init    = vmxnet3_class_init,
     .instance_init = vmxnet3_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { }
hw/net/xilinx_axienet.c +2 -2
index e45bc048e05..1f5c7480476 100644
@@ -1045,7 +1045,7 @@ static const TypeInfo xilinx_enet_data_stream_info = {
     .parent        = TYPE_OBJECT,
     .instance_size = sizeof(XilinxAXIEnetStreamSink),
     .class_init    = xilinx_enet_data_stream_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
             { TYPE_STREAM_SINK },
             { }
     }
@@ -1056,7 +1056,7 @@ static const TypeInfo xilinx_enet_control_stream_info = {
     .parent        = TYPE_OBJECT,
     .instance_size = sizeof(XilinxAXIEnetStreamSink),
     .class_init    = xilinx_enet_control_stream_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
             { TYPE_STREAM_SINK },
             { }
     }
hw/nvme/ctrl.c +1 -1
index a49f1ea9cfe..5c378034ee1 100644
@@ -9097,7 +9097,7 @@ static const TypeInfo nvme_info = {
     .instance_size = sizeof(NvmeCtrl),
     .instance_init = nvme_instance_init,
     .class_init    = nvme_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { }
     },
hw/pci-bridge/cxl_downstream.c +1 -1
index ab3b550a889..1065245a8b8 100644
@@ -241,7 +241,7 @@ static const TypeInfo cxl_dsp_info = {
     .instance_size = sizeof(CXLDownstreamPort),
     .parent = TYPE_PCIE_SLOT,
     .class_init = cxl_dsp_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { INTERFACE_CXL_DEVICE },
         { }
hw/pci-bridge/cxl_root_port.c +1 -1
index 8b1e149e9ba..e6a4035d26c 100644
@@ -294,7 +294,7 @@ static const TypeInfo cxl_root_port_info = {
     .parent = TYPE_PCIE_ROOT_PORT,
     .instance_size = sizeof(CXLRootPort),
     .class_init = cxl_root_port_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CXL_DEVICE },
         { }
     },
hw/pci-bridge/cxl_upstream.c +1 -1
index 822a8285554..208e0c6172e 100644
@@ -394,7 +394,7 @@ static const TypeInfo cxl_usp_info = {
     .parent = TYPE_PCIE_PORT,
     .instance_size = sizeof(CXLUpstreamPort),
     .class_init = cxl_upstream_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { INTERFACE_CXL_DEVICE },
         { }
hw/pci-bridge/i82801b11.c +1 -1
index f2b294aee27..1d73c14c1f8 100644
@@ -107,7 +107,7 @@ static const TypeInfo i82801b11_bridge_info = {
     .parent        = TYPE_PCI_BRIDGE,
     .instance_size = sizeof(I82801b11Bridge),
     .class_init    = i82801b11_bridge_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-bridge/pci_bridge_dev.c +1 -1
index 4ac07e82567..3df2517dbc9 100644
@@ -268,7 +268,7 @@ static const TypeInfo pci_bridge_dev_info = {
     .instance_size     = sizeof(PCIBridgeDev),
     .class_init        = pci_bridge_dev_class_init,
     .instance_finalize = pci_bridge_dev_instance_finalize,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { }
hw/pci-bridge/pci_expander_bridge.c +3 -3
index 1e2e394ee8a..3a29dfefc2c 100644
@@ -449,7 +449,7 @@ static const TypeInfo pxb_dev_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PXBDev),
     .class_init    = pxb_dev_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
@@ -486,7 +486,7 @@ static const TypeInfo pxb_pcie_dev_info = {
     .parent        = TYPE_PXB_DEV,
     .instance_size = sizeof(PXBPCIEDev),
     .class_init    = pxb_pcie_dev_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
@@ -537,7 +537,7 @@ static const TypeInfo pxb_cxl_dev_info = {
     .instance_size = sizeof(PXBCXLDev),
     .class_init    = pxb_cxl_dev_class_init,
     .interfaces =
-        (InterfaceInfo[]){
+        (const InterfaceInfo[]){
             { INTERFACE_CONVENTIONAL_PCI_DEVICE },
             {},
         },
hw/pci-bridge/pcie_pci_bridge.c +1 -1
index bb81bccb185..4f3cfb11ceb 100644
@@ -163,7 +163,7 @@ static const TypeInfo pcie_pci_bridge_info = {
         .parent = TYPE_PCI_BRIDGE,
         .instance_size = sizeof(PCIEPCIBridge),
         .class_init = pcie_pci_bridge_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { TYPE_HOTPLUG_HANDLER },
             { INTERFACE_PCIE_DEVICE },
             { },
hw/pci-bridge/pcie_root_port.c +1 -1
index 512c2ab305c..22c2fdb71e7 100644
@@ -188,7 +188,7 @@ static const TypeInfo rp_info = {
     .class_init    = rp_class_init,
     .abstract      = true,
     .class_size = sizeof(PCIERootPortClass),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { }
     },
hw/pci-bridge/simba.c +1 -1
index c7565d9e946..bbae594e119 100644
@@ -87,7 +87,7 @@ static const TypeInfo simba_pci_bridge_info = {
     .parent        = TYPE_PCI_BRIDGE,
     .class_init    = simba_pci_bridge_class_init,
     .instance_size = sizeof(SimbaPCIBridge),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-bridge/xio3130_downstream.c +1 -1
index d85c23fe4a8..dc7d1aa7d77 100644
@@ -175,7 +175,7 @@ static const TypeInfo xio3130_downstream_info = {
     .name          = TYPE_XIO3130_DOWNSTREAM,
     .parent        = TYPE_PCIE_SLOT,
     .class_init    = xio3130_downstream_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { }
     },
hw/pci-bridge/xio3130_upstream.c +1 -1
index d7a27158124..40057b749bf 100644
@@ -144,7 +144,7 @@ static const TypeInfo xio3130_upstream_info = {
     .name          = "x3130-upstream",
     .parent        = TYPE_PCIE_PORT,
     .class_init    = xio3130_upstream_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { }
     },
hw/pci-host/articia.c +2 -2
index 043fb85e840..cc65aac2a87 100644
@@ -273,7 +273,7 @@ static const TypeInfo articia_types[] = {
         .parent        = TYPE_PCI_DEVICE,
         .instance_size = sizeof(ArticiaHostState),
         .class_init    = articia_pci_host_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
               { INTERFACE_CONVENTIONAL_PCI_DEVICE },
               { },
         },
@@ -283,7 +283,7 @@ static const TypeInfo articia_types[] = {
         .parent        = TYPE_PCI_DEVICE,
         .instance_size = sizeof(PCIDevice),
         .class_init    = articia_pci_bridge_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
               { INTERFACE_CONVENTIONAL_PCI_DEVICE },
               { },
         },
hw/pci-host/bonito.c +1 -1
index 4508cdd21ae..7d6251a78d7 100644
@@ -783,7 +783,7 @@ static const TypeInfo bonito_pci_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIBonitoState),
     .class_init    = bonito_pci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-host/designware.c +1 -1
index 70759cab149..4a2cf11bac1 100644
@@ -766,7 +766,7 @@ static const TypeInfo designware_pcie_types[] = {
         .parent         = TYPE_PCI_BRIDGE,
         .instance_size  = sizeof(DesignwarePCIERoot),
         .class_init     = designware_pcie_root_class_init,
-        .interfaces     = (InterfaceInfo[]) {
+        .interfaces     = (const InterfaceInfo[]) {
             { INTERFACE_PCIE_DEVICE },
             { }
         },
hw/pci-host/gpex.c +1 -1
index 7dcac4ee3c4..b806a2286f7 100644
@@ -261,7 +261,7 @@ static const TypeInfo gpex_root_info = {
     .parent = TYPE_PCI_DEVICE,
     .instance_size = sizeof(GPEXRootState),
     .class_init = gpex_root_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-host/grackle.c +1 -1
index b48d44623dd..f9da5a908c1 100644
@@ -116,7 +116,7 @@ static const TypeInfo grackle_pci_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIDevice),
     .class_init = grackle_pci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-host/gt64120.c +1 -1
index bd74b6e8714..56a6ef93b7a 100644
@@ -1268,7 +1268,7 @@ static const TypeInfo gt64120_pci_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIDevice),
     .class_init    = gt64120_pci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-host/i440fx.c +1 -1
index fcc9f3818a4..e13bb1b53e4 100644
@@ -341,7 +341,7 @@ static const TypeInfo i440fx_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCII440FXState),
     .class_init    = i440fx_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-host/mv64361.c +1 -1
index 591186f41ff..41a68959831 100644
@@ -46,7 +46,7 @@ static const TypeInfo mv64361_pcibridge_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIDevice),
     .class_init    = mv64361_pcibridge_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-host/pnv_phb3_pbcq.c +1 -1
index 4e24b1449d0..1f7a149580d 100644
@@ -354,7 +354,7 @@ static const TypeInfo pnv_pbcq_type_info = {
     .instance_size = sizeof(PnvPBCQState),
     .instance_init = phb3_pbcq_instance_init,
     .class_init    = pnv_pbcq_class_init,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
hw/pci-host/pnv_phb4.c +1 -1
index feb812dc1a9..77ea35299d3 100644
@@ -1714,7 +1714,7 @@ static const TypeInfo pnv_phb4_type_info = {
     .instance_init = pnv_phb4_instance_init,
     .instance_size = sizeof(PnvPHB4),
     .class_init    = pnv_phb4_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
             { TYPE_XIVE_NOTIFIER },
             { },
     }
hw/pci-host/pnv_phb4_pec.c +2 -2
index a4e5e8c226c..645c745dd45 100644
@@ -340,7 +340,7 @@ static const TypeInfo pnv_pec_type_info = {
     .instance_size = sizeof(PnvPhb4PecState),
     .class_init    = pnv_pec_class_init,
     .class_size    = sizeof(PnvPhb4PecClass),
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
@@ -392,7 +392,7 @@ static const TypeInfo pnv_phb5_pec_type_info = {
     .instance_size = sizeof(PnvPhb4PecState),
     .class_init    = pnv_phb5_pec_class_init,
     .class_size    = sizeof(PnvPhb4PecClass),
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
hw/pci-host/ppc4xx_pci.c +1 -1
index dcc4b78660c..25478176881 100644
@@ -370,7 +370,7 @@ static const TypeInfo ppc4xx_host_bridge_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIDevice),
     .class_init    = ppc4xx_host_bridge_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-host/ppce500.c +1 -1
index 2f6354c931e..e97a515d5fe 100644
@@ -528,7 +528,7 @@ static const TypeInfo e500_pci_types[] = {
         .parent        = TYPE_PCI_DEVICE,
         .instance_size = sizeof(PPCE500PCIBridgeState),
         .class_init    = e500_host_bridge_class_init,
-        .interfaces    = (InterfaceInfo[]) {
+        .interfaces    = (const InterfaceInfo[]) {
             { INTERFACE_CONVENTIONAL_PCI_DEVICE },
             { },
         },
hw/pci-host/q35.c +1 -1
index c2a71108f2e..1951ae440cc 100644
@@ -703,7 +703,7 @@ static const TypeInfo mch_info = {
     .parent = TYPE_PCI_DEVICE,
     .instance_size = sizeof(MCHPCIState),
     .class_init = mch_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-host/raven.c +1 -1
index 3f158838a0a..21f7ca65e06 100644
@@ -416,7 +416,7 @@ static const TypeInfo raven_info = {
     .parent = TYPE_PCI_DEVICE,
     .instance_size = sizeof(RavenPCIState),
     .class_init = raven_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-host/sabre.c +1 -1
index f7086086f9a..538624c5079 100644
@@ -477,7 +477,7 @@ static const TypeInfo sabre_pci_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(SabrePCIState),
     .class_init    = sabre_pci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-host/sh_pci.c +1 -1
index 52bff66d6a1..de8f6a84aab 100644
@@ -186,7 +186,7 @@ static const TypeInfo sh_pcic_types[] = {
         .parent         = TYPE_PCI_DEVICE,
         .instance_size  = sizeof(PCIDevice),
         .class_init     = sh_pcic_pci_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { INTERFACE_CONVENTIONAL_PCI_DEVICE },
             { },
         },
hw/pci-host/uninorth.c +4 -4
index 7cb37e01d8f..194037d6e75 100644
@@ -333,7 +333,7 @@ static const TypeInfo unin_main_pci_host_info = {
     .parent = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIDevice),
     .class_init = unin_main_pci_host_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
@@ -361,7 +361,7 @@ static const TypeInfo u3_agp_pci_host_info = {
     .parent = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIDevice),
     .class_init = u3_agp_pci_host_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
@@ -389,7 +389,7 @@ static const TypeInfo unin_agp_pci_host_info = {
     .parent = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIDevice),
     .class_init = unin_agp_pci_host_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
@@ -418,7 +418,7 @@ static const TypeInfo unin_internal_pci_host_info = {
     .parent = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIDevice),
     .class_init = unin_internal_pci_host_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-host/versatile.c +1 -1
index 10bb89f528f..24458b676e9 100644
@@ -492,7 +492,7 @@ static const TypeInfo versatile_pci_host_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIDevice),
     .class_init    = versatile_pci_host_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/pci-host/xilinx-pcie.c +1 -1
index 70e9b2b9810..c71492de9e7 100644
@@ -314,7 +314,7 @@ static const TypeInfo xilinx_pcie_root_info = {
     .parent = TYPE_PCI_BRIDGE,
     .instance_size = sizeof(XilinxPCIERoot),
     .class_init = xilinx_pcie_root_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { }
     },
hw/pci/pci.c +1 -1
index e9e0524f5c3..4529241ee8f 100644
@@ -288,7 +288,7 @@ static const TypeInfo pci_bus_info = {
     .instance_size = sizeof(PCIBus),
     .class_size = sizeof(PCIBusClass),
     .class_init = pci_bus_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_FW_CFG_DATA_GENERATOR_INTERFACE },
         { }
     }
hw/pci/pci_bridge.c +1 -1
index 0fe66e8b12d..76255c4cd89 100644
@@ -497,7 +497,7 @@ static const TypeInfo pci_bridge_type_info = {
     .instance_size = sizeof(PCIBridge),
     .class_init = pci_bridge_class_init,
     .abstract = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_ACPI_DEV_AML_IF },
         { },
     },
hw/pci/pcie_port.c +1 -1
index 8629b3aafd6..54f639e3d4f 100644
@@ -230,7 +230,7 @@ static const TypeInfo pcie_slot_type_info = {
     .instance_size = sizeof(PCIESlot),
     .abstract = true,
     .class_init = pcie_slot_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     }
hw/ppc/e500plat.c +1 -1
index cd594eeb3ed..775b9d8da00 100644
@@ -107,7 +107,7 @@ static const TypeInfo e500plat_info = {
     .name          = TYPE_E500PLAT_MACHINE,
     .parent        = TYPE_PPCE500_MACHINE,
     .class_init    = e500plat_machine_class_init,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
          { TYPE_HOTPLUG_HANDLER },
          { }
     }
hw/ppc/mac_newworld.c +1 -1
index dc4bd85544a..bc74808a785 100644
@@ -645,7 +645,7 @@ static const TypeInfo core99_machine_info = {
     .class_init    = core99_machine_class_init,
     .instance_init = core99_instance_init,
     .instance_size = sizeof(Core99MachineState),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_FW_PATH_PROVIDER },
         { }
     },
hw/ppc/mac_oldworld.c +1 -1
index 3906fb724e6..614929b463e 100644
@@ -434,7 +434,7 @@ static const TypeInfo ppc_heathrow_machine_info = {
     .name          = MACHINE_TYPE_NAME("g3beige"),
     .parent        = TYPE_MACHINE,
     .class_init    = heathrow_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_FW_PATH_PROVIDER },
         { }
     },
hw/ppc/pegasos2.c +1 -1
index dac1f11c225..724299c7b69 100644
@@ -620,7 +620,7 @@ static const TypeInfo pegasos2_machine_info = {
     .parent        = TYPE_MACHINE,
     .class_init    = pegasos2_machine_class_init,
     .instance_size = sizeof(Pegasos2MachineState),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_PPC_VIRTUAL_HYPERVISOR },
         { TYPE_VOF_MACHINE_IF },
         { }
hw/ppc/pnv.c +4 -4
index 6d95e24dd2b..8bf8c1149d0 100644
@@ -2926,7 +2926,7 @@ static const TypeInfo types[] = {
         .name          = MACHINE_TYPE_NAME("powernv10"),
         .parent        = TYPE_PNV_MACHINE,
         .class_init    = pnv_machine_power10_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { TYPE_XIVE_FABRIC },
             { },
         },
@@ -2935,7 +2935,7 @@ static const TypeInfo types[] = {
         .name          = MACHINE_TYPE_NAME("powernv9"),
         .parent        = TYPE_PNV_MACHINE,
         .class_init    = pnv_machine_power9_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { TYPE_XIVE_FABRIC },
             { },
         },
@@ -2944,7 +2944,7 @@ static const TypeInfo types[] = {
         .name          = MACHINE_TYPE_NAME("powernv8"),
         .parent        = TYPE_PNV_MACHINE,
         .class_init    = pnv_machine_power8_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { TYPE_XICS_FABRIC },
             { },
         },
@@ -2956,7 +2956,7 @@ static const TypeInfo types[] = {
         .instance_size = sizeof(PnvMachineState),
         .class_init    = pnv_machine_class_init,
         .class_size    = sizeof(PnvMachineClass),
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { TYPE_INTERRUPT_STATS_PROVIDER },
             { TYPE_NMI },
             { },
hw/ppc/pnv_adu.c +1 -1
index f9620806ec7..005fbda4750 100644
@@ -204,7 +204,7 @@ static const TypeInfo pnv_adu_type_info = {
     .parent        = TYPE_DEVICE,
     .instance_size = sizeof(PnvADU),
     .class_init    = pnv_adu_class_init,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { } },
 };
hw/ppc/pnv_chiptod.c +2 -2
index 4ca511a4dee..b9e9c7ba3db 100644
@@ -478,7 +478,7 @@ static const TypeInfo pnv_chiptod_power9_type_info = {
     .parent        = TYPE_PNV_CHIPTOD,
     .instance_size = sizeof(PnvChipTOD),
     .class_init    = pnv_chiptod_power9_class_init,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
@@ -514,7 +514,7 @@ static const TypeInfo pnv_chiptod_power10_type_info = {
     .parent        = TYPE_PNV_CHIPTOD,
     .instance_size = sizeof(PnvChipTOD),
     .class_init    = pnv_chiptod_power10_class_init,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
hw/ppc/pnv_i2c.c +1 -1
index b2f372c8743..60de4794917 100644
@@ -569,7 +569,7 @@ static const TypeInfo pnv_i2c_info = {
     .parent        = TYPE_DEVICE,
     .instance_size = sizeof(PnvI2C),
     .class_init    = pnv_i2c_class_init,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
hw/ppc/pnv_lpc.c +1 -1
index 84079443738..ae309a130aa 100644
@@ -721,7 +721,7 @@ static const TypeInfo pnv_lpc_power8_info = {
     .name          = TYPE_PNV8_LPC,
     .parent        = TYPE_PNV_LPC,
     .class_init    = pnv_lpc_power8_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
hw/ppc/pnv_n1_chiplet.c +1 -1
index 05e3fd6f731..053f6473f22 100644
@@ -159,7 +159,7 @@ static const TypeInfo pnv_n1_chiplet_info = {
     .instance_init = pnv_n1_chiplet_instance_init,
     .instance_size = sizeof(PnvN1Chiplet),
     .class_init    = pnv_n1_chiplet_class_init,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
hw/ppc/pnv_nest_pervasive.c +1 -1
index b5182d54fa1..1b1b14fed95 100644
@@ -194,7 +194,7 @@ static const TypeInfo pnv_nest_pervasive_info = {
     .parent        = TYPE_DEVICE,
     .instance_size = sizeof(PnvNestChipletPervasive),
     .class_init    = pnv_nest_pervasive_class_init,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
hw/ppc/pnv_psi.c +2 -2
index 5eed22252df..1e84ab97aeb 100644
@@ -913,7 +913,7 @@ static const TypeInfo pnv_psi_power9_info = {
     .instance_size = sizeof(Pnv9Psi),
     .instance_init = pnv_psi_power9_instance_init,
     .class_init    = pnv_psi_power9_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
             { TYPE_XIVE_NOTIFIER },
             { },
     },
@@ -959,7 +959,7 @@ static const TypeInfo pnv_psi_info = {
     .class_init    = pnv_psi_class_init,
     .class_size    = sizeof(PnvPsiClass),
     .abstract      = true,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
hw/ppc/spapr.c +1 -1
index bb31dc96a80..6bb226c726f 100644
@@ -4683,7 +4683,7 @@ static const TypeInfo spapr_machine_info = {
     .instance_finalize = spapr_machine_finalizefn,
     .class_size    = sizeof(SpaprMachineClass),
     .class_init    = spapr_machine_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_FW_PATH_PROVIDER },
         { TYPE_NMI },
         { TYPE_HOTPLUG_HANDLER },
hw/ppc/spapr_pci.c +1 -1
index a2f7e731623..ce10818f42f 100644
@@ -2186,7 +2186,7 @@ static const TypeInfo spapr_phb_info = {
     .instance_size = sizeof(SpaprPhbState),
     .instance_finalize = spapr_phb_finalizefn,
     .class_init    = spapr_phb_class_init,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     }
hw/remote/machine.c +1 -1
index dadc5ce3307..0cc3c3ad770 100644
@@ -146,7 +146,7 @@ static const TypeInfo remote_machine = {
     .instance_size = sizeof(RemoteMachineState),
     .instance_init = remote_machine_instance_init,
     .class_init = remote_machine_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     }
hw/remote/proxy.c +1 -1
index d2de48c9e37..b0165aa2a1d 100644
@@ -215,7 +215,7 @@ static const TypeInfo pci_proxy_dev_type_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIProxyDev),
     .class_init    = pci_proxy_dev_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/remote/remote-obj.c +1 -1
index 75f8d6df8a1..85882902d7f 100644
@@ -188,7 +188,7 @@ static const TypeInfo remote_object_info = {
     .instance_finalize = remote_object_finalize,
     .class_size = sizeof(RemoteObjectClass),
     .class_init = remote_object_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
hw/remote/vfio-user-obj.c +1 -1
index 23f339936a2..803ca656a29 100644
@@ -944,7 +944,7 @@ static const TypeInfo vfu_object_info = {
     .instance_finalize = vfu_object_finalize,
     .class_size = sizeof(VfuObjectClass),
     .class_init = vfu_object_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
hw/riscv/riscv-iommu-pci.c +1 -1
index 4e0e3cc5be5..106410b7ca4 100644
@@ -208,7 +208,7 @@ static const TypeInfo riscv_iommu_pci = {
     .class_init = riscv_iommu_pci_class_init,
     .instance_init = riscv_iommu_pci_init,
     .instance_size = sizeof(RISCVIOMMUStatePci),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { },
     },
hw/riscv/virt.c +1 -1
index 1744ed8c73c..eb1878b8b20 100644
@@ -1980,7 +1980,7 @@ static const TypeInfo virt_machine_typeinfo = {
     .class_init = virt_machine_class_init,
     .instance_init = virt_machine_instance_init,
     .instance_size = sizeof(RISCVVirtState),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
          { TYPE_HOTPLUG_HANDLER },
          { }
     },
hw/rtc/m48t59-isa.c +1 -1
index 4a7c0af9f04..9e2f6563a0a 100644
@@ -140,7 +140,7 @@ static const TypeInfo m48txx_isa_type_info = {
     .instance_size = sizeof(M48txxISAState),
     .abstract = true,
     .class_init = m48txx_isa_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_NVRAM },
         { }
     }
hw/rtc/m48t59.c +1 -1
index 821472a680e..68be2dad6f3 100644
@@ -658,7 +658,7 @@ static const TypeInfo m48txx_sysbus_type_info = {
     .instance_init = m48t59_init1,
     .abstract = true,
     .class_init = m48txx_sysbus_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_NVRAM },
         { }
     }
hw/rtc/mc146818rtc.c +1 -1
index 93b632bdf4a..6f787be7af8 100644
@@ -1038,7 +1038,7 @@ static const TypeInfo mc146818rtc_info = {
     .parent        = TYPE_ISA_DEVICE,
     .instance_size = sizeof(MC146818RtcState),
     .class_init    = rtc_class_initfn,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_ACPI_DEV_AML_IF },
         { },
     },
hw/s390x/ap-bridge.c +1 -1
index 4aa7d5a90db..edeb3dbef34 100644
@@ -75,7 +75,7 @@ static const TypeInfo ap_bridge_info = {
     .parent        = TYPE_SYS_BUS_DEVICE,
     .instance_size = 0,
     .class_init    = ap_bridge_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     }
hw/s390x/css-bridge.c +1 -1
index 9d91e5a5fec..0f87b8c5c44 100644
@@ -136,7 +136,7 @@ static const TypeInfo virtual_css_bridge_info = {
     .parent        = TYPE_SYS_BUS_DEVICE,
     .instance_size = sizeof(VirtualCssBridge),
     .class_init    = virtual_css_bridge_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     }
hw/s390x/s390-pci-bus.c +1 -1
index 3edc3493a46..cc777470bc1 100644
@@ -1338,7 +1338,7 @@ static const TypeInfo s390_pcihost_info = {
     .parent        = TYPE_PCI_HOST_BRIDGE,
     .instance_size = sizeof(S390pciState),
     .class_init    = s390_pcihost_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     }
hw/s390x/s390-virtio-ccw.c +1 -1
index 74848d34710..e95f885bce6 100644
@@ -873,7 +873,7 @@ static const TypeInfo ccw_machine_info = {
     .instance_init = s390_machine_initfn,
     .class_size = sizeof(S390CcwMachineClass),
     .class_init    = ccw_machine_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_NMI },
         { TYPE_HOTPLUG_HANDLER},
         { }
hw/s390x/virtio-ccw-md.c +1 -1
index de333282df4..0370f584505 100644
@@ -140,7 +140,7 @@ static const TypeInfo virtio_ccw_md_info = {
     .instance_size = sizeof(VirtIOMDCcw),
     .class_size = sizeof(VirtIOMDCcwClass),
     .abstract = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_MEMORY_DEVICE },
         { }
     },
hw/scsi/esp-pci.c +1 -1
index 74e9af0b5d8..12c86eb7aaa 100644
@@ -450,7 +450,7 @@ static const TypeInfo esp_pci_info = {
     .instance_init = esp_pci_init,
     .instance_size = sizeof(PCIESPState),
     .class_init = esp_pci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/scsi/lsi53c895a.c +1 -1
index 81da262289c..4f01ab2ce08 100644
@@ -2396,7 +2396,7 @@ static const TypeInfo lsi_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(LSIState),
     .class_init    = lsi_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/scsi/megasas.c +3 -3
index 6104d4202aa..03cd837b44f 100644
@@ -2487,7 +2487,7 @@ typedef struct MegasasInfo {
     const VMStateDescription *vmsd;
     const Property *props;
     size_t props_count;
-    InterfaceInfo *interfaces;
+    const InterfaceInfo *interfaces;
 } MegasasInfo;
 
 static struct MegasasInfo megasas_devices[] = {
@@ -2504,7 +2504,7 @@ static struct MegasasInfo megasas_devices[] = {
         .vmsd = &vmstate_megasas_gen1,
         .props = megasas_properties_gen1,
         .props_count = ARRAY_SIZE(megasas_properties_gen1),
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { INTERFACE_CONVENTIONAL_PCI_DEVICE },
             { },
         },
@@ -2521,7 +2521,7 @@ static struct MegasasInfo megasas_devices[] = {
         .vmsd = &vmstate_megasas_gen2,
         .props = megasas_properties_gen2,
         .props_count = ARRAY_SIZE(megasas_properties_gen2),
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { INTERFACE_PCIE_DEVICE },
             { }
         },
hw/scsi/mptsas.c +1 -1
index 17f73ce3816..1ebe0b82a79 100644
@@ -1441,7 +1441,7 @@ static const TypeInfo mptsas_info = {
     .parent = TYPE_PCI_DEVICE,
     .instance_size = sizeof(MPTSASState),
     .class_init = mptsas1068_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/scsi/scsi-bus.c +1 -1
index d7d0ef8f21f..7212e8a84bd 100644
@@ -1995,7 +1995,7 @@ static const TypeInfo scsi_bus_info = {
     .parent = TYPE_BUS,
     .instance_size = sizeof(SCSIBus),
     .class_init = scsi_bus_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     }
hw/scsi/vhost-scsi.c +1 -1
index 6a7bb5949ad..3e5ae2e3379 100644
@@ -398,7 +398,7 @@ static const TypeInfo vhost_scsi_info = {
     .instance_size = sizeof(VHostSCSI),
     .class_init = vhost_scsi_class_init,
     .instance_init = vhost_scsi_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_FW_PATH_PROVIDER },
         { }
     },
hw/scsi/vhost-user-scsi.c +1 -1
index 807a58ecf4c..8298e8cc6d8 100644
@@ -422,7 +422,7 @@ static const TypeInfo vhost_user_scsi_info = {
     .instance_size = sizeof(VHostUserSCSI),
     .class_init = vhost_user_scsi_class_init,
     .instance_init = vhost_user_scsi_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_FW_PATH_PROVIDER },
         { }
     },
hw/scsi/virtio-scsi.c +1 -1
index 8490a4dc711..f0bcf7895ed 100644
@@ -1354,7 +1354,7 @@ static const TypeInfo virtio_scsi_info = {
     .parent = TYPE_VIRTIO_SCSI_COMMON,
     .instance_size = sizeof(VirtIOSCSI),
     .class_init = virtio_scsi_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     }
hw/scsi/vmw_pvscsi.c +1 -1
index a8ea57ffad3..d5825b67868 100644
@@ -1346,7 +1346,7 @@ static const TypeInfo pvscsi_info = {
     .class_size    = sizeof(PVSCSIClass),
     .instance_size = sizeof(PVSCSIState),
     .class_init    = pvscsi_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { INTERFACE_PCIE_DEVICE },
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
hw/sd/sdhci-pci.c +1 -1
index 4c2944df01c..e957dea4827 100644
@@ -73,7 +73,7 @@ static const TypeInfo sdhci_pci_types[] = {
         .parent         = TYPE_PCI_DEVICE,
         .instance_size  = sizeof(SDHCIState),
         .class_init     = sdhci_pci_class_init,
-        .interfaces     = (InterfaceInfo[]) {
+        .interfaces     = (const InterfaceInfo[]) {
             { INTERFACE_CONVENTIONAL_PCI_DEVICE },
             { },
         },
hw/sparc64/sun4u.c +2 -2
index 0794c1fbff0..f92cb599881 100644
@@ -397,7 +397,7 @@ static const TypeInfo ebus_info = {
     .parent        = TYPE_PCI_DEVICE,
     .class_init    = ebus_class_init,
     .instance_size = sizeof(EbusState),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
@@ -817,7 +817,7 @@ static const TypeInfo sun4u_type = {
     .name = MACHINE_TYPE_NAME("sun4u"),
     .parent = TYPE_MACHINE,
     .class_init = sun4u_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_FW_PATH_PROVIDER },
         { }
     },
hw/ssi/pnv_spi.c +1 -1
index 9575cb88fd5..a43878528e0 100644
@@ -1255,7 +1255,7 @@ static const TypeInfo pnv_spi_info = {
     .parent        = TYPE_SYS_BUS_DEVICE,
     .instance_size = sizeof(PnvSpi),
     .class_init    = pnv_spi_class_init,
-    .interfaces    = (InterfaceInfo[]) {
+    .interfaces    = (const InterfaceInfo[]) {
         { TYPE_PNV_XSCOM_INTERFACE },
         { }
     }
hw/tpm/tpm_crb.c +1 -1
index 8a3dd32fbeb..47c3e36282a 100644
@@ -337,7 +337,7 @@ static const TypeInfo tpm_crb_info = {
     .parent = TYPE_DEVICE,
     .instance_size = sizeof(CRBState),
     .class_init  = tpm_crb_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_TPM_IF },
         { }
     }
hw/tpm/tpm_spapr.c +1 -1
index 1cad9a88ead..ea608ba4c80 100644
@@ -414,7 +414,7 @@ static const TypeInfo tpm_spapr_info = {
     .parent        = TYPE_VIO_SPAPR_DEVICE,
     .instance_size = sizeof(SpaprTpmState),
     .class_init    = tpm_spapr_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_TPM_IF },
         { }
     }
hw/tpm/tpm_tis_i2c.c +1 -1
index 2c28028b54f..c23deaf7d96 100644
@@ -556,7 +556,7 @@ static const TypeInfo tpm_tis_i2c_info = {
     .parent        = TYPE_I2C_SLAVE,
     .instance_size = sizeof(TPMStateI2C),
     .class_init    = tpm_tis_i2c_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
         { TYPE_TPM_IF },
         { }
     }
hw/tpm/tpm_tis_isa.c +1 -1
index c0098a26e80..dce83057a94 100644
@@ -189,7 +189,7 @@ static const TypeInfo tpm_tis_isa_info = {
     .instance_size = sizeof(TPMStateISA),
     .instance_init = tpm_tis_isa_initfn,
     .class_init  = tpm_tis_isa_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_TPM_IF },
         { TYPE_ACPI_DEV_AML_IF },
         { }
hw/tpm/tpm_tis_sysbus.c +1 -1
index 862556c3a64..969917c4c08 100644
@@ -146,7 +146,7 @@ static const TypeInfo tpm_tis_sysbus_info = {
     .instance_size = sizeof(TPMStateSysBus),
     .instance_init = tpm_tis_sysbus_initfn,
     .class_init  = tpm_tis_sysbus_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_TPM_IF },
         { }
     }
hw/ufs/ufs.c +1 -1
index 24dcdc7ee36..54acdc56068 100644
@@ -1813,7 +1813,7 @@ static const TypeInfo ufs_info = {
     .parent = TYPE_PCI_DEVICE,
     .class_init = ufs_class_init,
     .instance_size = sizeof(UfsHc),
-    .interfaces = (InterfaceInfo[]){ { INTERFACE_PCIE_DEVICE }, {} },
+    .interfaces = (const InterfaceInfo[]){ { INTERFACE_PCIE_DEVICE }, {} },
 };
 
 static const TypeInfo ufs_bus_info = {
hw/usb/bus.c +1 -1
index d8446cf50e6..8dd2ce415eb 100644
@@ -42,7 +42,7 @@ static const TypeInfo usb_bus_info = {
     .parent = TYPE_BUS,
     .instance_size = sizeof(USBBus),
     .class_init = usb_bus_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     }
hw/usb/dev-smartcard-reader.c +1 -1
index 1bb4332238f..73a624aec69 100644
@@ -1459,7 +1459,7 @@ static const TypeInfo ccid_info = {
     .parent        = TYPE_USB_DEVICE,
     .instance_size = sizeof(USBCCIDState),
     .class_init    = ccid_class_initfn,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     }
hw/usb/hcd-ehci-pci.c +1 -1
index 73122aa7971..38ad3406b32 100644
@@ -172,7 +172,7 @@ static const TypeInfo ehci_pci_type_info = {
     .instance_finalize = usb_ehci_pci_finalize,
     .abstract = true,
     .class_init = ehci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/usb/hcd-ohci-pci.c +1 -1
index 3c82525a1e4..94d1077eb9e 100644
@@ -149,7 +149,7 @@ static const TypeInfo ohci_pci_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(OHCIPCIState),
     .class_init    = ohci_pci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/usb/hcd-uhci.c +1 -1
index 2b1aee1f21f..4822c704f69 100644
@@ -1278,7 +1278,7 @@ static const TypeInfo uhci_pci_type_info = {
     .class_size    = sizeof(UHCIPCIDeviceClass),
     .abstract = true,
     .class_init = uhci_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/usb/hcd-xhci-pci.c +1 -1
index cc5c4e600e0..9128cbf16c9 100644
@@ -224,7 +224,7 @@ static const TypeInfo xhci_pci_info = {
     .class_init    = xhci_class_init,
     .instance_init = xhci_instance_init,
     .abstract      = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { }
hw/vfio/igd.c +1 -1
index ebeceaadcd9..e92678fcc07 100644
@@ -265,7 +265,7 @@ static const TypeInfo vfio_pci_igd_lpc_bridge_info = {
     .name = "vfio-pci-igd-lpc-bridge",
     .parent = TYPE_PCI_DEVICE,
     .class_init = vfio_pci_igd_lpc_bridge_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/vfio/pci.c +1 -1
index 5f3d7d044f3..c595f67c7b7 100644
@@ -3442,7 +3442,7 @@ static const TypeInfo vfio_pci_dev_info = {
     .class_init = vfio_pci_dev_class_init,
     .instance_init = vfio_instance_init,
     .instance_finalize = vfio_instance_finalize,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_PCIE_DEVICE },
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { }
hw/virtio/virtio-md-pci.c +1 -1
index 9ec50676626..9278b32cf84 100644
@@ -138,7 +138,7 @@ static const TypeInfo virtio_md_pci_info = {
     .instance_size = sizeof(VirtIOMDPCI),
     .class_size = sizeof(VirtIOMDPCIClass),
     .abstract = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_MEMORY_DEVICE },
         { }
     },
hw/virtio/virtio-mem.c +1 -1
index 9fc05a11da0..f8e8d52d992 100644
@@ -1909,7 +1909,7 @@ static const TypeInfo virtio_mem_info = {
     .instance_finalize = virtio_mem_instance_finalize,
     .class_init = virtio_mem_class_init,
     .class_size = sizeof(VirtIOMEMClass),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_RAM_DISCARD_MANAGER },
         { }
     },
hw/virtio/virtio-pci.c +3 -3
index 48082445bc6..a72f878e949 100644
@@ -2484,7 +2484,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
         .name = t->generic_name,
         .parent = base_type_info.name,
         .class_init = virtio_pci_generic_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { INTERFACE_PCIE_DEVICE },
             { INTERFACE_CONVENTIONAL_PCI_DEVICE },
             { }
@@ -2519,7 +2519,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
             .name          = t->non_transitional_name,
             .parent        = base_type_info.name,
             .instance_init = virtio_pci_non_transitional_instance_init,
-            .interfaces = (InterfaceInfo[]) {
+            .interfaces = (const InterfaceInfo[]) {
                 { INTERFACE_PCIE_DEVICE },
                 { INTERFACE_CONVENTIONAL_PCI_DEVICE },
                 { }
@@ -2533,7 +2533,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
             .name          = t->transitional_name,
             .parent        = base_type_info.name,
             .instance_init = virtio_pci_transitional_instance_init,
-            .interfaces = (InterfaceInfo[]) {
+            .interfaces = (const InterfaceInfo[]) {
                 /*
                  * Transitional virtio devices work only as Conventional PCI
                  * devices because they require PIO ports.
hw/watchdog/wdt_i6300esb.c +1 -1
index 1536e1fe032..bb8a2766b69 100644
@@ -480,7 +480,7 @@ static const TypeInfo i6300esb_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(I6300State),
     .class_init    = i6300esb_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
hw/xen/xen-bus.c +1 -1
index 435e03a1e72..eff5d1a059e 100644
@@ -399,7 +399,7 @@ static const TypeInfo xen_bus_type_info = {
     .instance_size = sizeof(XenBus),
     .class_size = sizeof(XenBusClass),
     .class_init = xen_bus_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     },
hw/xen/xen-legacy-backend.c +1 -1
index 938dd8fb28f..eb1cb590b53 100644
@@ -663,7 +663,7 @@ static const TypeInfo xensysbus_info = {
     .name       = TYPE_XENSYSBUS,
     .parent     = TYPE_BUS,
     .class_init = xen_sysbus_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_HOTPLUG_HANDLER },
         { }
     }
hw/xen/xen_pt.c +1 -1
index d9f1ddd25c6..6ab06d8ff6c 100644
@@ -1019,7 +1019,7 @@ static const TypeInfo xen_pci_passthrough_info = {
     .class_init = xen_pci_passthrough_class_init,
     .class_size = sizeof(XenPTDeviceClass),
     .instance_init = xen_pci_passthrough_instance_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { INTERFACE_PCIE_DEVICE },
         { },
hw/xen/xen_pt_graphics.c +1 -1
index 264851ece36..2c0cec97234 100644
@@ -363,7 +363,7 @@ static const TypeInfo isa_bridge_info = {
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIDevice),
     .class_init = isa_bridge_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { INTERFACE_CONVENTIONAL_PCI_DEVICE },
         { },
     },
net/can/can_core.c +1 -1
index e16e15c036e..77fe2b8ba48 100644
@@ -162,7 +162,7 @@ static const TypeInfo can_bus_info = {
     .instance_size = sizeof(CanBusState),
     .instance_init = can_bus_instance_init,
     .class_init = can_bus_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
net/can/can_host.c +1 -1
index ca5fcf1ea12..3f9bb33e474 100644
@@ -92,7 +92,7 @@ static const TypeInfo can_host_info = {
     .class_size = sizeof(CanHostClass),
     .abstract = true,
     .class_init = can_host_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
net/colo-compare.c +1 -1
index 7e5f6e09dba..fe39038d00e 100644
@@ -1478,7 +1478,7 @@ static const TypeInfo colo_compare_info = {
     .instance_finalize = colo_compare_finalize,
     .class_size = sizeof(CompareClass),
     .class_init = colo_compare_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
net/filter.c +1 -1
index 03b3c793f76..c7cc6615dc9 100644
@@ -363,7 +363,7 @@ static const TypeInfo netfilter_info = {
     .instance_size = sizeof(NetFilterState),
     .instance_init = netfilter_init,
     .instance_finalize = netfilter_finalize,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
scsi/pr-manager.c +1 -1
index 1977d99ce0d..40e1210eb21 100644
@@ -77,7 +77,7 @@ static const TypeInfo pr_manager_info = {
     .name = TYPE_PR_MANAGER,
     .class_size = sizeof(PRManagerClass),
     .abstract = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
system/qtest.c +1 -1
index 7a8b9ff2a76..1613771de0b 100644
@@ -1012,7 +1012,7 @@ static const TypeInfo qtest_info = {
     .parent = TYPE_OBJECT,
     .class_init = qtest_class_init,
     .instance_size = sizeof(QTest),
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
target/i386/sev.c +1 -1
index f44cc1d2153..6e34f934df5 100644
@@ -2088,7 +2088,7 @@ static const TypeInfo sev_common_info = {
     .class_size = sizeof(SevCommonStateClass),
     .class_init = sev_common_class_init,
     .abstract = true,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
target/ppc/cpu_init.c +1 -1
index 864741e85ec..0e72aa10b91 100644
@@ -7519,7 +7519,7 @@ static const TypeInfo ppc_cpu_type_info = {
     .class_size = sizeof(PowerPCCPUClass),
     .class_init = ppc_cpu_class_init,
 #ifndef CONFIG_USER_ONLY
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
           { TYPE_INTERRUPT_STATS_PROVIDER },
           { }
     },
tests/unit/check-qom-interface.c +1 -1
index 4e1c4d67297..86ae5f6c3b1 100644
@@ -52,7 +52,7 @@ static const TypeInfo direct_impl_info = {
     .name = TYPE_DIRECT_IMPL,
     .parent = TYPE_OBJECT,
     .class_init = test_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_TEST_IF },
         { }
     }
tests/unit/check-qom-proplist.c +1 -1
index f1de1618f60..ee3c6fb32b1 100644
@@ -164,7 +164,7 @@ static const TypeInfo dummy_info = {
     .instance_finalize = dummy_finalize,
     .class_size = sizeof(DummyObjectClass),
     .class_init = dummy_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
ui/dbus.c +1 -1
index 0c0f86eaa6f..dd0336702de 100644
@@ -514,7 +514,7 @@ static const TypeInfo dbus_display_info = {
     .instance_init = dbus_display_init,
     .instance_finalize = dbus_display_finalize,
     .class_init = dbus_display_class_init,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
ui/input-barrier.c +1 -1
index 9dce31ea9a7..9793258aac1 100644
@@ -732,7 +732,7 @@ static const TypeInfo input_barrier_info = {
     .instance_size = sizeof(InputBarrier),
     .instance_init = input_barrier_instance_init,
     .instance_finalize = input_barrier_instance_finalize,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
ui/input-linux.c +1 -1
index b940198bfe2..147f0052c89 100644
@@ -523,7 +523,7 @@ static const TypeInfo input_linux_info = {
     .instance_size = sizeof(InputLinux),
     .instance_init = input_linux_instance_init,
     .instance_finalize = input_linux_instance_finalize,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
util/thread-context.c +1 -1
index 95228a3d4f6..0146154fa56 100644
@@ -319,7 +319,7 @@ static const TypeInfo thread_context_info = {
     .instance_size = sizeof(ThreadContext),
     .instance_init = thread_context_instance_init,
     .instance_finalize = thread_context_instance_finalize,
-    .interfaces = (InterfaceInfo[]) {
+    .interfaces = (const InterfaceInfo[]) {
         { TYPE_USER_CREATABLE },
         { }
     }
hw/display/apple-gfx-pci.m +1 -1
index 2f0d24f7fee..b0694f4cb85 100644
@@ -147,7 +147,7 @@ static void apple_gfx_pci_class_init(ObjectClass *klass, const void *data)
         .instance_size = sizeof(AppleGFXPCIState),
         .class_init    = apple_gfx_pci_class_init,
         .instance_init = apple_gfx_pci_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { INTERFACE_PCIE_DEVICE },
             { },
         },
rust/qemu-api/src/qom.rs +1 -1
index b007f089153..0faca41affe 100644
@@ -497,7 +497,7 @@ pub trait ObjectImpl: ObjectType + ClassInitImpl<Self::Class> {
         class_init: Some(rust_class_init::<Self>),
         class_base_init: Self::CLASS_BASE_INIT,
         class_data: core::ptr::null(),
-        interfaces: core::ptr::null_mut(),
+        interfaces: core::ptr::null(),
     };
 
     // methods on ObjectClass
scripts/codeconverter/codeconverter/test_regexps.py +5 -5
index 08857c5008d..4526268ae80 100644
@@ -77,8 +77,8 @@ def fullmatch(regexp, s):
     assert fullmatch(RE_ARRAY_ITEM, '{ TYPE_HOTPLUG_HANDLER },')
     assert fullmatch(RE_ARRAY_ITEM, '{ TYPE_ACPI_DEVICE_IF },')
     assert fullmatch(RE_ARRAY_ITEM, '{ }')
-    assert fullmatch(RE_ARRAY_CAST, '(InterfaceInfo[])')
-    assert fullmatch(RE_ARRAY, '''(InterfaceInfo[]) {
+    assert fullmatch(RE_ARRAY_CAST, '(const InterfaceInfo[])')
+    assert fullmatch(RE_ARRAY, '''(const InterfaceInfo[]) {
             { TYPE_HOTPLUG_HANDLER },
             { TYPE_ACPI_DEVICE_IF },
             { }
@@ -98,7 +98,7 @@ def fullmatch(regexp, s):
         .parent = TYPE_DEVICE,
         .instance_size = sizeof(CRBState),
         .class_init  = tpm_crb_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { TYPE_TPM_IF },
             { }
         }
@@ -134,7 +134,7 @@ def fullmatch(regexp, s):
         .instance_size = sizeof(AcpiGedState),
         .instance_init  = acpi_ged_initfn,
         .class_init    = acpi_ged_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { TYPE_HOTPLUG_HANDLER },
             { TYPE_ACPI_DEVICE_IF },
             { }
@@ -164,7 +164,7 @@ def fullmatch(regexp, s):
         .parent = TYPE_DEVICE,
         .instance_size = sizeof(CRBState),
         .class_init  = tpm_crb_class_init,
-        .interfaces = (InterfaceInfo[]) {
+        .interfaces = (const InterfaceInfo[]) {
             { TYPE_TPM_IF },
             { }
         }
Signature · 1 line
2.47.1
#14 lore raw

PATCH v3 12/19 hw/virtio/virtio-pci: Always allocate QOM type base_name

In reply to Philippe Mathieu-Daudé

Introduce 'single_generic_device' boolean for clarity. Allocate base_name on entry. Replace the g_free() call by g_autofree qualifier. Use g_strconcat() instead of g_strdup_printf().

---
 hw/virtio/virtio-pci.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
hw/virtio/virtio-pci.c +6 -5
index a72f878e949..15383570c91 100644
@@ -2469,7 +2469,12 @@ static void virtio_pci_non_transitional_instance_init(Object *obj)
 
 void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
 {
-    char *base_name = NULL;
+    /* No base type -> register a single generic device type */
+    bool single_generic_device = !t->base_name;
+    /* use intermediate %s-base-type to add generic device props */
+    g_autofree char *base_name = single_generic_device
+                                 ? g_strconcat(t->generic_name, "-base-type", NULL)
+                                 : NULL;
     TypeInfo base_type_info = {
         .name          = t->base_name,
         .parent        = t->parent ? t->parent : TYPE_VIRTIO_PCI,
@@ -2492,9 +2497,6 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
     };
 
     if (!base_type_info.name) {
-        /* No base type -> register a single generic device type */
-        /* use intermediate %s-base-type to add generic device props */
-        base_name = g_strdup_printf("%s-base-type", t->generic_name);
         base_type_info.name = base_name;
         base_type_info.class_init = virtio_pci_generic_class_init;
 
@@ -2544,7 +2546,6 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
         };
         type_register_static(&transitional_type_info);
     }
-    g_free(base_name);
 }
 
 unsigned virtio_pci_optimal_num_queues(unsigned fixed_queues)
Signature · 1 line
2.47.1
#15 lore raw

Re: [PATCH v3 12/19] hw/virtio/virtio-pci: Always allocate QOM type base_name

Quoted 15 lines · Philippe Mathieu-Daudé

Introduce 'single_generic_device' boolean for clarity. Allocate base_name on entry. Replace the g_free() call by g_autofree qualifier. Use g_strconcat() instead of g_strdup_printf().

---
  hw/virtio/virtio-pci.c | 11 ++++++-----
  1 file changed, 6 insertions(+), 5 deletions(-)
hw/virtio/virtio-pci.c +0 -0
index a72f878e949..15383570c91 100644

hw/virtio/virtio-pci.c static void virtio_pci_non_transitional_instance_init(Object *obj) · line 2473

Quoted 6 lines
hw/virtio/virtio-pci.c +2 -1
@@ -2469,7 +2469,12 @@ static void virtio_pci_non_transitional_instance_init(Object *obj)
 
  void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
  {
-    char *base_name = NULL;
+    /* No base type -> register a single generic device type */
+    bool single_generic_device = !t->base_name;

If you're going to introduce this name, you should use it beyond just the next line. Most of the rest of the function could use this instead of repeated checks against t->base_name.

r~

Quoted 25 lines
hw/virtio/virtio-pci.c +4 -4
+    /* use intermediate %s-base-type to add generic device props */
+    g_autofree char *base_name = single_generic_device
+                                 ? g_strconcat(t->generic_name, "-base-type", NULL)
+                                 : NULL;
      TypeInfo base_type_info = {
          .name          = t->base_name,
          .parent        = t->parent ? t->parent : TYPE_VIRTIO_PCI,
@@ -2492,9 +2497,6 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
      };
 
      if (!base_type_info.name) {
-        /* No base type -> register a single generic device type */
-        /* use intermediate %s-base-type to add generic device props */
-        base_name = g_strdup_printf("%s-base-type", t->generic_name);
          base_type_info.name = base_name;
          base_type_info.class_init = virtio_pci_generic_class_init;
 
@@ -2544,7 +2546,6 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
          };
          type_register_static(&transitional_type_info);
      }
-    g_free(base_name);
  }
 
  unsigned virtio_pci_optimal_num_queues(unsigned fixed_queues)
#16 lore raw

PATCH v3 13/19 hw/virtio/virtio-pci: Assert before registering QOM types

In reply to Philippe Mathieu-Daudé
---
 hw/virtio/virtio-pci.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
hw/virtio/virtio-pci.c +3 -3
index 15383570c91..ad1d164421d 100644
@@ -2496,6 +2496,9 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
         },
     };
 
+    assert(t->base_name || !t->non_transitional_name);
+    assert(t->base_name || !t->transitional_name);
+
     if (!base_type_info.name) {
         base_type_info.name = base_name;
         base_type_info.class_init = virtio_pci_generic_class_init;
@@ -2503,9 +2506,6 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
         generic_type_info.parent = base_name;
         generic_type_info.class_init = virtio_pci_base_class_init;
         generic_type_info.class_data = t;
-
-        assert(!t->non_transitional_name);
-        assert(!t->transitional_name);
     } else {
         base_type_info.class_init = virtio_pci_base_class_init;
         base_type_info.class_data = t;
Signature · 1 line
2.47.1
#17 lore raw

PATCH v3 14/19 hw/virtio/virtio-pci: Do not access base_type_info.name directly

In reply to Philippe Mathieu-Daudé

base_type_info.name is initialized to t->base_name, check that directly.

---
 hw/virtio/virtio-pci.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
hw/virtio/virtio-pci.c +5 -6
index ad1d164421d..9512590c936 100644
@@ -2476,7 +2476,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
                                  ? g_strconcat(t->generic_name, "-base-type", NULL)
                                  : NULL;
     TypeInfo base_type_info = {
-        .name          = t->base_name,
+        .name          = t->base_name ?: base_name,
         .parent        = t->parent ? t->parent : TYPE_VIRTIO_PCI,
         .instance_size = t->instance_size,
         .instance_init = t->instance_init,
@@ -2487,7 +2487,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
     };
     TypeInfo generic_type_info = {
         .name = t->generic_name,
-        .parent = base_type_info.name,
+        .parent = t->base_name,
         .class_init = virtio_pci_generic_class_init,
         .interfaces = (const InterfaceInfo[]) {
             { INTERFACE_PCIE_DEVICE },
@@ -2499,8 +2499,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
     assert(t->base_name || !t->non_transitional_name);
     assert(t->base_name || !t->transitional_name);
 
-    if (!base_type_info.name) {
-        base_type_info.name = base_name;
+    if (!t->base_name) {
         base_type_info.class_init = virtio_pci_generic_class_init;
 
         generic_type_info.parent = base_name;
@@ -2519,7 +2518,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
     if (t->non_transitional_name) {
         const TypeInfo non_transitional_type_info = {
             .name          = t->non_transitional_name,
-            .parent        = base_type_info.name,
+            .parent        = t->base_name ?: base_name,
             .instance_init = virtio_pci_non_transitional_instance_init,
             .interfaces = (const InterfaceInfo[]) {
                 { INTERFACE_PCIE_DEVICE },
@@ -2533,7 +2532,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
     if (t->transitional_name) {
         const TypeInfo transitional_type_info = {
             .name          = t->transitional_name,
-            .parent        = base_type_info.name,
+            .parent        = t->base_name ?: base_name,
             .instance_init = virtio_pci_transitional_instance_init,
             .interfaces = (const InterfaceInfo[]) {
                 /*
Signature · 1 line
2.47.1
#18 lore raw

PATCH v3 15/19 hw/virtio/virtio-pci: Constify base_type_info

In reply to Philippe Mathieu-Daudé
---
 hw/virtio/virtio-pci.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
hw/virtio/virtio-pci.c +6 -7
index 9512590c936..a33d1b2cbcf 100644
@@ -2475,13 +2475,16 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
     g_autofree char *base_name = single_generic_device
                                  ? g_strconcat(t->generic_name, "-base-type", NULL)
                                  : NULL;
-    TypeInfo base_type_info = {
+    const TypeInfo base_type_info = {
         .name          = t->base_name ?: base_name,
         .parent        = t->parent ? t->parent : TYPE_VIRTIO_PCI,
         .instance_size = t->instance_size,
         .instance_init = t->instance_init,
         .instance_finalize = t->instance_finalize,
         .class_size    = t->class_size,
+        .class_init    = t->base_name ? virtio_pci_base_class_init
+                                      : virtio_pci_generic_class_init,
+        .class_data    = t->base_name ? t : NULL,
         .abstract      = true,
         .interfaces    = t->interfaces,
     };
@@ -2499,18 +2502,14 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
     assert(t->base_name || !t->non_transitional_name);
     assert(t->base_name || !t->transitional_name);
 
-    if (!t->base_name) {
-        base_type_info.class_init = virtio_pci_generic_class_init;
+    type_register_static(&base_type_info);
 
+    if (!t->base_name) {
         generic_type_info.parent = base_name;
         generic_type_info.class_init = virtio_pci_base_class_init;
         generic_type_info.class_data = t;
-    } else {
-        base_type_info.class_init = virtio_pci_base_class_init;
-        base_type_info.class_data = t;
     }
 
-    type_register_static(&base_type_info);
     if (generic_type_info.name) {
         type_register_static(&generic_type_info);
     }
Signature · 1 line
2.47.1
#19 lore raw

PATCH v3 16/19 hw/virtio/virtio-pci: Constify generic_type_info

In reply to Philippe Mathieu-Daudé
---
 hw/virtio/virtio-pci.c | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)
hw/virtio/virtio-pci.c +6 -10
index a33d1b2cbcf..6f0e1772669 100644
@@ -2488,10 +2488,12 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
         .abstract      = true,
         .interfaces    = t->interfaces,
     };
-    TypeInfo generic_type_info = {
+    const TypeInfo generic_type_info = {
         .name = t->generic_name,
-        .parent = t->base_name,
-        .class_init = virtio_pci_generic_class_init,
+        .parent = t->base_name ?: base_name,
+        .class_init = t->base_name ? virtio_pci_generic_class_init
+                                   : virtio_pci_base_class_init,
+        .class_data = t->base_name ? NULL : t,
         .interfaces = (const InterfaceInfo[]) {
             { INTERFACE_PCIE_DEVICE },
             { INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -2504,13 +2506,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
 
     type_register_static(&base_type_info);
 
-    if (!t->base_name) {
-        generic_type_info.parent = base_name;
-        generic_type_info.class_init = virtio_pci_base_class_init;
-        generic_type_info.class_data = t;
-    }
-
-    if (generic_type_info.name) {
+    if (t->generic_name) {
         type_register_static(&generic_type_info);
     }
 
Signature · 1 line
2.47.1
#20 lore raw

PATCH v3 17/19 hw/virtio/virtio-pci: Reduce generic_type_info scope

In reply to Philippe Mathieu-Daudé
---
 hw/virtio/virtio-pci.c | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)
hw/virtio/virtio-pci.c +13 -12
index 6f0e1772669..99724deb3d9 100644
@@ -2488,18 +2488,6 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
         .abstract      = true,
         .interfaces    = t->interfaces,
     };
-    const TypeInfo generic_type_info = {
-        .name = t->generic_name,
-        .parent = t->base_name ?: base_name,
-        .class_init = t->base_name ? virtio_pci_generic_class_init
-                                   : virtio_pci_base_class_init,
-        .class_data = t->base_name ? NULL : t,
-        .interfaces = (const InterfaceInfo[]) {
-            { INTERFACE_PCIE_DEVICE },
-            { INTERFACE_CONVENTIONAL_PCI_DEVICE },
-            { }
-        },
-    };
 
     assert(t->base_name || !t->non_transitional_name);
     assert(t->base_name || !t->transitional_name);
@@ -2507,6 +2495,19 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
     type_register_static(&base_type_info);
 
     if (t->generic_name) {
+        const TypeInfo generic_type_info = {
+            .name = t->generic_name,
+            .parent = t->base_name ?: base_name,
+            .class_init = t->base_name ? virtio_pci_generic_class_init
+                                       : virtio_pci_base_class_init,
+            .class_data = t->base_name ? NULL : t,
+            .interfaces = (const InterfaceInfo[]) {
+                { INTERFACE_PCIE_DEVICE },
+                { INTERFACE_CONVENTIONAL_PCI_DEVICE },
+                { }
+            },
+        };
+
         type_register_static(&generic_type_info);
     }
 
Signature · 1 line
2.47.1