[PATCH 00/17] qom: Spring cleaning

Markus Armbruster posted 17 patches 4 years ago
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test checkpatch failed
Test FreeBSD passed
Test asan passed
Failed in applying to current master (apply log)
There is a newer version of this series
hw/9pfs/9p.h                        |   2 +-
hw/s390x/virtio-ccw.h               |   2 +-
hw/sd/sdhci-internal.h              |   2 +-
hw/usb/ccid.h                       |   2 +-
hw/usb/hcd-ehci.h                   |   2 +-
include/hw/acpi/ich9.h              |   2 +-
include/hw/ppc/spapr.h              |   2 +-
include/hw/qdev-core.h              |   6 +-
include/hw/s390x/s390-ccw.h         |   2 +-
include/hw/scsi/scsi.h              |   2 +-
include/hw/usb.h                    |   2 +-
include/hw/xen/xen-block.h          |   2 +-
include/hw/xen/xen-bus.h            |   2 +-
include/qom/object.h                | 153 ++++-----
include/sysemu/sysemu.h             |   2 +-
monitor/monitor-internal.h          |   2 +-
target/ppc/cpu.h                    |   3 +-
target/s390x/cpu_features_def.inc.h |   2 +-
accel/kvm/kvm-all.c                 |   8 +-
accel/tcg/tcg-all.c                 |   7 +-
authz/list.c                        |   5 +-
authz/listfile.c                    |   6 +-
authz/pamacct.c                     |   3 +-
authz/simple.c                      |   3 +-
backends/cryptodev-vhost-user.c     |   3 +-
backends/cryptodev.c                |   2 +-
backends/dbus-vmstate.c             |   6 +-
backends/hostmem-file.c             |  11 +-
backends/hostmem-memfd.c            |  17 +-
backends/hostmem.c                  |  35 +-
backends/rng-egd.c                  |   3 +-
backends/rng-random.c               |   3 +-
backends/rng.c                      |   3 +-
backends/vhost-user.c               |   2 +-
block/throttle-groups.c             |   6 +-
bootdevice.c                        |  10 +-
chardev/char-socket.c               |   4 +-
chardev/char.c                      |   7 +-
crypto/secret.c                     |  18 +-
crypto/tlscreds.c                   |  12 +-
crypto/tlscredsanon.c               |   3 +-
crypto/tlscredspsk.c                |   6 +-
crypto/tlscredsx509.c               |   9 +-
hw/9pfs/9p.c                        |   4 +-
hw/9pfs/virtio-9p-device.c          |   4 +-
hw/acpi/ich9.c                      |  25 +-
hw/acpi/pcihp.c                     |   9 +-
hw/acpi/piix4.c                     |  15 +-
hw/arm/allwinner-a10.c              |   2 +-
hw/arm/allwinner-h3.c               |  12 +-
hw/arm/armv7m.c                     |   2 +-
hw/arm/aspeed.c                     |   4 +-
hw/arm/aspeed_ast2600.c             |  13 +-
hw/arm/aspeed_soc.c                 |  13 +-
hw/arm/bcm2835_peripherals.c        |  28 +-
hw/arm/bcm2836.c                    |  16 +-
hw/arm/cubieboard.c                 |   3 +-
hw/arm/mcimx6ul-evk.c               |   2 +-
hw/arm/mcimx7d-sabre.c              |   2 +-
hw/arm/msf2-soc.c                   |   3 +-
hw/arm/nrf51_soc.c                  |   3 +-
hw/arm/orangepi.c                   |   3 +-
hw/arm/raspi.c                      |   3 +-
hw/arm/sabrelite.c                  |   2 +-
hw/arm/sbsa-ref.c                   |   5 +-
hw/arm/vexpress.c                   |  10 +-
hw/arm/virt.c                       |  39 +--
hw/arm/xlnx-versal-virt.c           |   3 +-
hw/arm/xlnx-versal.c                |  10 +-
hw/arm/xlnx-zcu102.c                |  10 +-
hw/arm/xlnx-zynqmp.c                |   9 +-
hw/audio/intel-hda.c                |   2 +-
hw/audio/marvell_88w8618.c          |   2 +-
hw/audio/pcspk.c                    |   2 +-
hw/block/fdc.c                      |   4 +-
hw/block/nvme.c                     |   2 +-
hw/block/pflash_cfi02.c             |   2 +-
hw/block/vhost-user-blk.c           |   4 +-
hw/block/virtio-blk.c               |   4 +-
hw/block/xen-block.c                |   8 +-
hw/char/serial-pci-multi.c          |   2 +-
hw/char/serial-pci.c                |   2 +-
hw/char/serial.c                    |   2 +-
hw/char/virtio-console.c            |   2 +-
hw/char/virtio-serial-bus.c         |   8 +-
hw/core/bus.c                       |  24 +-
hw/core/cpu.c                       |   2 +-
hw/core/generic-loader.c            |   2 +-
hw/core/machine-qmp-cmds.c          |   6 +-
hw/core/machine.c                   |  87 +++--
hw/core/qdev-properties.c           |  11 +-
hw/core/qdev.c                      |  74 ++---
hw/cpu/core.c                       |   4 +-
hw/display/bochs-display.c          |   3 +-
hw/display/sm501.c                  |   2 +-
hw/display/vga-pci.c                |   4 +-
hw/display/vhost-user-gpu-pci.c     |   3 +-
hw/display/vhost-user-gpu.c         |   2 +-
hw/display/vhost-user-vga.c         |   3 +-
hw/display/virtio-gpu-base.c        |   2 +-
hw/display/xlnx_dp.c                |   7 +-
hw/dma/rc4030.c                     |   2 +-
hw/dma/sparc32_dma.c                |  10 +-
hw/dma/xilinx_axidma.c              |   9 +-
hw/dma/xlnx-zdma.c                  |   7 +-
hw/gpio/aspeed_gpio.c               |   2 +-
hw/hyperv/hyperv.c                  |   2 +-
hw/i386/kvm/apic.c                  |   2 +-
hw/i386/microvm.c                   |  29 +-
hw/i386/pc.c                        |  18 +-
hw/i386/pc_piix.c                   |   2 +-
hw/i386/pc_q35.c                    |   4 +-
hw/i386/pc_sysfw.c                  |   7 +-
hw/i386/x86.c                       |  14 +-
hw/ide/macio.c                      |   2 +-
hw/ide/qdev.c                       |   6 +-
hw/input/vhost-user-input.c         |   2 +-
hw/input/virtio-input-hid.c         |   2 +-
hw/input/virtio-input-host.c        |   2 +-
hw/input/virtio-input.c             |   9 +-
hw/intc/apic.c                      |   2 +-
hw/intc/apic_common.c               |   6 +-
hw/intc/ioapic.c                    |   2 +-
hw/intc/s390_flic.c                 |   4 +-
hw/intc/xics.c                      |   4 +-
hw/intc/xive.c                      |   2 +-
hw/ipack/ipack.c                    |   6 +-
hw/ipmi/ipmi.c                      |   3 +-
hw/isa/isa-superio.c                |  13 +-
hw/isa/lpc_ich9.c                   |   8 +-
hw/mem/nvdimm.c                     |   4 +-
hw/mem/pc-dimm.c                    |   4 +-
hw/microblaze/petalogix_ml605_mmu.c |   6 +-
hw/misc/aspeed_sdmc.c               |   2 +-
hw/misc/edu.c                       |   3 +-
hw/misc/mac_via.c                   |   4 +-
hw/misc/macio/gpio.c                |   2 +-
hw/misc/macio/macio.c               |   4 +-
hw/misc/macio/pmu.c                 |   2 +-
hw/misc/pca9552.c                   |   2 +-
hw/misc/tmp105.c                    |   2 +-
hw/misc/tmp421.c                    |   8 +-
hw/net/cadence_gem.c                |   3 +-
hw/net/can/can_kvaser_pci.c         |   2 +-
hw/net/can/can_mioe3680_pci.c       |   4 +-
hw/net/can/can_pcm3680_pci.c        |   4 +-
hw/net/e1000.c                      |   3 +-
hw/net/e1000e.c                     |   2 +-
hw/net/eepro100.c                   |   2 +-
hw/net/lance.c                      |   2 +-
hw/net/lasi_i82596.c                |   2 +-
hw/net/ne2000-isa.c                 |   2 +-
hw/net/ne2000-pci.c                 |   2 +-
hw/net/pcnet-pci.c                  |   2 +-
hw/net/rtl8139.c                    |   2 +-
hw/net/spapr_llan.c                 |   2 +-
hw/net/sungem.c                     |   2 +-
hw/net/sunhme.c                     |   2 +-
hw/net/tulip.c                      |   2 +-
hw/net/virtio-net.c                 |   6 +-
hw/net/vmxnet3.c                    |   2 +-
hw/net/xilinx_axienet.c             |   9 +-
hw/nios2/10m50_devboard.c           |   3 +-
hw/nvram/fw_cfg.c                   |   4 +-
hw/nvram/mac_nvram.c                |   2 +-
hw/pci-host/grackle.c               |   2 +-
hw/pci-host/i440fx.c                |  12 +-
hw/pci-host/pnv_phb3_msi.c          |   3 +-
hw/pci-host/pnv_phb3_pbcq.c         |   3 +-
hw/pci-host/q35.c                   |  20 +-
hw/pci-host/sabre.c                 |   2 +-
hw/pci-host/uninorth.c              |   8 +-
hw/pci/pci.c                        |  14 +-
hw/pci/pcie.c                       |   2 +-
hw/pci/shpc.c                       |   2 +-
hw/pcmcia/pxa2xx.c                  |   2 +-
hw/ppc/e500.c                       |   8 +-
hw/ppc/mac_newworld.c               |   7 +-
hw/ppc/mac_oldworld.c               |   2 +-
hw/ppc/pnv.c                        |  16 +-
hw/ppc/pnv_bmc.c                    |   5 +-
hw/ppc/pnv_core.c                   |   4 +-
hw/ppc/pnv_psi.c                    |   2 +-
hw/ppc/prep.c                       |   6 +-
hw/ppc/spapr.c                      |  59 ++--
hw/ppc/spapr_caps.c                 |  16 +-
hw/ppc/spapr_cpu_core.c             |   7 +-
hw/ppc/spapr_drc.c                  |  36 +-
hw/ppc/spapr_iommu.c                |   4 +-
hw/ppc/spapr_irq.c                  |   2 +-
hw/ppc/spapr_pci.c                  |  98 ++----
hw/ppc/spapr_rng.c                  |   3 +-
hw/ppc/spapr_rtc.c                  |   2 +-
hw/ppc/spapr_tpm_proxy.c            |   2 +-
hw/riscv/sifive_u.c                 |   7 +-
hw/riscv/virt.c                     |   5 +-
hw/rtc/mc146818rtc.c                |   4 +-
hw/s390x/ap-bridge.c                |   2 +-
hw/s390x/css-bridge.c               |   9 +-
hw/s390x/event-facility.c           |   6 +-
hw/s390x/s390-ccw.c                 |   4 +-
hw/s390x/s390-pci-bus.c             |   4 +-
hw/s390x/s390-skeys.c               |   4 +-
hw/s390x/s390-stattrib.c            |   4 +-
hw/s390x/s390-virtio-ccw.c          |  19 +-
hw/s390x/sclp.c                     |   5 +-
hw/s390x/tod.c                      |   2 +-
hw/s390x/virtio-ccw-balloon.c       |   4 +-
hw/s390x/virtio-ccw-blk.c           |   2 +-
hw/s390x/virtio-ccw-net.c           |   2 +-
hw/s390x/virtio-ccw.c               |   8 +-
hw/scsi/lsi53c895a.c                |   2 +-
hw/scsi/scsi-bus.c                  |  17 +-
hw/scsi/scsi-disk.c                 |   2 +-
hw/scsi/vhost-scsi.c                |   4 +-
hw/scsi/vhost-user-scsi.c           |   4 +-
hw/scsi/virtio-scsi.c               |   2 +-
hw/sd/sdhci-pci.c                   |   2 +-
hw/sd/sdhci.c                       |   6 +-
hw/sparc/sun4m.c                    |   7 +-
hw/sparc64/sun4u.c                  |   2 +-
hw/ssi/xilinx_spips.c               |   3 +-
hw/usb/bus.c                        |  18 +-
hw/usb/ccid-card-emulated.c         |   2 +-
hw/usb/dev-audio.c                  |   2 +-
hw/usb/dev-hid.c                    |   2 +-
hw/usb/dev-hub.c                    |   2 +-
hw/usb/dev-network.c                |   4 +-
hw/usb/dev-smartcard-reader.c       |  11 +-
hw/usb/dev-storage.c                |   2 +-
hw/usb/dev-uas.c                    |   2 +-
hw/usb/dev-wacom.c                  |   2 +-
hw/usb/hcd-ehci-pci.c               |   2 +-
hw/usb/hcd-ehci.c                   |   2 +-
hw/usb/host-libusb.c                |   4 +-
hw/usb/redirect.c                   |   4 +-
hw/vfio/ap.c                        |   2 +-
hw/vfio/ccw.c                       |   6 +-
hw/vfio/pci-quirks.c                |   6 +-
hw/vfio/pci.c                       |   2 +-
hw/virtio/vhost-scsi-pci.c          |   2 +-
hw/virtio/vhost-user-blk-pci.c      |   2 +-
hw/virtio/vhost-user-fs.c           |   2 +-
hw/virtio/vhost-user-input-pci.c    |   3 +-
hw/virtio/vhost-user-scsi-pci.c     |   2 +-
hw/virtio/vhost-vsock.c             |   2 +-
hw/virtio/virtio-balloon-pci.c      |   4 +-
hw/virtio/virtio-balloon.c          |   6 +-
hw/virtio/virtio-blk-pci.c          |   2 +-
hw/virtio/virtio-crypto.c           |   2 +-
hw/virtio/virtio-iommu.c            |   2 +-
hw/virtio/virtio-net-pci.c          |   2 +-
hw/virtio/virtio-pmem.c             |   2 +-
hw/virtio/virtio-rng.c              |   4 +-
hw/virtio/virtio.c                  |  11 +-
hw/watchdog/wdt_diag288.c           |   2 +-
hw/xen/xen-bus.c                    |  12 +-
hw/xen/xen-common.c                 |   5 +-
iothread.c                          |   6 +-
memory.c                            |  14 +-
net/can/can_host.c                  |   3 +-
net/can/can_socketcan.c             |   3 +-
net/colo-compare.c                  |  20 +-
net/dump.c                          |   4 +-
net/filter-buffer.c                 |   2 +-
net/filter-mirror.c                 |  10 +-
net/filter-rewriter.c               |   2 +-
net/filter.c                        |  15 +-
qdev-monitor.c                      |   4 +-
qom/container.c                     |   4 +-
qom/object.c                        | 499 +++++++++++-----------------
qom/object_interfaces.c             |   8 +-
scsi/pr-manager-helper.c            |   3 +-
softmmu/vl.c                        |   7 +-
target/arm/cpu.c                    |  11 +-
target/arm/cpu64.c                  |  11 +-
target/arm/kvm.c                    |   4 +-
target/i386/cpu.c                   |  92 +++--
target/i386/sev.c                   |  23 +-
target/ppc/compat.c                 |  14 +-
target/ppc/translate_init.inc.c     |   9 +-
target/s390x/cpu.c                  |   2 +-
target/s390x/cpu_models.c           |  15 +-
tests/check-qom-proplist.c          |  70 ++--
tests/test-qdev-global-props.c      |   4 +-
ui/console.c                        |   7 +-
ui/input-barrier.c                  |  14 +-
ui/input-linux.c                    |   8 +-
288 files changed, 1127 insertions(+), 1604 deletions(-)
[PATCH 00/17] qom: Spring cleaning
Posted by Markus Armbruster 4 years ago
Includes one actual bug fix for s390x.

