[PULL 46/71] hw/pci-host: Constify VMState

2023-12-29 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-47-richard.hender...@linaro.org> --- hw/pci-host/astro.c | 4 ++-- hw/pci-host/bonito.c | 2 +- hw/pci-host/designware.c | 10 +-

[PULL 21/71] hw/acpi: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-22-richard.hender...@linaro.org> --- hw/acpi/cpu.c | 4 ++-- hw/acpi/erst.c | 2 +- hw/acpi/generic_event_device.c | 12 ++-- hw/acpi/ich9.c | 12 ++--

[PULL 49/71] hw/rtc: Constify VMState

2023-12-29 Thread Richard Henderson
Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-50-richard.hender...@linaro.org> --- hw/rtc/allwinner-rtc.c | 2 +- hw/rtc/aspeed_rtc.c | 2 +- hw/rtc/ds1338.c | 2 +- hw/rtc/exynos4210_rtc.c | 2 +- hw/rtc/goldfish_rtc.c

[PULL 59/71] hw/vfio: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Reviewed-by: Cédric Le Goater Message-Id: <20231221031652.119827-60-richard.hender...@linaro.org> --- hw/vfio/display.c | 2 +- hw/vfio/pci.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/vfio/display.c b/hw/vfio/display.c

[PULL 70/71] tests/unit/test-vmstate: Constify VMState

2023-12-29 Thread Richard Henderson
While const data in tests is not particularly important, this makes a grep test clear across the tree. Reviewed-by: Juan Quintela Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-71-richard.hender...@linaro.org> --- tests/unit/test-vmstate.c | 36

[PULL 69/71] util/fifo8: Constify VMState

2023-12-29 Thread Richard Henderson
Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-70-richard.hender...@linaro.org> --- util/fifo8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/fifo8.c b/util/fifo8.c index d4d1c135e0..de8fd0f1c5 100644 ---

[PULL 63/71] audio: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-64-richard.hender...@linaro.org> --- audio/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/audio.c b/audio/audio.c index 8d1e4ad922..a1097bb016 100644 --- a/audio/audio.c +++ b/audio/audio.c @@

[PULL 47/71] hw/ppc: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-48-richard.hender...@linaro.org> --- hw/ppc/ppc.c| 2 +- hw/ppc/ppc4xx_pci.c | 6 +++--- hw/ppc/prep_systemio.c | 2 +- hw/ppc/rs6000_mc.c | 2 +- hw/ppc/spapr.c | 20 ++--

[PULL 50/71] hw/s390x: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-51-richard.hender...@linaro.org> --- hw/s390x/ccw-device.c | 2 +- hw/s390x/css.c| 36 ++-- hw/s390x/event-facility.c | 8 hw/s390x/ipl.c| 8

[PULL 54/71] hw/sparc: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-55-richard.hender...@linaro.org> --- hw/sparc/sun4m_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/sparc/sun4m_iommu.c b/hw/sparc/sun4m_iommu.c index eb40f9377c..06703b1d96 100644 ---

[PULL 61/71] hw/watchdog: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-62-richard.hender...@linaro.org> --- hw/watchdog/allwinner-wdt.c | 2 +- hw/watchdog/cmsdk-apb-watchdog.c | 2 +- hw/watchdog/sbsa_gwdt.c | 2 +- hw/watchdog/spapr_watchdog.c | 2 +- hw/watchdog/wdt_aspeed.c

[PULL 48/71] hw/riscv: Constify VMState

2023-12-29 Thread Richard Henderson
Acked-by: Alistair Francis Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-49-richard.hender...@linaro.org> --- hw/riscv/virt-acpi-build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/riscv/virt-acpi-build.c b/hw/riscv/virt-acpi-build.c index

[PULL 36/71] hw/ipmi: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-37-richard.hender...@linaro.org> --- hw/ipmi/ipmi_bmc_extern.c | 2 +- hw/ipmi/ipmi_bmc_sim.c| 2 +- hw/ipmi/ipmi_bt.c | 2 +- hw/ipmi/ipmi_kcs.c| 2 +- hw/ipmi/isa_ipmi_bt.c | 2 +-

