Skip to content

hw/cpu/arm: Remove one use of qemu_get_cpu() in A7/A15 MPCore priv

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest33 patches 42 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/33hw/arm/boot: Propagate vCPU to arm_load_dtb()hw/arm/boot.c hw/arm/virt.c include/hw/arm/boot.h+10 -71 reply
2/33hw/arm/fsl-imx6: Add a local 'gic' variablehw/arm/fsl-imx6.c+13 -241 reply
3/33hw/arm/fsl-imx6ul: Add a local 'gic' variablehw/arm/fsl-imx6ul.c+14 -241 reply
4/33hw/arm/fsl-imx7: Add a local 'gic' variablehw/arm/fsl-imx7.c+17 -211 reply
5/33hw/cpu: Remove dead Kconfighw/cpu/Kconfig+0 -81 reply
6/33hw/cpu/arm: Rename 'busdev' -> 'gicsbd' in a15mp_priv_realize()hw/cpu/a15mpcore.c+8 -81 reply
7/33hw/cpu/arm: Alias 'num-cpu' property on TYPE_REALVIEW_MPCOREhw/cpu/realview_mpcore.c+1 -81 reply
8/33hw/cpu/arm: Declare CPU QOM types using DEFINE_TYPES() macrohw/cpu/a15mpcore.c hw/cpu/a9mpcore.c hw/cpu/arm11mpcore.c +1 more+36 -481 reply
9/33hw/cpu/arm: Merge {a9mpcore.h, a15mpcore.h} as cortex_mpcore.hMAINTAINERS hw/arm/exynos4210.c hw/arm/highbank.c +13 more+35 -691 reply
10/33hw/cpu/arm: Introduce abstract CORTEX_MPCORE_PRIV QOM typehw/arm/Kconfig hw/cpu/cortex_mpcore.c hw/cpu/meson.build +1 more+47 -01 reply
11/33hw/cpu/arm: Have A9MPCORE/A15MPCORE inheritate common CORTEX_MPCORE_PRIVhw/arm/Kconfig hw/cpu/a15mpcore.c hw/cpu/a9mpcore.c +1 more+29 -61 reply
12/33hw/cpu/arm: Create MPCore container in QOM parenthw/cpu/a15mpcore.c hw/cpu/a9mpcore.c hw/cpu/cortex_mpcore.c +1 more+39 -201 reply
13/33hw/cpu/arm: Handle 'num_cores' property once in MPCore parenthw/arm/aspeed_ast2600.c hw/arm/exynos4210.c hw/arm/fsl-imx6.c +10 more+46 -250 replies
14/33hw/cpu/arm: Handle 'has_el2/3' properties once in MPCore parenthw/arm/exynos4210.c hw/arm/vexpress.c hw/arm/xilinx_zynq.c +4 more+35 -182 replies
15/33hw/cpu/arm: Handle 'gic-irq' property once in MPCore parenthw/cpu/a15mpcore.c hw/cpu/a9mpcore.c hw/cpu/cortex_mpcore.c +1 more+40 -340 replies
16/33hw/cpu/arm: Handle GIC once in MPCore parenthw/arm/Kconfig hw/cpu/a15mpcore.c hw/cpu/a9mpcore.c +2 more+88 -910 replies
17/33hw/cpu/arm: Document more properties of CORTEX_MPCORE_PRIV QOM typeinclude/hw/cpu/cortex_mpcore.h+7 -00 replies
18/33hw/cpu/arm: Replace A15MPPrivState by CortexMPPrivStatehw/cpu/a15mpcore.c include/hw/arm/aspeed_soc.h include/hw/arm/fsl-imx6ul.h +2 more+4 -90 replies
19/33hw/cpu/arm: Introduce TYPE_A7MPCORE_PRIV for Cortex-A7 MPCorehw/arm/aspeed_ast2600.c hw/arm/fsl-imx6ul.c hw/arm/fsl-imx7.c +2 more+35 -60 replies
20/33hw/cpu/arm: Consolidate check on max GIC spi supportedhw/cpu/cortex_mpcore.c+7 -00 replies
21/33hw/cpu/arm: Create CPUs once in MPCore parenthw/cpu/cortex_mpcore.c include/hw/cpu/cortex_mpcore.h+100 -00 replies
22/33hw/arm/aspeed_ast2600: Let the A7MPcore create/wire the CPU coreshw/arm/aspeed_ast2600.c include/hw/arm/aspeed_soc.h+18 -411 reply
23/33hw/arm/exynos4210: Let the A9MPcore create/wire the CPU coreshw/arm/exynos4210.c hw/arm/exynos4_boards.c include/hw/arm/exynos4210.h+26 -460 replies
24/33hw/arm/fsl-imx6: Let the A9MPcore create/wire the CPU coreshw/arm/fsl-imx6.c hw/arm/sabrelite.c include/hw/arm/fsl-imx6.h+11 -440 replies
25/33hw/arm/fsl-imx6ul: Let the A7MPcore create/wire the CPU coreshw/arm/fsl-imx6ul.c hw/arm/mcimx6ul-evk.c include/hw/arm/fsl-imx6ul.h+8 -230 replies
26/33hw/arm/fsl-imx7: Let the A7MPcore create/wire the CPU coreshw/arm/fsl-imx7.c hw/arm/mcimx7d-sabre.c include/hw/arm/fsl-imx7.h+10 -590 replies
27/33hw/arm/highbank: Let the A9/A15MPcore create/wire the CPU coreshw/arm/highbank.c+8 -450 replies
28/33hw/arm/vexpress: Let the A9/A15MPcore create/wire the CPU coreshw/arm/vexpress.c+6 -450 replies
29/33hw/arm/xilinx_zynq: Let the A9MPcore create/wire the CPU coreshw/arm/xilinx_zynq.c+5 -170 replies
30/33hw/arm/npcm7xx: Let the A9MPcore create/wire the CPU coreshw/arm/npcm7xx.c include/hw/arm/npcm7xx.h+12 -370 replies
31/33hw/cpu/a9mpcore: Remove legacy codehw/cpu/a9mpcore.c hw/cpu/cortex_mpcore.c+8 -80 replies
32/33hw/cpu/arm: Remove 'num-cpu' property aliashw/cpu/arm11mpcore.c hw/cpu/cortex_mpcore.c hw/cpu/realview_mpcore.c+0 -40 replies
33/33hw/cpu/arm: Remove use of qemu_get_cpu() in A7/A15 realize()hw/cpu/a15mpcore.c+1 -10 replies