Markus Armbruster (17):
  qom: Clearer reference counting in object_initialize_childv()
  qom: Clean up inconsistent use of gchar * vs. char *
  qom: Drop object_property_del_child()'s unused parameter @errp
  qom: Change object_property_get_uint16List() to match its doc
  qom: Make all the object_property_add_FOO() return the property
  qom: Drop object_property_set_description() parameter @errp
  tests/check-qom-proplist: Improve iterator coverage
  s390x/cpumodel: Fix UI to CPU features pcc-cmac-{aes,eaes}-256
  hw/isa/superio: Make the components QOM children
  e1000: Don't run e1000_instance_init() twice
  hw/arm/bcm2835: Drop futile attempts at QOM-adopting memory
  qdev: Clean up qdev_connect_gpio_out_named()
  qom: Drop parameter @errp of object_property_add() & friends
  Drop more @errp parameters after previous commit
  qdev: Unrealize must not fail
  spapr_pci: Drop some dead error handling
  qom: Drop @errp parameter of object_property_del()

 hw/9pfs/9p.h                        |   2 +-
 hw/s390x/virtio-ccw.h               |   2 +-
 hw/sd/sdhci-internal.h              |   2 +-
 hw/usb/ccid.h                       |   2 +-
 hw/usb/hcd-ehci.h                   |   2 +-
 include/hw/acpi/ich9.h              |   2 +-
 include/hw/ppc/spapr.h              |   2 +-
 include/hw/qdev-core.h              |   6 +-
 include/hw/s390x/s390-ccw.h         |   2 +-
 include/hw/scsi/scsi.h              |   2 +-
 include/hw/usb.h                    |   2 +-
 include/hw/xen/xen-block.h          |   2 +-
 include/hw/xen/xen-bus.h            |   2 +-
 include/qom/object.h                | 153 ++++-----
 include/sysemu/sysemu.h             |   2 +-
 monitor/monitor-internal.h          |   2 +-
 target/ppc/cpu.h                    |   3 +-
 target/s390x/cpu_features_def.inc.h |   2 +-
 accel/kvm/kvm-all.c                 |   8 +-
 accel/tcg/tcg-all.c                 |   7 +-
 authz/list.c                        |   5 +-
 authz/listfile.c                    |   6 +-
 authz/pamacct.c                     |   3 +-
 authz/simple.c                      |   3 +-
 backends/cryptodev-vhost-user.c     |   3 +-
 backends/cryptodev.c                |   2 +-
 backends/dbus-vmstate.c             |   6 +-
 backends/hostmem-file.c             |  11 +-
 backends/hostmem-memfd.c            |  17 +-
 backends/hostmem.c                  |  35 +-
 backends/rng-egd.c                  |   3 +-
 backends/rng-random.c               |   3 +-
 backends/rng.c                      |   3 +-
 backends/vhost-user.c               |   2 +-
 block/throttle-groups.c             |   6 +-
 bootdevice.c                        |  10 +-
 chardev/char-socket.c               |   4 +-
 chardev/char.c                      |   7 +-
 crypto/secret.c                     |  18 +-
 crypto/tlscreds.c                   |  12 +-
 crypto/tlscredsanon.c               |   3 +-
 crypto/tlscredspsk.c                |   6 +-
 crypto/tlscredsx509.c               |   9 +-
 hw/9pfs/9p.c                        |   4 +-
 hw/9pfs/virtio-9p-device.c          |   4 +-
 hw/acpi/ich9.c                      |  25 +-
 hw/acpi/pcihp.c                     |   9 +-
 hw/acpi/piix4.c                     |  15 +-
 hw/arm/allwinner-a10.c              |   2 +-
 hw/arm/allwinner-h3.c               |  12 +-
 hw/arm/armv7m.c                     |   2 +-
 hw/arm/aspeed.c                     |   4 +-
 hw/arm/aspeed_ast2600.c             |  13 +-
 hw/arm/aspeed_soc.c                 |  13 +-
 hw/arm/bcm2835_peripherals.c        |  28 +-
 hw/arm/bcm2836.c                    |  16 +-
 hw/arm/cubieboard.c                 |   3 +-
 hw/arm/mcimx6ul-evk.c               |   2 +-
 hw/arm/mcimx7d-sabre.c              |   2 +-
 hw/arm/msf2-soc.c                   |   3 +-
 hw/arm/nrf51_soc.c                  |   3 +-
 hw/arm/orangepi.c                   |   3 +-
 hw/arm/raspi.c                      |   3 +-
 hw/arm/sabrelite.c                  |   2 +-
 hw/arm/sbsa-ref.c                   |   5 +-
 hw/arm/vexpress.c                   |  10 +-
 hw/arm/virt.c                       |  39 +--
 hw/arm/xlnx-versal-virt.c           |   3 +-
 hw/arm/xlnx-versal.c                |  10 +-
 hw/arm/xlnx-zcu102.c                |  10 +-
 hw/arm/xlnx-zynqmp.c                |   9 +-
 hw/audio/intel-hda.c                |   2 +-
 hw/audio/marvell_88w8618.c          |   2 +-
 hw/audio/pcspk.c                    |   2 +-
 hw/block/fdc.c                      |   4 +-
 hw/block/nvme.c                     |   2 +-
 hw/block/pflash_cfi02.c             |   2 +-
 hw/block/vhost-user-blk.c           |   4 +-
 hw/block/virtio-blk.c               |   4 +-
 hw/block/xen-block.c                |   8 +-
 hw/char/serial-pci-multi.c          |   2 +-
 hw/char/serial-pci.c                |   2 +-
 hw/char/serial.c                    |   2 +-
 hw/char/virtio-console.c            |   2 +-
 hw/char/virtio-serial-bus.c         |   8 +-
 hw/core/bus.c                       |  24 +-
 hw/core/cpu.c                       |   2 +-
 hw/core/generic-loader.c            |   2 +-
 hw/core/machine-qmp-cmds.c          |   6 +-
 hw/core/machine.c                   |  87 +++--
 hw/core/qdev-properties.c           |  11 +-
 hw/core/qdev.c                      |  74 ++---
 hw/cpu/core.c                       |   4 +-
 hw/display/bochs-display.c          |   3 +-
 hw/display/sm501.c                  |   2 +-
 hw/display/vga-pci.c                |   4 +-
 hw/display/vhost-user-gpu-pci.c     |   3 +-
 hw/display/vhost-user-gpu.c         |   2 +-
 hw/display/vhost-user-vga.c         |   3 +-
 hw/display/virtio-gpu-base.c        |   2 +-
 hw/display/xlnx_dp.c                |   7 +-
 hw/dma/rc4030.c                     |   2 +-
 hw/dma/sparc32_dma.c                |  10 +-
 hw/dma/xilinx_axidma.c              |   9 +-
 hw/dma/xlnx-zdma.c                  |   7 +-
 hw/gpio/aspeed_gpio.c               |   2 +-
 hw/hyperv/hyperv.c                  |   2 +-
 hw/i386/kvm/apic.c                  |   2 +-
 hw/i386/microvm.c                   |  29 +-
 hw/i386/pc.c                        |  18 +-
 hw/i386/pc_piix.c                   |   2 +-
 hw/i386/pc_q35.c                    |   4 +-
 hw/i386/pc_sysfw.c                  |   7 +-
 hw/i386/x86.c                       |  14 +-
 hw/ide/macio.c                      |   2 +-
 hw/ide/qdev.c                       |   6 +-
 hw/input/vhost-user-input.c         |   2 +-
 hw/input/virtio-input-hid.c         |   2 +-
 hw/input/virtio-input-host.c        |   2 +-
 hw/input/virtio-input.c             |   9 +-
 hw/intc/apic.c                      |   2 +-
 hw/intc/apic_common.c               |   6 +-
 hw/intc/ioapic.c                    |   2 +-
 hw/intc/s390_flic.c                 |   4 +-
 hw/intc/xics.c                      |   4 +-
 hw/intc/xive.c                      |   2 +-
 hw/ipack/ipack.c                    |   6 +-
 hw/ipmi/ipmi.c                      |   3 +-
 hw/isa/isa-superio.c                |  13 +-
 hw/isa/lpc_ich9.c                   |   8 +-
 hw/mem/nvdimm.c                     |   4 +-
 hw/mem/pc-dimm.c                    |   4 +-
 hw/microblaze/petalogix_ml605_mmu.c |   6 +-
 hw/misc/aspeed_sdmc.c               |   2 +-
 hw/misc/edu.c                       |   3 +-
 hw/misc/mac_via.c                   |   4 +-
 hw/misc/macio/gpio.c                |   2 +-
 hw/misc/macio/macio.c               |   4 +-
 hw/misc/macio/pmu.c                 |   2 +-
 hw/misc/pca9552.c                   |   2 +-
 hw/misc/tmp105.c                    |   2 +-
 hw/misc/tmp421.c                    |   8 +-
 hw/net/cadence_gem.c                |   3 +-
 hw/net/can/can_kvaser_pci.c         |   2 +-
 hw/net/can/can_mioe3680_pci.c       |   4 +-
 hw/net/can/can_pcm3680_pci.c        |   4 +-
 hw/net/e1000.c                      |   3 +-
 hw/net/e1000e.c                     |   2 +-
 hw/net/eepro100.c                   |   2 +-
 hw/net/lance.c                      |   2 +-
 hw/net/lasi_i82596.c                |   2 +-
 hw/net/ne2000-isa.c                 |   2 +-
 hw/net/ne2000-pci.c                 |   2 +-
 hw/net/pcnet-pci.c                  |   2 +-
 hw/net/rtl8139.c                    |   2 +-
 hw/net/spapr_llan.c                 |   2 +-
 hw/net/sungem.c                     |   2 +-
 hw/net/sunhme.c                     |   2 +-
 hw/net/tulip.c                      |   2 +-
 hw/net/virtio-net.c                 |   6 +-
 hw/net/vmxnet3.c                    |   2 +-
 hw/net/xilinx_axienet.c             |   9 +-
 hw/nios2/10m50_devboard.c           |   3 +-
 hw/nvram/fw_cfg.c                   |   4 +-
 hw/nvram/mac_nvram.c                |   2 +-
 hw/pci-host/grackle.c               |   2 +-
 hw/pci-host/i440fx.c                |  12 +-
 hw/pci-host/pnv_phb3_msi.c          |   3 +-
 hw/pci-host/pnv_phb3_pbcq.c         |   3 +-
 hw/pci-host/q35.c                   |  20 +-
 hw/pci-host/sabre.c                 |   2 +-
 hw/pci-host/uninorth.c              |   8 +-
 hw/pci/pci.c                        |  14 +-
 hw/pci/pcie.c                       |   2 +-
 hw/pci/shpc.c                       |   2 +-
 hw/pcmcia/pxa2xx.c                  |   2 +-
 hw/ppc/e500.c                       |   8 +-
 hw/ppc/mac_newworld.c               |   7 +-
 hw/ppc/mac_oldworld.c               |   2 +-
 hw/ppc/pnv.c                        |  16 +-
 hw/ppc/pnv_bmc.c                    |   5 +-
 hw/ppc/pnv_core.c                   |   4 +-
 hw/ppc/pnv_psi.c                    |   2 +-
 hw/ppc/prep.c                       |   6 +-
 hw/ppc/spapr.c                      |  59 ++--
 hw/ppc/spapr_caps.c                 |  16 +-
 hw/ppc/spapr_cpu_core.c             |   7 +-
 hw/ppc/spapr_drc.c                  |  36 +-
 hw/ppc/spapr_iommu.c                |   4 +-
 hw/ppc/spapr_irq.c                  |   2 +-
 hw/ppc/spapr_pci.c                  |  98 ++----
 hw/ppc/spapr_rng.c                  |   3 +-
 hw/ppc/spapr_rtc.c                  |   2 +-
 hw/ppc/spapr_tpm_proxy.c            |   2 +-
 hw/riscv/sifive_u.c                 |   7 +-
 hw/riscv/virt.c                     |   5 +-
 hw/rtc/mc146818rtc.c                |   4 +-
 hw/s390x/ap-bridge.c                |   2 +-
 hw/s390x/css-bridge.c               |   9 +-
 hw/s390x/event-facility.c           |   6 +-
 hw/s390x/s390-ccw.c                 |   4 +-
 hw/s390x/s390-pci-bus.c             |   4 +-
 hw/s390x/s390-skeys.c               |   4 +-
 hw/s390x/s390-stattrib.c            |   4 +-
 hw/s390x/s390-virtio-ccw.c          |  19 +-
 hw/s390x/sclp.c                     |   5 +-
 hw/s390x/tod.c                      |   2 +-
 hw/s390x/virtio-ccw-balloon.c       |   4 +-
 hw/s390x/virtio-ccw-blk.c           |   2 +-
 hw/s390x/virtio-ccw-net.c           |   2 +-
 hw/s390x/virtio-ccw.c               |   8 +-
 hw/scsi/lsi53c895a.c                |   2 +-
 hw/scsi/scsi-bus.c                  |  17 +-
 hw/scsi/scsi-disk.c                 |   2 +-
 hw/scsi/vhost-scsi.c                |   4 +-
 hw/scsi/vhost-user-scsi.c           |   4 +-
 hw/scsi/virtio-scsi.c               |   2 +-
 hw/sd/sdhci-pci.c                   |   2 +-
 hw/sd/sdhci.c                       |   6 +-
 hw/sparc/sun4m.c                    |   7 +-
 hw/sparc64/sun4u.c                  |   2 +-
 hw/ssi/xilinx_spips.c               |   3 +-
 hw/usb/bus.c                        |  18 +-
 hw/usb/ccid-card-emulated.c         |   2 +-
 hw/usb/dev-audio.c                  |   2 +-
 hw/usb/dev-hid.c                    |   2 +-
 hw/usb/dev-hub.c                    |   2 +-
 hw/usb/dev-network.c                |   4 +-
 hw/usb/dev-smartcard-reader.c       |  11 +-
 hw/usb/dev-storage.c                |   2 +-
 hw/usb/dev-uas.c                    |   2 +-
 hw/usb/dev-wacom.c                  |   2 +-
 hw/usb/hcd-ehci-pci.c               |   2 +-
 hw/usb/hcd-ehci.c                   |   2 +-
 hw/usb/host-libusb.c                |   4 +-
 hw/usb/redirect.c                   |   4 +-
 hw/vfio/ap.c                        |   2 +-
 hw/vfio/ccw.c                       |   6 +-
 hw/vfio/pci-quirks.c                |   6 +-
 hw/vfio/pci.c                       |   2 +-
 hw/virtio/vhost-scsi-pci.c          |   2 +-
 hw/virtio/vhost-user-blk-pci.c      |   2 +-
 hw/virtio/vhost-user-fs.c           |   2 +-
 hw/virtio/vhost-user-input-pci.c    |   3 +-
 hw/virtio/vhost-user-scsi-pci.c     |   2 +-
 hw/virtio/vhost-vsock.c             |   2 +-
 hw/virtio/virtio-balloon-pci.c      |   4 +-
 hw/virtio/virtio-balloon.c          |   6 +-
 hw/virtio/virtio-blk-pci.c          |   2 +-
 hw/virtio/virtio-crypto.c           |   2 +-
 hw/virtio/virtio-iommu.c            |   2 +-
 hw/virtio/virtio-net-pci.c          |   2 +-
 hw/virtio/virtio-pmem.c             |   2 +-
 hw/virtio/virtio-rng.c              |   4 +-
 hw/virtio/virtio.c                  |  11 +-
 hw/watchdog/wdt_diag288.c           |   2 +-
 hw/xen/xen-bus.c                    |  12 +-
 hw/xen/xen-common.c                 |   5 +-
 iothread.c                          |   6 +-
 memory.c                            |  14 +-
 net/can/can_host.c                  |   3 +-
 net/can/can_socketcan.c             |   3 +-
 net/colo-compare.c                  |  20 +-
 net/dump.c                          |   4 +-
 net/filter-buffer.c                 |   2 +-
 net/filter-mirror.c                 |  10 +-
 net/filter-rewriter.c               |   2 +-
 net/filter.c                        |  15 +-
 qdev-monitor.c                      |   4 +-
 qom/container.c                     |   4 +-
 qom/object.c                        | 499 +++++++++++-----------------
 qom/object_interfaces.c             |   8 +-
 scsi/pr-manager-helper.c            |   3 +-
 softmmu/vl.c                        |   7 +-
 target/arm/cpu.c                    |  11 +-
 target/arm/cpu64.c                  |  11 +-
 target/arm/kvm.c                    |   4 +-
 target/i386/cpu.c                   |  92 +++--
 target/i386/sev.c                   |  23 +-
 target/ppc/compat.c                 |  14 +-
 target/ppc/translate_init.inc.c     |   9 +-
 target/s390x/cpu.c                  |   2 +-
 target/s390x/cpu_models.c           |  15 +-
 tests/check-qom-proplist.c          |  70 ++--
 tests/test-qdev-global-props.c      |   4 +-
 ui/console.c                        |   7 +-
 ui/input-barrier.c                  |  14 +-
 ui/input-linux.c                    |   8 +-
 288 files changed, 1127 insertions(+), 1604 deletions(-)