[PULL 62/71] hw/misc/macio: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-63-richard.hender...@linaro.org> --- hw/misc/macio/cuda.c | 2 +- hw/misc/macio/gpio.c | 2 +- hw/misc/macio/mac_dbdma.c | 8 hw/misc/macio/macio.c | 4 ++-- hw/misc/macio/pmu.c | 6 +++--- 5 files

[PULL 67/71] system: Constify VMState

2023-12-29 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-68-richard.hender...@linaro.org> --- system/cpu-timers.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PULL 44/71] hw/pci: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-45-richard.hender...@linaro.org> --- include/hw/pci/shpc.h | 2 +- hw/pci/msix.c | 4 ++-- hw/pci/pci.c | 8 hw/pci/pci_host.c | 2 +- hw/pci/pcie_aer.c | 4 ++-- hw/pci/shpc.c | 2 +- 6

[PULL 64/71] backends: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-65-richard.hender...@linaro.org> --- backends/dbus-vmstate.c | 2 +- backends/tpm/tpm_emulator.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/dbus-vmstate.c b/backends/dbus-vmstate.c index

[PULL 27/71] hw/dma: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-28-richard.hender...@linaro.org> --- hw/dma/bcm2835_dma.c | 4 ++-- hw/dma/i82374.c | 2 +- hw/dma/i8257.c| 4 ++-- hw/dma/pl080.c| 4 ++-- hw/dma/pl330.c| 10 +-

[PULL 58/71] hw/usb: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-59-richard.hender...@linaro.org> --- hw/usb/bus.c| 2 +- hw/usb/ccid-card-passthru.c | 2 +- hw/usb/dev-hid.c| 4 ++-- hw/usb/dev-hub.c| 8

[PULL 52/71] hw/sd: Constify VMState

2023-12-29 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-53-richard.hender...@linaro.org> --- hw/sd/allwinner-sdhost.c | 2 +- hw/sd/aspeed_sdhci.c | 2 +- hw/sd/bcm2835_sdhost.c | 2 +-

[PULL 29/71] hw/hyperv: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-30-richard.hender...@linaro.org> --- hw/hyperv/vmbus.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/hyperv/vmbus.c b/hw/hyperv/vmbus.c index c64eaa5a46..c86d1895ba 100644 ---

[PULL 66/71] migration: Constify VMState

2023-12-29 Thread Richard Henderson
Reviewed-by: Juan Quintela Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-67-richard.hender...@linaro.org> --- migration/global_state.c | 2 +- migration/savevm.c | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/migration/global_state.c

[PULL 40/71] hw/misc: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-41-richard.hender...@linaro.org> --- 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 +-

[PULL 71/71] docs: Constify VMstate in examples

2023-12-29 Thread Richard Henderson
Reviewed-by: Juan Quintela Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-72-richard.hender...@linaro.org> --- docs/devel/clocks.rst| 2 +- docs/devel/migration.rst | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff

[PULL 41/71] hw/net: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-42-richard.hender...@linaro.org> --- hw/net/allwinner-sun8i-emac.c | 2 +- hw/net/allwinner_emac.c| 4 ++-- hw/net/cadence_gem.c | 2 +- hw/net/can/can_kvaser_pci.c| 2 +- hw/net/can/can_mioe3680_pci.c

[PULL 45/71] hw/pci-bridge: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-46-richard.hender...@linaro.org> --- 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 | 2 +-

[PULL 43/71] hw/openrisc: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-44-richard.hender...@linaro.org> --- hw/openrisc/cputimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/openrisc/cputimer.c b/hw/openrisc/cputimer.c index 10163b391b..835986c4db 100644 ---

[PULL 39/71] hw/m68k: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-40-richard.hender...@linaro.org> --- hw/m68k/next-cube.c | 4 ++-- hw/m68k/q800-glue.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/m68k/next-cube.c b/hw/m68k/next-cube.c index 292f13defb..9f6f90d68b

