Skip to content

ppc/pnv: remove the use of qdev_get_machine()

Cédric Le Goater qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest12 patches 4 repliesIn review
  2. v213 patches 12 repliesApplied
  3. v110 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- rebase on latest ppc tree
- dropped get_system_memory() removal
- addition of a couple of cleanup patches of the PSI model from Greg

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12ppc/pnv: Introduce a "xics" property alias under the PSI modelhw/ppc/pnv.c hw/ppc/pnv_psi.c+4 -110 replies
2/12ppc/pnv: Introduce a "xics" property under the POWER8 chiphw/ppc/pnv.c include/hw/ppc/pnv.h+21 -50 replies
3/12pnv/xive: Use device_class_set_parent_realize()hw/intc/pnv_xive.c include/hw/ppc/pnv_xive.h+20 -00 replies
4/12spapr, pnv, xive: Add a "xive-fabric" link to the XIVE routerhw/intc/xive.c hw/ppc/pnv.c hw/ppc/spapr_irq.c +1 more+19 -20 replies
5/12xive: Use the XIVE fabric link under the XIVE routerhw/intc/xive.c+11 -31 reply
6/12ppc/pnv: Add an "nr-threads" property to the base chip classhw/ppc/pnv.c include/hw/ppc/pnv.h+6 -30 replies
7/12ppc/pnv: Add a "pnor" const link property to the BMC internal simulatorhw/ppc/pnv.c hw/ppc/pnv_bmc.c include/hw/ppc/pnv.h+7 -50 replies
8/12xive: Add a "presenter" link property to the TCTX objecthw/intc/spapr_xive.c hw/intc/xive.c hw/ppc/pnv.c +1 more+13 -60 replies
9/12spapr/xive: Deduce the SpaprXive pointer from XiveTCTX::xptrhw/intc/spapr_xive_kvm.c+4 -50 replies
10/12pnv/xive: Deduce the PnvXive pointer from XiveTCTX::xptrhw/intc/pnv_xive.c hw/ppc/pnv.c include/hw/ppc/pnv.h+2 -221 reply
11/12pnv/psi: Add device reset hookhw/ppc/pnv_psi.c+13 -42 replies
12/12pnv/psi: Consolidate some duplicated code in pnv_psi_realize()hw/ppc/pnv_psi.c+12 -70 replies

Reviews trailers per patch

4 of 12 patches have a Reviewed-by or Acked-by.

PatchGreg KurzDavid Gibson
1/12R-b
2/12R-b R-b
3/12R-b
4/12
5/12
6/12R-b
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/12] ppc/pnv: remove the use of qdev_get_machine()

Hello,

The PowerNV and sPAPR machine use qdev_get_machine() in some places. This is not a good modeling pratice and it should be avoided. This series replaces the use of this routine with a set of QOM properties and aliases.

Thanks,

C.

Changes since v2:

- rebase on latest ppc tree
- dropped get_system_memory() removal
- addition of a couple of cleanup patches of the PSI model from Greg

Changes since v1:

- fixed a missing assert(chip->system_memory)
- introduced a XivePresenter link under XiveTCTX

Cédric Le Goater (3):
ppc/pnv: Introduce a "xics" property alias under the PSI model ppc/pnv: Introduce a "xics" property under the POWER8 chip
xive: Add a "presenter" link property to the TCTX object

Greg Kurz (9):
pnv/xive: Use device_class_set_parent_realize() spapr, pnv, xive: Add a "xive-fabric" link to the XIVE router
xive: Use the XIVE fabric link under the XIVE router ppc/pnv: Add an "nr-threads" property to the base chip class ppc/pnv: Add a "pnor" const link property to the BMC internal
simulator
spapr/xive: Deduce the SpaprXive pointer from XiveTCTX::xptr pnv/xive: Deduce the PnvXive pointer from XiveTCTX::xptr pnv/psi: Add device reset hook
pnv/psi: Consolidate some duplicated code in pnv_psi_realize()

 include/hw/ppc/pnv.h      |  7 +++--
 include/hw/ppc/pnv_xive.h | 10 +++++++
 include/hw/ppc/xive.h     | 13 +++++----
 hw/intc/pnv_xive.c        | 18 ++++++++----
 hw/intc/spapr_xive.c      |  2 +-
 hw/intc/spapr_xive_kvm.c  |  9 +++---
 hw/intc/xive.c            | 28 ++++++++++++++++---
 hw/ppc/pnv.c              | 59 ++++++++++++++++++++++-----------------
 hw/ppc/pnv_bmc.c          |  8 ++++--
 hw/ppc/pnv_psi.c          | 43 ++++++++++++++++------------
 hw/ppc/spapr_irq.c        |  2 ++
 11 files changed, 129 insertions(+), 70 deletions(-)
Signature · 1 line
2.21.1