-- 
2.21.1


Re: [PATCH 00/17] qom: Spring cleaning
Posted by no-reply@patchew.org 4 years ago
Patchew URL: https://patchew.org/QEMU/20200428163419.4483-1-armbru@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Subject: [PATCH 00/17] qom: Spring cleaning
Message-id: 20200428163419.4483-1-armbru@redhat.com
Type: series

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
1e7e79e qom: Drop @errp parameter of object_property_del()
787ab69 spapr_pci: Drop some dead error handling
4ae2109 qdev: Unrealize must not fail
31f0921 Drop more @errp parameters after previous commit
7ab7aa4 qom: Drop parameter @errp of object_property_add() & friends
3413d9b qdev: Clean up qdev_connect_gpio_out_named()
bbdfd24 hw/arm/bcm2835: Drop futile attempts at QOM-adopting memory
4c03b90 e1000: Don't run e1000_instance_init() twice
78ab4cf hw/isa/superio: Make the components QOM children
df98931 s390x/cpumodel: Fix UI to CPU features pcc-cmac-{aes, eaes}-256
8f252d2 tests/check-qom-proplist: Improve iterator coverage
b4f77da qom: Drop object_property_set_description() parameter @errp
993374e qom: Make all the object_property_add_FOO() return the property
4c6606e qom: Change object_property_get_uint16List() to match its doc
78efad6 qom: Drop object_property_del_child()'s unused parameter @errp
10c2151 qom: Clean up inconsistent use of gchar * vs. char *
a5d5e35 qom: Clearer reference counting in object_initialize_childv()