[PULL 60/71] hw/virtio: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-61-richard.hender...@linaro.org> --- hw/virtio/vdpa-dev.c | 2 +- hw/virtio/vhost-user-fs.c | 6 +++--- hw/virtio/vhost-vsock.c| 2 +- hw/virtio/virtio-balloon.c | 10 +- hw/virtio/virtio-crypto.c | 2 +-

[PULL 56/71] hw/timer: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-57-richard.hender...@linaro.org> --- hw/timer/a9gtimer.c| 8 hw/timer/allwinner-a10-pit.c | 2 +- hw/timer/arm_mptimer.c | 4 ++-- hw/timer/arm_timer.c | 4 ++--

[PULL 53/71] hw/sensor: Constify VMState

2023-12-29 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-54-richard.hender...@linaro.org> --- hw/sensor/adm1266.c| 2 +- hw/sensor/adm1272.c| 2 +- hw/sensor/dps310.c | 2 +-

[PULL 65/71] cpu-target: Constify VMState

2023-12-29 Thread Richard Henderson
Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Reviewed-by: Zhao Liu Message-Id: <20231221031652.119827-66-richard.hender...@linaro.org> --- cpu-target.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpu-target.c b/cpu-target.c index

[PULL 57/71] hw/tpm: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-58-richard.hender...@linaro.org> --- hw/tpm/tpm_crb.c| 2 +- hw/tpm/tpm_spapr.c | 2 +- hw/tpm/tpm_tis_common.c | 2 +- hw/tpm/tpm_tis_i2c.c| 2 +- hw/tpm/tpm_tis_isa.c| 2 +- hw/tpm/tpm_tis_sysbus.c | 2 +-

[PULL 68/71] replay: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-69-richard.hender...@linaro.org> --- replay/replay-snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replay/replay-snapshot.c b/replay/replay-snapshot.c index 10a7cf7992..e5e39161e3 100644 ---

[PULL 32/71] hw/ide: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-33-richard.hender...@linaro.org> --- hw/ide/ahci-allwinner.c | 2 +- hw/ide/ahci.c | 8 hw/ide/core.c | 16 hw/ide/ich.c| 2 +- hw/ide/isa.c| 2 +-

[PULL 51/71] hw/scsi: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-52-richard.hender...@linaro.org> --- hw/scsi/esp-pci.c | 2 +- hw/scsi/esp.c | 8 hw/scsi/lsi53c895a.c | 2 +- hw/scsi/megasas.c | 4 ++-- hw/scsi/mptsas.c | 2 +-

[PULL 55/71] hw/ssi: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-56-richard.hender...@linaro.org> --- hw/ssi/aspeed_smc.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

[PULL 22/71] hw/adc: Constify VMState

2023-12-29 Thread Richard Henderson
Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-23-richard.hender...@linaro.org> --- hw/adc/aspeed_adc.c| 2 +- hw/adc/max111x.c | 2 +- hw/adc/npcm7xx_adc.c | 2 +- hw/adc/stm32f2xx_adc.c | 2 +- hw/adc/zynq-xadc.c | 2 +-

[PULL 42/71] hw/nvram: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-43-richard.hender...@linaro.org> --- hw/nvram/ds1225y.c| 2 +- hw/nvram/eeprom93xx.c | 2 +- hw/nvram/fw_cfg.c | 8 hw/nvram/mac_nvram.c | 2 +-

[PULL 03/71] target/arm: Constify hvf/hvf.c

2023-12-29 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-4-richard.hender...@linaro.org> --- target/arm/hvf/hvf.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

[PULL 09/71] target/loongarch: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Reviewed-by: Song Gao Message-Id: <20231221031652.119827-10-richard.hender...@linaro.org> --- target/loongarch/machine.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/target/loongarch/machine.c

[PULL 10/71] target/m68k: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-11-richard.hender...@linaro.org> --- target/m68k/cpu.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c index 11c7e0a790..43b1bde21c 100644 ---

