[PATCH-for-9.0 v2 0/8] hw: Simplify accesses to CPUState::'start-powered-off' property

Philippe Mathieu-Daudé posted 8 patches 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20231123143813.42632-1-philmd@linaro.org
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Ani Sinha <anisinha@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Aurelien Jarno <aurelien@aurel32.net>, Niek Linnenbank <nieklinnenbank@gmail.com>, Beniamino Galvani <b.galvani@gmail.com>, Peter Maydell <peter.maydell@linaro.org>, Strahinja Jankovic <strahinja.p.jankovic@gmail.com>, "Cédric Le Goater" <clg@kaod.org>, Andrew Jeffery <andrew@codeconstruct.com.au>, Joel Stanley <joel@jms.id.au>, Jean-Christophe Dubois <jcd@tribudubois.net>, Andrey Smirnov <andrew.smirnov@gmail.com>, Tyrone Ting <kfting@nuvoton.com>, Hao Wu <wuhaotsh@google.com>, Alistair Francis <alistair@alistair23.me>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, Richard Henderson <richard.henderson@linaro.org>, Nicholas Piggin <npiggin@gmail.com>, Daniel Henrique Barboza <danielhb413@gmail.com>, David Gibson <david@gibson.dropbear.id.au>, Harsh Prateek Bora <harshpb@linux.ibm.com>, Yoshinori Sato <ysato@users.sourceforge.jp>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Artyom Tarasenko <atar4qemu@gmail.com>
hw/acpi/cpu_hotplug.c               |  7 ++--
hw/acpi/ich9.c                      |  4 +--
hw/acpi/piix4.c                     |  4 +--
hw/arm/allwinner-h3.c               |  3 +-
hw/arm/allwinner-r40.c              |  3 +-
hw/arm/armsse.c                     |  5 +--
hw/arm/armv7m.c                     |  7 +---
hw/arm/aspeed_ast2400.c             |  3 +-
hw/arm/aspeed_ast2600.c             |  9 ++---
hw/arm/bcm2835_peripherals.c        |  3 +-
hw/arm/bcm2836.c                    | 51 +++++++++++++----------------
hw/arm/boot.c                       |  4 +--
hw/arm/fsl-imx25.c                  |  3 +-
hw/arm/fsl-imx31.c                  |  3 +-
hw/arm/fsl-imx6.c                   | 14 +++-----
hw/arm/fsl-imx6ul.c                 |  8 ++---
hw/arm/fsl-imx7.c                   | 20 +++++------
hw/arm/npcm7xx.c                    |  9 ++---
hw/arm/xlnx-versal.c                |  9 ++---
hw/arm/xlnx-zynqmp.c                |  9 ++---
hw/core/bus.c                       |  2 +-
hw/core/qdev.c                      |  2 +-
hw/i386/pc_piix.c                   | 19 ++++-------
hw/microblaze/petalogix_ml605_mmu.c |  5 ++-
hw/microblaze/xlnx-zynqmp-pmu.c     | 18 ++++------
hw/mips/cps.c                       |  6 ++--
hw/ppc/e500.c                       |  3 +-
hw/ppc/spapr_cpu_core.c             |  2 +-
hw/ppc/spapr_pci.c                  |  3 +-
hw/rx/rx-gdbsim.c                   |  4 +--
hw/sparc/sun4m.c                    |  3 +-
31 files changed, 93 insertions(+), 152 deletions(-)
[PATCH-for-9.0 v2 0/8] hw: Simplify accesses to CPUState::'start-powered-off' property
Posted by Philippe Mathieu-Daudé 1 year ago
Extracted from a bigger series, after Markus' review.

Supersedes: <20231122183633.17676-1-philmd@linaro.org>
Supersedes: <20231122183048.17150-8-philmd@linaro.org>

Philippe Mathieu-Daudé (8):
  hw/ppc/spapr_cpu_core: Access QDev properties with proper API
  hw/arm/bcm2836: Simplify use of 'reset-cbar' property
  hw/arm/bcm2836: Use ARM_CPU 'mp-affinity' property
  hw: Simplify accesses to the CPUState::'start-powered-off' property
  hw: Prefer qdev_prop_set_bit over object_property_set_bool for QDev
  hw: Simplify uses of qdev_prop_set_bit(dev, 'start-powered-off')
  hw/arm/bcm2836: Move code after error checks
  hw/arm/bcm2836: Add local variable to remove various DEVICE() casts

 hw/acpi/cpu_hotplug.c               |  7 ++--
 hw/acpi/ich9.c                      |  4 +--
 hw/acpi/piix4.c                     |  4 +--
 hw/arm/allwinner-h3.c               |  3 +-
 hw/arm/allwinner-r40.c              |  3 +-
 hw/arm/armsse.c                     |  5 +--
 hw/arm/armv7m.c                     |  7 +---
 hw/arm/aspeed_ast2400.c             |  3 +-
 hw/arm/aspeed_ast2600.c             |  9 ++---
 hw/arm/bcm2835_peripherals.c        |  3 +-
 hw/arm/bcm2836.c                    | 51 +++++++++++++----------------
 hw/arm/boot.c                       |  4 +--
 hw/arm/fsl-imx25.c                  |  3 +-
 hw/arm/fsl-imx31.c                  |  3 +-
 hw/arm/fsl-imx6.c                   | 14 +++-----
 hw/arm/fsl-imx6ul.c                 |  8 ++---
 hw/arm/fsl-imx7.c                   | 20 +++++------
 hw/arm/npcm7xx.c                    |  9 ++---
 hw/arm/xlnx-versal.c                |  9 ++---
 hw/arm/xlnx-zynqmp.c                |  9 ++---
 hw/core/bus.c                       |  2 +-
 hw/core/qdev.c                      |  2 +-
 hw/i386/pc_piix.c                   | 19 ++++-------
 hw/microblaze/petalogix_ml605_mmu.c |  5 ++-
 hw/microblaze/xlnx-zynqmp-pmu.c     | 18 ++++------
 hw/mips/cps.c                       |  6 ++--
 hw/ppc/e500.c                       |  3 +-
 hw/ppc/spapr_cpu_core.c             |  2 +-
 hw/ppc/spapr_pci.c                  |  3 +-
 hw/rx/rx-gdbsim.c                   |  4 +--
 hw/sparc/sun4m.c                    |  3 +-
 31 files changed, 93 insertions(+), 152 deletions(-)

-- 
2.41.0