Reviews trailers per patch

13 of 33 patches have a Reviewed-by or Acked-by.

PatchAndrew JefferyCédric Le Goater
1/33R-b
2/33R-b
3/33R-b
4/33R-b
5/33R-b
6/33R-b
7/33R-b
8/33R-b
9/33R-b
10/33R-b
11/33R-b
12/33R-b
13/33
14/33
15/33
16/33
17/33
18/33
19/33
20/33
21/33
22/33A-b
23/33
24/33
25/33
26/33
27/33
28/33
29/33
30/33
31/33
32/33
33/33

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

Read the v1 thread

Cover letter [PATCH 00/33] hw/cpu/arm: Remove one use of qemu_get_cpu() in A7/A15 MPCore priv

Hi,

When a MPCore cluster is used, the Cortex-A cores belong the the cluster container, not to the board/soc layer. This series move the creation of vCPUs to the MPCore private container.

Doing so we consolidate the QOM model, moving common code in a central place (abstract MPCore parent).

This eventually allow removing one qemu_get_cpu() use, which we want to remove in heterogeneous machines (machines using MPCore are candidate for heterogeneous emulation).

Maybe these hw/cpu/arm/ files belong to hw/arm/...

Regards,

Phil.

Philippe Mathieu-Daudé (33):
hw/arm/boot: Propagate vCPU to arm_load_dtb() hw/arm/fsl-imx6: Add a local 'gic' variable hw/arm/fsl-imx6ul: Add a local 'gic' variable hw/arm/fsl-imx7: Add a local 'gic' variable
hw/cpu: Remove dead Kconfig
hw/cpu/arm: Rename 'busdev' -> 'gicsbd' in a15mp_priv_realize() hw/cpu/arm: Alias 'num-cpu' property on TYPE_REALVIEW_MPCORE hw/cpu/arm: Declare CPU QOM types using DEFINE_TYPES() macro hw/cpu/arm: Merge {a9mpcore.h, a15mpcore.h} as cortex_mpcore.h hw/cpu/arm: Introduce abstract CORTEX_MPCORE_PRIV QOM type hw/cpu/arm: Have A9MPCORE/A15MPCORE inheritate common
CORTEX_MPCORE_PRIV
hw/cpu/arm: Create MPCore container in QOM parent hw/cpu/arm: Handle 'num_cores' property once in MPCore parent hw/cpu/arm: Handle 'has_el2/3' properties once in MPCore parent hw/cpu/arm: Handle 'gic-irq' property once in MPCore parent hw/cpu/arm: Handle GIC once in MPCore parent
hw/cpu/arm: Document more properties of CORTEX_MPCORE_PRIV QOM type hw/cpu/arm: Replace A15MPPrivState by CortexMPPrivState hw/cpu/arm: Introduce TYPE_A7MPCORE_PRIV for Cortex-A7 MPCore hw/cpu/arm: Consolidate check on max GIC spi supported hw/cpu/arm: Create CPUs once in MPCore parent hw/arm/aspeed_ast2600: Let the A7MPcore create/wire the CPU cores hw/arm/exynos4210: Let the A9MPcore create/wire the CPU cores hw/arm/fsl-imx6: Let the A9MPcore create/wire the CPU cores hw/arm/fsl-imx6ul: Let the A7MPcore create/wire the CPU cores hw/arm/fsl-imx7: Let the A7MPcore create/wire the CPU cores hw/arm/highbank: Let the A9/A15MPcore create/wire the CPU cores hw/arm/vexpress: Let the A9/A15MPcore create/wire the CPU cores hw/arm/xilinx_zynq: Let the A9MPcore create/wire the CPU cores hw/arm/npcm7xx: Let the A9MPcore create/wire the CPU cores hw/cpu/a9mpcore: Remove legacy code
hw/cpu/arm: Remove 'num-cpu' property alias
hw/cpu/arm: Remove use of qemu_get_cpu() in A7/A15 realize()

 MAINTAINERS                    |   3 +-
 include/hw/arm/aspeed_soc.h    |   5 +-
 include/hw/arm/boot.h          |   4 +-
 include/hw/arm/exynos4210.h    |   6 +-
 include/hw/arm/fsl-imx6.h      |   6 +-
 include/hw/arm/fsl-imx6ul.h    |   8 +-
 include/hw/arm/fsl-imx7.h      |   8 +-
 include/hw/arm/npcm7xx.h       |   3 +-
 include/hw/cpu/a15mpcore.h     |  44 -------
 include/hw/cpu/a9mpcore.h      |  39 -------
 include/hw/cpu/cortex_mpcore.h | 135 ++++++++++++++++++++++
 hw/arm/aspeed_ast2600.c        |  61 ++++------
 hw/arm/boot.c                  |  11 +-
 hw/arm/exynos4210.c            |  60 ++++------
 hw/arm/exynos4_boards.c        |   6 +-
 hw/arm/fsl-imx6.c              |  84 ++++----------
 hw/arm/fsl-imx6ul.c            |  65 ++++-------
 hw/arm/fsl-imx7.c              | 103 +++++------------
 hw/arm/highbank.c              |  56 ++-------
 hw/arm/mcimx6ul-evk.c          |   3 +-
 hw/arm/mcimx7d-sabre.c         |   3 +-
 hw/arm/npcm7xx.c               |  48 ++------
 hw/arm/realview.c              |   4 +-
 hw/arm/sabrelite.c             |   4 +-
 hw/arm/vexpress.c              |  60 +++-------
 hw/arm/virt.c                  |   2 +-
 hw/arm/xilinx_zynq.c           |  30 ++---
 hw/cpu/a15mpcore.c             | 179 +++++++++++++----------------
 hw/cpu/a9mpcore.c              | 138 +++++++++-------------
 hw/cpu/arm11mpcore.c           |  23 ++--
 hw/cpu/cortex_mpcore.c         | 202 +++++++++++++++++++++++++++++++++
 hw/cpu/realview_mpcore.c       |  30 ++---
 hw/arm/Kconfig                 |   8 +-
 hw/cpu/Kconfig                 |   8 --
 hw/cpu/meson.build             |   1 +
 35 files changed, 689 insertions(+), 761 deletions(-)
 delete mode 100644 include/hw/cpu/a15mpcore.h
 delete mode 100644 include/hw/cpu/a9mpcore.h
 create mode 100644 include/hw/cpu/cortex_mpcore.h
 create mode 100644 hw/cpu/cortex_mpcore.c
 delete mode 100644 hw/cpu/Kconfig
Signature · 1 line
2.41.0