=== OUTPUT BEGIN ===
1/17 Checking commit a5d5e35f75b2 (qom: Clearer reference counting in object_initialize_childv())
2/17 Checking commit 10c2151f5621 (qom: Clean up inconsistent use of gchar * vs. char *)
3/17 Checking commit 78efad64bd9a (qom: Drop object_property_del_child()'s unused parameter @errp)
4/17 Checking commit 4c6606e56d70 (qom: Change object_property_get_uint16List() to match its doc)
5/17 Checking commit 993374e1cb51 (qom: Make all the object_property_add_FOO() return the property)
6/17 Checking commit b4f77daab5f8 (qom: Drop object_property_set_description() parameter @errp)
7/17 Checking commit 8f252d2131c6 (tests/check-qom-proplist: Improve iterator coverage)
8/17 Checking commit df9893154598 (s390x/cpumodel: Fix UI to CPU features pcc-cmac-{aes, eaes}-256)
ERROR: line over 90 characters
#54: FILE: target/s390x/cpu_features_def.inc.h:313:
+DEF_FEAT(PCC_CMAC_AES_256, "pcc-cmac-aes-256", PCC, 20, "PCC Compute-Last-Block-CMAC-Using-AES-256")

total: 1 errors, 0 warnings, 8 lines checked

Patch 8/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

9/17 Checking commit 78ab4cf91a3b (hw/isa/superio: Make the components QOM children)
10/17 Checking commit 4c03b90970d8 (e1000: Don't run e1000_instance_init() twice)
11/17 Checking commit bbdfd2486f47 (hw/arm/bcm2835: Drop futile attempts at QOM-adopting memory)
12/17 Checking commit 3413d9b7f4e7 (qdev: Clean up qdev_connect_gpio_out_named())
13/17 Checking commit 7ab7aa47a97d (qom: Drop parameter @errp of object_property_add() & friends)
WARNING: line over 80 characters
#207: FILE: backends/hostmem-file.c:187:
+        file_memory_backend_get_discard_data, file_memory_backend_set_discard_data);

WARNING: line over 80 characters
#1078: FILE: hw/arm/raspi.c:287:
+    object_property_add_const_link(OBJECT(&s->soc), "ram", OBJECT(machine->ram));

WARNING: line over 80 characters
#3084: FILE: hw/ppc/spapr.c:3346:
+                                   &spapr->kernel_addr, OBJ_PROP_FLAG_READWRITE);

