[PATCH] target/riscv/tcg: do not set defaults for non-generic

2023-12-29 Thread Vladimir Isaev
riscv_cpu_options[] are exported using qdev and some of them are defined with default values. This is unfortunate since riscv_cpu_add_user_properties() is called after CPU instance init and there is no clear way to disable MMU/PMP for some CPUs. Can't define them as NODEFAULT since we still need d

Re: [PATCH v3 0/4] virtio: Refactor vhost input stub

2023-12-29 Thread Leo Yan
Hi Michael, On Mon, Dec 25, 2023 at 11:06:35AM -0500, Michael S. Tsirkin wrote: > On Mon, Nov 20, 2023 at 12:37:17PM +0800, Leo Yan wrote: > > This series is to refactor vhost stub vhost-user-input. > > > > Since vhost input stub requires set_config() callback for communication > > event configur

Re: [PATCH] target/riscv/tcg: do not set defaults for non-generic

2023-12-29 Thread Daniel Henrique Barboza
On 12/29/23 05:02, Vladimir Isaev wrote: riscv_cpu_options[] are exported using qdev and some of them are defined with default values. This is unfortunate since riscv_cpu_add_user_properties() is called after CPU instance init and there is no clear way to disable MMU/PMP for some CPUs. Can't

Re: [PATCH 1/2] qapi/virtio: Keep feature and status bits in the QMP output

2023-12-29 Thread Philippe Mathieu-Daudé
Hi, On 28/12/23 19:52, Hyman Huang wrote: Maintain the feature and status bits in the x-query-virtio-status output and, as usual, add human-readable output only in HMP. Applications may find it useful to compare features and status information directly. An upper application, for example, could

Re: [PATCH 02/21] meson: remove unused variable

2023-12-29 Thread Philippe Mathieu-Daudé
On 21/12/23 18:19, Paolo Bonzini wrote: Signed-off-by: Paolo Bonzini --- tests/bench/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

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

2023-12-29 Thread Song Gao
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 target/loongarch/{ => tcg}/fpu_helper.c

Re: [PATCH 05/21] configure: remove unnecessary subshell

2023-12-29 Thread Philippe Mathieu-Daudé
On 21/12/23 18:19, Paolo Bonzini wrote: Do not use a subshell to hide the shadowing of $config_host_mak. Signed-off-by: Paolo Bonzini --- configure | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 10/21] meson: remove config_targetos

2023-12-29 Thread Philippe Mathieu-Daudé
On 21/12/23 18:19, Paolo Bonzini wrote: config_targetos is now empty and can be removed; its use in sourcesets that do not involve target-specific files can be replaced with an empty dictionary. In fact, at this point *all* sourcesets that do not involve target-specific files are just glorified

Re: [PATCH 12/21] meson: rename config_all

2023-12-29 Thread Philippe Mathieu-Daudé
On 21/12/23 18:19, Paolo Bonzini wrote: config_all now lists only accelerators, rename it to indicate its actual content. Signed-off-by: Paolo Bonzini --- hw/mips/meson.build | 2 +- meson.build | 16 target/arm/meson.build | 2 +- target/mips/meson.buil

Re: [PATCH 13/21] meson: add more sections to main meson.build

2023-12-29 Thread Philippe Mathieu-Daudé
On 21/12/23 18:19, Paolo Bonzini wrote: Signed-off-by: Paolo Bonzini --- meson.build | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 14/21] meson: move program checks together

2023-12-29 Thread Philippe Mathieu-Daudé
On 21/12/23 18:19, Paolo Bonzini wrote: Signed-off-by: Paolo Bonzini --- meson.build | 90 ++--- 1 file changed, 45 insertions(+), 45 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 16/21] meson: separate host-specific checks from option validation

2023-12-29 Thread Philippe Mathieu-Daudé
On 21/12/23 18:19, Paolo Bonzini wrote: Signed-off-by: Paolo Bonzini --- meson.build | 97 +++-- 1 file changed, 50 insertions(+), 47 deletions(- [...] -elif targetos == 'openbsd' - if get_option('tcg').allowed() and target_dirs.length() >

Re: [PATCH 18/21] meson: move CFI detection code earlier

2023-12-29 Thread Philippe Mathieu-Daudé
On 21/12/23 18:19, Paolo Bonzini wrote: Keep it together with the other compiler modes, and before dependencies. Signed-off-by: Paolo Bonzini --- meson.build | 80 ++--- 1 file changed, 40 insertions(+), 40 deletions(-) Reviewed-by: Philippe

Re: [PATCH] target/riscv/tcg: do not set defaults for non-generic

2023-12-29 Thread Vladimir Isaev
29.12.2023 12:15, Daniel Henrique Barboza wrote: > > On 12/29/23 05:02, Vladimir Isaev wrote: >> riscv_cpu_options[] are exported using qdev and some of them are defined >> with default values. This is unfortunate since >> riscv_cpu_add_user_properties() >> is called after CPU instance init and t

Re: [PATCH 20/21] meson: move subdirs to "Collect sources" section

2023-12-29 Thread Philippe Mathieu-Daudé
On 21/12/23 18:19, Paolo Bonzini wrote: Signed-off-by: Paolo Bonzini --- meson.build | 66 ++--- 1 file changed, 33 insertions(+), 33 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 21/21] configure, meson: rename targetos to host_os

2023-12-29 Thread Philippe Mathieu-Daudé
On 21/12/23 18:19, Paolo Bonzini wrote: This variable is about the host OS, not the target. It is used a lot more since the Meson conversion, but the original sin dates back to 2003. Time to fix it. Signed-off-by: Paolo Bonzini --- accel/tcg/meson.build| 2 +- backends/mes

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 ta

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 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 blo

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() > tim

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 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 w

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 a/h

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 CPU

[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

[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: etc/smbi

[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 647b

[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 Process

[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 Sc

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] 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: duplicate

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 15:1

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, N

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: [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 Review

[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 tests/qtest/stm32l4

[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 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 `trace_stm32l4x5_syscfg_p

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 agree

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 OU

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 nee

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 (resour

[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 V

[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>

[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 deletions(-)

[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 b/target/i38

[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 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 68cbdffecd..203fe2

[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 --- a/target/a

[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 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 +- hw/g

[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 37a076858c..

[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 ae292fc543..730

[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 b/target/av

[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 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 +- hw/arm/integratorc

[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 44dfc070

[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 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 ++-- hw/ch

[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 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 hw/isa/vt82c6

[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 changed,

[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 b/hw/9pfs/virtio

[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 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 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 ++-- hw/audio/gu

[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 hw/intc/

[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 f370f334

[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 ++-- hw/i386/kvm/xen_gnttab.

[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 b/target/riscv/mach

[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 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 --- a/target/hppa/mac

[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 100

[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 --- a/target/m6

[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 b/target/loongarch/machine.c

[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 +- hw/nvram/npcm7xx_o

[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 a/target/arm/hvf/hvf

[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 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 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 +- hw/scsi/scsi-b

[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 +- hw/ide/

[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 --- a/repla

[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 508013e23

[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 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 +- hw/sensor/emc14

[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 ++-- hw/timer/armv7m_systic

[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 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 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 --- a/hw/openrisc

[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 +- hw/pci-bridge/pcie_p

[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 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 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 +- hw/misc/allwinne

[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 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 --- a/hw/hyperv

[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 +- hw/sd/cadence_sdhci.c

[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 hw/u

[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 +- hw/

[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 a

  1   2   >