Skip to content

numa: code consolidation and fixes

Igor Mammedov qemu-arm qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 8 repliesIn review
  2. v25 patches 13 repliesApplied
  3. v13 patches 12 repliesSuperseded

Changes in v3 from the cover letter

(Eduardo)
- keep original logic in when moving numa part into helper
numa: consolidate cpu_preplug fixups/checks for pc/arm/spapr
- drop "numa: fallback to default NUMA node instead of node 0"
- split out monitor hunk into separate patch
- split out spapr_fixup_cpu_numa_dt refactoring into separate patch
- add extra patch to make default node-id calculation more robust

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7numa: consolidate cpu_preplug fixups/checks for pc/arm/spaprhw/arm/virt.c hw/i386/pc.c hw/ppc/spapr.c +2 more+28 -460 replies
2/7numa: move default mapping init to machinehw/core/machine.c numa.c+23 -360 replies
3/7numa: make sure that all cpus have has_node_id set if numa is enabledhw/arm/virt-acpi-build.c hw/core/machine.c hw/i386/acpi-build.c +2 more+18 -250 replies
4/7numa: make hmp 'info numa' fetch numa nodes from qmp_query_cpus() resultmonitor.c+7 -40 replies
5/7numa: move numa_node from CPUState into target specific classeshw/ppc/spapr.c hw/ppc/spapr_cpu_core.c include/qom/cpu.h +5 more+10 -62 replies
6/7spapr: cleanup spapr_fixup_cpu_numa_dt() usagehw/ppc/spapr.c+10 -122 replies
7/7numa: cpu: calculate/set default node-ids after all -numa CLI options are parsedhw/arm/virt.c hw/core/machine.c hw/i386/pc.c +3 more+40 -265 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchDavid GibsonGreg KurzEduardo Habkost
1/7R-b
2/7
3/7
4/7
5/7
6/7R-b
7/7R-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 3 reviewers.

Read the v3 thread

Cover letter [Qemu-arm] [PATCH v3 0/7] numa: code consolidation and fixes

changelog since v2:
(Eduardo)
- keep original logic in when moving numa part into helper
numa: consolidate cpu_preplug fixups/checks for pc/arm/spapr
- drop "numa: fallback to default NUMA node instead of node 0"
- split out monitor hunk into separate patch
- split out spapr_fixup_cpu_numa_dt refactoring into separate patch
- add extra patch to make default node-id calculation more robust
changelog since v1:
(Eduardo)
- user error_abort in numa_cpu_pre_plug()
- make default_mapping boolean
- redo default mapping detection loop as a combo of for/if
- return back lost TODO comment
- new patch removing numa_node from generic CPUState
- drop silence test patch as it's already in pull req on list
- new patch [3/5] to fix missing _PXM/fdt nodes for implicitly mapped CPUs
- new patch dropping fallback to node 0

git repo for testing:
https://github.com/imammedo/qemu.git cphp_numa_cfg_follow_up_v3_cleanups_v3

CC Eduardo Habkost <[email protected]>
CC David Gibson <[email protected]>
CC Andrew Jones <[email protected]>

Igor Mammedov (7):
numa: consolidate cpu_preplug fixups/checks for pc/arm/spapr
numa: move default mapping init to machine
numa: make sure that all cpus have has_node_id set if numa is enabled
numa: make hmp 'info numa' fetch numa nodes from qmp_query_cpus()
result
numa: move numa_node from CPUState into target specific classes
spapr: cleanup spapr_fixup_cpu_numa_dt() usage
numa: cpu: calculate/set default node-ids after all -numa CLI options
are parsed

 include/hw/boards.h      |  3 +++
 include/qom/cpu.h        |  2 --
 include/sysemu/numa.h    | 10 +++++++++
 target/arm/cpu.h         |  2 ++
 target/i386/cpu.h        |  1 +
 target/ppc/cpu.h         |  1 +
 hw/arm/virt-acpi-build.c |  4 +---
 hw/arm/virt.c            | 32 +++++++++------------------
 hw/core/machine.c        | 38 +++++++++++++++++++++++---------
 hw/i386/acpi-build.c     |  3 +--
 hw/i386/pc.c             | 42 ++++++++++++-----------------------
 hw/ppc/spapr.c           | 57 ++++++++++++++++--------------------------------
 hw/ppc/spapr_cpu_core.c  |  4 +++-
 monitor.c                | 11 ++++++----
 numa.c                   | 43 +++++++++++++++---------------------
 target/arm/cpu.c         |  2 +-
 target/i386/cpu.c        |  2 +-
 17 files changed, 119 insertions(+), 138 deletions(-)
Signature · 1 line
2.7.4