[PULL 11/71] target/microblaze: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-12-richard.hender...@linaro.org> --- target/microblaze/machine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/microblaze/machine.c b/target/microblaze/machine.c index d24def3992..51705e4f5c

[PULL 07/71] target/hppa: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-8-richard.hender...@linaro.org> --- target/hppa/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hppa/machine.c b/target/hppa/machine.c index 15cbc5e6d0..211bfcf640 100644 ---

[PULL 15/71] target/riscv: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Acked-by: Alistair Francis Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-16-richard.hender...@linaro.org> --- target/riscv/machine.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/target/riscv/machine.c

[PULL 30/71] hw/i2c: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-31-richard.hender...@linaro.org> --- hw/i2c/allwinner-i2c.c | 2 +- hw/i2c/aspeed_i2c.c | 4 ++-- hw/i2c/core.c | 4 ++-- hw/i2c/exynos4210_i2c.c | 2 +- hw/i2c/imx_i2c.c| 2 +- hw/i2c/microbit_i2c.c | 2

[PULL 31/71] hw/i386: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Reviewed-by: Zhao Liu Message-Id: <20231221031652.119827-32-richard.hender...@linaro.org> --- hw/i386/acpi-build.c | 2 +- hw/i386/intel_iommu.c | 2 +- hw/i386/kvm/clock.c| 6 +++--- hw/i386/kvm/xen_evtchn.c | 4 ++--

[PULL 06/71] target/cris: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-7-richard.hender...@linaro.org> --- target/cris/machine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/cris/machine.c b/target/cris/machine.c index

[PULL 34/71] hw/intc: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-35-richard.hender...@linaro.org> --- hw/intc/allwinner-a10-pic.c| 2 +- hw/intc/apic_common.c | 6 +++--- hw/intc/arm_gic_common.c | 8 hw/intc/arm_gicv3_common.c | 16

[PULL 23/71] hw/audio: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-24-richard.hender...@linaro.org> --- hw/audio/ac97.c| 4 ++-- hw/audio/asc.c | 4 ++-- hw/audio/cs4231.c | 2 +- hw/audio/cs4231a.c | 2 +- hw/audio/es1370.c | 4 ++--

[PULL 35/71] hw/ipack: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-36-richard.hender...@linaro.org> --- hw/ipack/ipack.c | 2 +- hw/ipack/tpci200.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ipack/ipack.c b/hw/ipack/ipack.c index ae20f36da6..c39dbb481f 100644

[PULL 26/71] hw/display: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-27-richard.hender...@linaro.org> --- hw/display/artist.c | 2 +- hw/display/bcm2835_fb.c | 2 +- hw/display/bochs-display.c| 2 +- hw/display/cg3.c | 2 +- hw/display/cirrus_vga.c | 4

[PULL 20/71] hw/9pfs: Constify VMState

2023-12-29 Thread Richard Henderson
Acked-by: Greg Kurz Acked-by: Christian Schoenebeck Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-21-richard.hender...@linaro.org> --- hw/9pfs/virtio-9p-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/9pfs/virtio-9p-device.c

[PULL 19/71] hw/core: Constify VMState

2023-12-29 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-20-richard.hender...@linaro.org> --- hw/core/clock-vmstate.c | 6 +++--- hw/core/or-irq.c| 6 +++--- hw/core/ptimer.c| 2 +- 3 files

[PULL 37/71] hw/isa: Constify VMState

2023-12-29 Thread Richard Henderson
Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-38-richard.hender...@linaro.org> --- hw/isa/apm.c | 2 +- hw/isa/i82378.c | 2 +- hw/isa/lpc_ich9.c | 8 hw/isa/pc87312.c | 2 +- hw/isa/piix.c | 8

[PULL 33/71] hw/input: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-34-richard.hender...@linaro.org> --- hw/input/adb-kbd.c | 2 +- hw/input/adb-mouse.c | 2 +- hw/input/adb.c | 4 ++-- hw/input/ads7846.c | 2 +- hw/input/hid.c | 6