total: 0 errors, 3 warnings, 4457 lines checked

Patch 13/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
14/17 Checking commit 31f09214e529 (Drop more @errp parameters after previous commit)
15/17 Checking commit 4ae21090aaa6 (qdev: Unrealize must not fail)
16/17 Checking commit 787ab6991f71 (spapr_pci: Drop some dead error handling)
17/17 Checking commit 1e7e79e14e27 (qom: Drop @errp parameter of object_property_del())
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200428163419.4483-1-armbru@redhat.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PATCH 00/17] qom: Spring cleaning
Posted by Paolo Bonzini 4 years ago
On 28/04/20 18:34, Markus Armbruster wrote:
> Includes one actual bug fix for s390x.

I reviewed everything except patch 8 and it looks good.  Thanks very much!

Paolo


Re: [PATCH 00/17] qom: Spring cleaning
Posted by Markus Armbruster 4 years ago
Paolo Bonzini <pbonzini@redhat.com> writes:

> On 28/04/20 18:34, Markus Armbruster wrote:
>> Includes one actual bug fix for s390x.
>
> I reviewed everything except patch 8 and it looks good.  Thanks very much!

May I add Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>?


Re: [PATCH 00/17] qom: Spring cleaning
Posted by Paolo Bonzini 4 years ago
On 04/05/20 17:28, Markus Armbruster wrote:
>> I reviewed everything except patch 8 and it looks good.  Thanks very much!
> May I add Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>?
> 

For those 16 yes.

Paolo