Skip to content

hw: More QDev cleanups

Philippe Mathieu-Daudé qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21hw/i386/pc: Do not use C99 mixed-declarations stylehw/i386/pc.c+2 -22 replies
2/21hw/i386/pc_sysfw: Use qdev_is_realized() instead of QOM APIhw/i386/pc_sysfw.c+2 -41 reply
3/21hw/ppc/spapr_cpu: Use qdev_is_realized() instead of QOM APIhw/ppc/spapr_cpu_core.c+1 -21 reply
4/21hw/tricore/testboard: Use qdev_new() instead of QOM basic APIhw/tricore/tricore_testboard.c include/hw/tricore/tricore_testdevice.h+1 -61 reply
5/21hw/ppc/pnv_bmc: Use qdev_new() instead of QOM APIhw/ppc/pnv_bmc.c+5 -51 reply
6/21hw: Replace DEVICE(object_new) -> qdev_new()hw/arm/musicpal.c hw/core/qdev.c hw/sparc/sun4m.c+4 -41 reply
7/21target: Replace DEVICE(object_new) -> qdev_new()target/mips/cpu.c target/xtensa/cpu.c+2 -21 reply
8/21hw/isa: Inline isa_try_new()hw/i386/pc.c hw/isa/isa-bus.c include/hw/isa/isa.h +1 more+2 -80 replies
9/21hw/usb: Inline usb_try_new()hw/usb/bus.c+1 -61 reply
10/21hw/usb: Inline usb_new()hw/usb/bus.c hw/usb/dev-serial.c include/hw/usb.h+3 -91 reply
11/21hw/usb: Add QOM parentship relation with hub deviceshw/usb/bus.c+1 -01 reply
12/21hw/pci-host/q35: Update q35_host_props[] commenthw/pci-host/q35.c+3 -30 replies
13/21hw/pci-host/raven: Embedded OrIRQ in PRePPCIStatehw/pci-host/raven.c+6 -60 replies
14/21hw/pci-host/raven: Prefer object_initialize_child over object_initializehw/pci-host/raven.c+2 -40 replies
15/21hw/core/register: Prefer object_initialize_child over object_initializehw/core/register.c+1 -10 replies
16/21hw/net/can/versal: Prefer object_initialize_child over object_initializehw/net/can/xlnx-versal-canfd.c+1 -13 replies
17/21hw/i386/iommu: Prefer object_initialize_child over object_initializehw/i386/amd_iommu.c+3 -31 reply
18/21hw/pci-host/versatile: Replace object_initialize() -> _child()hw/pci-host/versatile.c+2 -10 replies
19/21hw/s390x/zpci-bus: Add QOM parentship relation with zPCI deviceshw/s390x/s390-pci-bus.c+1 -02 replies
20/21hw/arm/mps2: Add QOM parentship relation with OR IRQ gateshw/arm/mps2.c+5 -00 replies
21/21hw: Add QOM parentship relation with CPUshw/i386/x86.c hw/microblaze/petalogix_ml605_mmu.c hw/microblaze/petalogix_s3adsp1800_mmu.c +4 more+7 -01 reply

Reviews trailers per patch

10 of 21 patches have a Reviewed-by or Acked-by.

PatchCédric Le GoaterBastian KoppelmannZhao LiuFrancisco IglesiasPavel Pisa
1/21
2/21R-b
3/21R-b
4/21R-b
5/21R-b
6/21R-b
7/21R-b
8/21
9/21R-b
10/21R-b
11/21
12/21
13/21
14/21
15/21
16/21R-b R-b
17/21
18/21
19/21
20/21
21/21R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 00/21] hw: More QDev cleanups

Various QDev cleanups extracted to my "enforce QDev API" branch.
- When available, instead of plain QOM, use QDev API equivalent
- Add missing QOM parentship for some obj created with qdev_*new()
- Prefer object_initialize_child() over object_initialize()

Philippe Mathieu-Daudé (21):
hw/i386/pc: Do not use C99 mixed-declarations style hw/i386/pc_sysfw: Use qdev_is_realized() instead of QOM API hw/ppc/spapr_cpu: Use qdev_is_realized() instead of QOM API hw/tricore/testboard: Use qdev_new() instead of QOM basic API hw/ppc/pnv_bmc: Use qdev_new() instead of QOM API
hw: Replace DEVICE(object_new) -> qdev_new()
target: Replace DEVICE(object_new) -> qdev_new()
hw/isa: Inline isa_try_new()
hw/usb: Inline usb_try_new()
hw/usb: Inline usb_new()
hw/usb: Add QOM parentship relation with hub devices hw/pci-host/q35: Update q35_host_props[] comment hw/pci-host/raven: Embedded OrIRQ in PRePPCIState hw/pci-host/raven: Prefer object_initialize_child over
object_initialize
hw/core/register: Prefer object_initialize_child over
object_initialize
hw/net/can/versal: Prefer object_initialize_child over
object_initialize
hw/i386/iommu: Prefer object_initialize_child over object_initialize hw/pci-host/versatile: Replace object_initialize() -> _child() hw/s390x/zpci-bus: Add QOM parentship relation with zPCI devices hw/arm/mps2: Add QOM parentship relation with OR IRQ gates
hw: Add QOM parentship relation with CPUs

 include/hw/isa/isa.h                     |  1 -
 include/hw/net/ne2000-isa.h              |  2 +-
 include/hw/tricore/tricore_testdevice.h  |  3 ---
 include/hw/usb.h                         |  1 -
 hw/arm/mps2.c                            |  5 +++++
 hw/arm/musicpal.c                        |  2 +-
 hw/core/qdev.c                           |  2 +-
 hw/core/register.c                       |  2 +-
 hw/i386/amd_iommu.c                      |  6 +++---
 hw/i386/pc.c                             |  6 +++---
 hw/i386/pc_sysfw.c                       |  6 ++----
 hw/i386/x86.c                            |  1 +
 hw/isa/isa-bus.c                         |  5 -----
 hw/microblaze/petalogix_ml605_mmu.c      |  1 +
 hw/microblaze/petalogix_s3adsp1800_mmu.c |  1 +
 hw/mips/cps.c                            |  1 +
 hw/net/can/xlnx-versal-canfd.c           |  2 +-
 hw/nios2/10m50_devboard.c                |  1 +
 hw/pci-host/q35.c                        |  6 +++---
 hw/pci-host/raven.c                      | 18 ++++++++----------
 hw/pci-host/versatile.c                  |  3 ++-
 hw/ppc/e500.c                            |  1 +
 hw/ppc/pnv_bmc.c                         | 10 +++++-----
 hw/ppc/spapr.c                           |  1 +
 hw/ppc/spapr_cpu_core.c                  |  3 +--
 hw/s390x/s390-pci-bus.c                  |  1 +
 hw/sparc/sun4m.c                         |  4 ++--
 hw/tricore/tricore_testboard.c           |  4 +---
 hw/usb/bus.c                             | 17 ++++-------------
 hw/usb/dev-serial.c                      |  2 +-
 target/mips/cpu.c                        |  2 +-
 target/xtensa/cpu.c                      |  2 +-
 32 files changed, 55 insertions(+), 67 deletions(-)
Signature · 1 line
2.41.0