[PULL 25/71] hw/char: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-26-richard.hender...@linaro.org> --- hw/char/bcm2835_aux.c | 2 +- hw/char/cadence_uart.c | 2 +- hw/char/cmsdk-apb-uart.c| 2 +- hw/char/digic-uart.c| 2 +- hw/char/escc.c | 4 ++--

[PULL 17/71] target/sparc: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Reviewed-by: Mark Cave-Ayland Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-18-richard.hender...@linaro.org> --- target/sparc/machine.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/sparc/machine.c b/target/sparc/machine.c index

[PULL 24/71] hw/block: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-25-richard.hender...@linaro.org> --- hw/block/ecc.c| 2 +- hw/block/fdc-isa.c| 2 +- hw/block/fdc-sysbus.c | 2 +- hw/block/fdc.c| 20 ++-- hw/block/m25p80.c | 12

[PULL 18/71] hw/arm: Constify VMState

2023-12-29 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-19-richard.hender...@linaro.org> --- hw/arm/armsse.c | 2 +- hw/arm/armv7m.c | 2 +- hw/arm/highbank.c| 2 +-

[PULL 00/71] Constify VMState

2023-12-29 Thread Richard Henderson
The following changes since commit 7425b6277f12e82952cede1f531bfc689bf77fb1: Merge tag 'tracing-pull-request' of https://gitlab.com/stefanha/qemu into staging (2023-12-27 05:15:32 -0500) are available in the Git repository at: https://gitlab.com/rth7680/qemu.git tags/pull-20231230 for you

[PULL 05/71] target/avr: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-6-richard.hender...@linaro.org> --- target/avr/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/avr/machine.c

[PULL 38/71] hw/loongarch: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Reviewed-by: Song Gao Message-Id: <20231221031652.119827-39-richard.hender...@linaro.org> --- hw/loongarch/acpi-build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/loongarch/acpi-build.c b/hw/loongarch/acpi-build.c index

[PULL 16/71] target/s390x: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-17-richard.hender...@linaro.org> --- target/s390x/machine.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/target/s390x/machine.c b/target/s390x/machine.c index

[PULL 28/71] hw/gpio: Constify VMState

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-29-richard.hender...@linaro.org> --- hw/gpio/aspeed_gpio.c | 4 ++-- hw/gpio/bcm2835_gpio.c | 2 +- hw/gpio/gpio_key.c | 2 +- hw/gpio/imx_gpio.c | 2 +- hw/gpio/max7310.c | 2 +- hw/gpio/mpc8xxx.c | 2 +-

[PULL 13/71] target/openrisc: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-14-richard.hender...@linaro.org> --- target/openrisc/machine.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/openrisc/machine.c b/target/openrisc/machine.c index b7d7388640..3574e571cb 100644

[PULL 04/71] target/alpha: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-5-richard.hender...@linaro.org> --- target/alpha/machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/alpha/machine.c b/target/alpha/machine.c index 2b7c8148ff..f09834f635 100644 ---

[PULL 14/71] target/ppc: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-15-richard.hender...@linaro.org> --- target/ppc/machine.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/target/ppc/machine.c b/target/ppc/machine.c index

[PULL 02/71] target/arm: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-3-richard.hender...@linaro.org> --- target/arm/machine.c | 54 ++-- 1 file changed, 27 insertions(+), 27

[PULL 08/71] target/i386: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Signed-off-by: Richard Henderson Reviewed-by: Zhao Liu Message-Id: <20231221031652.119827-9-richard.hender...@linaro.org> --- target/i386/machine.c | 128 +- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/target/i386/machine.c

[PULL 12/71] target/mips: Constify VMState in machine.c

2023-12-29 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-13-richard.hender...@linaro.org> --- target/mips/sysemu/machine.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff

[PULL 01/71] migration: Make VMStateDescription.subsections const

2023-12-29 Thread Richard Henderson
Allow the array of pointers to itself be const. Propagate this through the copies of this field. Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Juan Quintela Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-2-richard.hender...@linaro.org>

[PATCH] hw/vfio: fix iteration over global VFIODevice list

2023-12-29 Thread Volker Rümelin
Commit 3d779abafe ("vfio/common: Introduce a global VFIODevice list") introduced a global VFIODevice list, but forgot to update the list element field name when iterating over the new list. Change the code to use the correct list element field. Fixes: 3d779abafe ("vfio/common: Introduce a global

RE: [PATCH 1/3] ui/gtk: flush display pipeline before saving vmstate when blob=true

2023-12-29 Thread Kim, Dongwon
Hi, > Subject: RE: [PATCH 1/3] ui/gtk: flush display pipeline before saving vmstate > when blob=true > > Hi, > > > > > On Thu, Dec 14, 2023 at 8:26 AM Dongwon Kim > > wrote: > > > > > > If the guest state is paused before it gets a response for the > > > current scanout frame submission

Re: [PATCH] tcg/i386: use 8-bit OR or XOR for unsigned 8-bit immediates

2023-12-29 Thread Paolo Bonzini
Il gio 28 dic 2023, 21:45 Richard Henderson ha scritto: > On 12/28/23 23:05, Paolo Bonzini wrote: > > In the case where OR or XOR has an 8-bit immediate between 128 and 255, > we can > > operate on a low-byte register and shorten the output by two or three > bytes > > (two if a prefix byte is

Re: [PATCH v2] esp: process the result of scsi_device_find()

2023-12-29 Thread Philippe Mathieu-Daudé
Cc'ing Mark. On 29/12/23 16:26, Alexandra Diupina wrote: Add a 'current_lun' check for a null value to avoid null pointer dereferencing and recover host if NULL return Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 4eb8606560 (esp: store lun coming from the MESSAGE

Re: [PATCH v2 4/6] target/riscv: Add pointer masking tb flags

2023-12-29 Thread Alexey Baturo
>Any particular reason to add these in the middle? No actual reason except for previously those flags were there in the middle. I'll move them to the end of the list, that sounds reasonable. >Something to consider as a somewhat unrelated cleanup would be to add an... That's a good idea and I

[PATCH v3 3/3] hw/arm: Connect STM32L4x5 SYSCFG to STM32L4x5 SoC

2023-12-29 Thread Inès Varhol
The SYSCFG input GPIOs aren't connected yet. When the STM32L4x5 GPIO device will be implemented, its output GPIOs will be connected to the SYSCFG input GPIOs. Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 1 + hw/arm/stm32l4x5_soc.c | 23

[PATCH v3 1/3] hw/misc: Implement STM32L4x5 SYSCFG

2023-12-29 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- docs/system/arm/b-l475e-iot01a.rst | 2 +- hw/misc/Kconfig| 3 + hw/misc/meson.build| 1 + hw/misc/stm32l4x5_syscfg.c | 265 + hw/misc/trace-events

[PATCH v3 2/3] tests/qtest: Add STM32L4x5 SYSCFG QTest testcase

2023-12-29 Thread Inès Varhol
Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 3 +- tests/qtest/stm32l4x5_syscfg-test.c | 408 2 files changed, 410 insertions(+), 1 deletion(-) create mode 100644

[PATCH v3 0/3] Add device STM32L4x5 SYSCFG

2023-12-29 Thread Inès Varhol
Changes from v2 to v3: - updating the B-L475E-IOT01A machine's documentation file - using `GPIO_NUM_PINS` instead of 16 in `stm32l4x5_syscfg_init` - correcting the formatting of multiline indents - renaming a trace function (`trace_stm32l4x5_syscfg_forward_exti` instead of

Re: [PATCH v4 21/21] tests: Add parallels format support to image-fleecing

2023-12-29 Thread Vladimir Sementsov-Ogievskiy
On 28.12.23 13:12, Alexander Ivanov wrote: Use a different bitmap name for parallels images because their has own ID format, and can't contain an arbitrary string. Replace hardcoded 'qcow2' format to iotests.imgfmt. Add 'parallels' to supported formats. Signed-off-by: Alexander Ivanov

Re: [PATCH] blockcommit: Reopen base image as RO after abort

2023-12-29 Thread Vladimir Sementsov-Ogievskiy
On 30.11.23 13:11, Alexander Ivanov wrote: If a blockcommit is aborted the base image remains in RW mode, that leads to a fail of subsequent live migration. How to reproduce: $ virsh snapshot-create-as vm snp1 --disk-only *** write something to the disk *** $ virsh blockcommit vm vda

Re: [PULL 31/53] hw/i386/pc: Default to use SMBIOS 3.0 for newer machine models

2023-12-29 Thread Michael S. Tsirkin
On Fri, Dec 29, 2023 at 04:35:14PM +0100, Igor Mammedov wrote: > On Thu, 30 Nov 2023 12:22:37 +0100 > Igor Mammedov wrote: > > > On Wed, 29 Nov 2023 11:01:07 +0100 > > Igor Mammedov wrote: > > > > > On Tue, 28 Nov 2023 11:00:29 -0500 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Tue,

Re: [PULL 31/53] hw/i386/pc: Default to use SMBIOS 3.0 for newer machine models

2023-12-29 Thread Igor Mammedov
On Thu, 30 Nov 2023 12:22:37 +0100 Igor Mammedov wrote: > On Wed, 29 Nov 2023 11:01:07 +0100 > Igor Mammedov wrote: > > > On Tue, 28 Nov 2023 11:00:29 -0500 > > "Michael S. Tsirkin" wrote: > > > > > On Tue, Nov 28, 2023 at 03:53:21PM +0100, Fiona Ebner wrote: > > > > Am 28.11.23 um

[PATCH v2] esp: process the result of scsi_device_find()

2023-12-29 Thread Alexandra Diupina
Add a 'current_lun' check for a null value to avoid null pointer dereferencing and recover host if NULL return Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 4eb8606560 (esp: store lun coming from the MESSAGE OUT phase) Signed-off-by: Alexandra Diupina --- v2:

Re: Qemu setting "-cpu host" seems broken with Windows vms

2023-12-29 Thread Stefan Hajnoczi
On Thu, 28 Dec 2023 at 17:21, wrote: CCing Paolo, the general x86 maintainer. Stefan > I noticed something weird when using "-cpu host" with Windows vms. > First, I always use it along with ",hv_passthrough" as well. > > First, performance: since some years ago, since prior to qemu 6.2 until >

[PATCH v2 0/4] target/riscv: SMBIOS support for RISC-V virt machine

2023-12-29 Thread Heinrich Schuchardt
Generate SMBIOS tables for the RISC-V mach-virt. Add CONFIG_SMBIOS=y to the RISC-V default config. With the series the following firmware tables are provided: etc/smbios/smbios-anchor etc/smbios/smbios-tables Add processor-family to the '-smbios type=4' command line options. Heinrich

[PATCH v2 2/4] smbios: function to set default processor family

2023-12-29 Thread Heinrich Schuchardt
Provide a function to set the default processor family. Signed-off-by: Heinrich Schuchardt --- v2: new patch --- hw/smbios/smbios.c | 7 +++ include/hw/firmware/smbios.h | 1 + 2 files changed, 8 insertions(+) diff --git a/hw/smbios/smbios.c b/hw/smbios/smbios.c index

[PATCH v2 1/4] smbios: add processor-family option

2023-12-29 Thread Heinrich Schuchardt
For RISC-V the SMBIOS standard requires specific values of the processor family value depending on the bitness of the CPU. Add a processor-family option for SMBIOS table 4. The value of processor-family may exceed 255 and therefore must be provided in the Processor Family 2 field. Set the

[PATCH v2 3/4] target/riscv: SMBIOS support for RISC-V virt machine

2023-12-29 Thread Heinrich Schuchardt
Generate SMBIOS tables for the RISC-V mach-virt. Add CONFIG_SMBIOS=y to the RISC-V default config. Set the default processor family in the type 4 table. The implementation is based on the corresponding ARM and Loongson code. With the patch the following firmware tables are provided:

[PATCH v2 4/4] qemu-options: enable -smbios option on RISC-V

2023-12-29 Thread Heinrich Schuchardt
With SMBIOS support added for RISC-V we also should enable the command line option. Signed-off-by: Heinrich Schuchardt --- v2: new patch --- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-options.hx b/qemu-options.hx index 7bdb414345..5ed82df11f

Re: [PATCH 0/2] ARM Sbsa-ref: Enable CPU cluster topology

2023-12-29 Thread Marcin Juszkiewicz
W dniu 27.12.2023 o 13:07, Xiong Yining pisze: Enable CPU cluster support on SbsaQemu platform, so that users can specify a 4-level CPU hierarchy sockets/clusters/cores/threads. And this topology can be passed to the firmware through DT cpu-map. xiongyining1480 (2): hw/arm/sbsa-ref:Enable

Re: [PATCH 2/2] hw/arm/sbsa-ref: Add cpu-map to device tree

2023-12-29 Thread Marcin Juszkiewicz
W dniu 27.12.2023 o 13:07, Xiong Yining pisze: From: xiongyining1480 Support CPU topology description through device tree. Signed-off-by: Xiong Yining Signed-off-by: Chen Baozi --- hw/arm/sbsa-ref.c | 35 +++ 1 file changed, 35 insertions(+) diff --git

Re: [PATCH 21/35] target/arm: Add FEAT_NV to max, neoverse-n2, neoverse-v1 CPUs

2023-12-29 Thread Marcin Juszkiewicz
W dniu 18.12.2023 o 12:32, Peter Maydell pisze: Enable FEAT_NV on the 'max' CPU, and stop filtering it out for the Neoverse N2 and Neoverse V1 CPUs. We continue to downgrade FEAT_NV2 support to FEAT_NV for the latter two CPU types. According to Neoverse-V1 TRM r1p2 it has FEAT_NV2. Similar

Re: [PATCH v2 00/16] target/riscv: deprecate riscv_cpu_options[]

2023-12-29 Thread Vladimir Isaev
22.12.2023 15:22, Daniel Henrique Barboza wrote: > > Hi, > > This new version fixes all instances of 'const PropertyInfo' added, > changing it to 'static const PropertyInfo', like suggested by Richard in > v1. > > Patches based on Alistair's riscv-to-apply.next. Series is also found > here: >

Re: [PATCH v2 10/16] target/riscv: create finalize_features() for KVM

2023-12-29 Thread Vladimir Isaev
22.12.2023 15:22, Daniel Henrique Barboza wrote: > To turn cbom_blocksize and cboz_blocksize into class properties we need > KVM specific changes. > > KVM is creating its own version of these options with a customized > setter() that prevents users from picking an invalid value during init() >

Re: [PATCH v2 08/16] target/riscv: move 'vlen' to riscv_cpu_properties[]

2023-12-29 Thread Vladimir Isaev
22.12.2023 15:22, Daniel Henrique Barboza wrote: > > Turning 'vlen' into a class property will allow its default value to be > overwritten by cpu_init() later on, solving the issue we have now where > CPU specific settings are getting overwritten by the default. > > For 'vlen', 'elen' and the

Re: [PATCH v2 01/16] target/riscv/cpu_cfg.h: remove user_spec and bext_spec

2023-12-29 Thread Vladimir Isaev
22.12.2023 15:22, Daniel Henrique Barboza wrote:> > They aren't being used. > > Signed-off-by: Daniel Henrique Barboza > --- > target/riscv/cpu_cfg.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/target/riscv/cpu_cfg.h b/target/riscv/cpu_cfg.h > index f4605fb190..c67a8731d3 100644

Re: [PATCH 1/1] target/loongarch: move translate modules to tcg/

2023-12-29 Thread Philippe Mathieu-Daudé
Hi, On 29/12/23 10:24, Song Gao wrote: Introduce the target/loongarch/tcg directory. Its purpose is to hold the TCG code that is selected by CONFIG_TCG Signed-off-by: Song Gao --- target/loongarch/{ => tcg}/constant_timer.c | 0 target/loongarch/{ => tcg}/csr_helper.c | 0

  1   2   >