qemu-e2k/include/hw/ppc
Daniel Henrique Barboza 3a6e4ce684 spapr_numa.c: parametrize FORM1 macros
The next preliminary step to introduce NUMA FORM2 affinity is to make
the existing code independent of FORM1 macros and values, i.e.
MAX_DISTANCE_REF_POINTS, NUMA_ASSOC_SIZE and VCPU_ASSOC_SIZE. This patch
accomplishes that by doing the following:

- move the NUMA related macros from spapr.h to spapr_numa.c where they
are used. spapr.h gets instead a 'NUMA_NODES_MAX_NUM' macro that is used
to refer to the maximum number of NUMA nodes, including GPU nodes, that
the machine can support;

- MAX_DISTANCE_REF_POINTS and NUMA_ASSOC_SIZE are renamed to
FORM1_DIST_REF_POINTS and FORM1_NUMA_ASSOC_SIZE. These FORM1 specific
macros are used in FORM1 init functions;

- code that uses MAX_DISTANCE_REF_POINTS now retrieves the
max_dist_ref_points value using get_max_dist_ref_points().
NUMA_ASSOC_SIZE is replaced by get_numa_assoc_size() and VCPU_ASSOC_SIZE
is replaced by get_vcpu_assoc_size(). These functions are used by the
generic device tree functions and h_home_node_associativity() and will
allow them to switch between FORM1 and FORM2 without changing their core
logic.

Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20210920174947.556324-4-danielhb413@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-09-30 12:26:06 +10:00
..
fdt.h
mac_dbdma.h
openpic_kvm.h
openpic.h
pef.h
pnv_core.h ppc/pnv: Rename "id" to "quad-id" in PnvQuad 2021-09-29 19:37:38 +10:00
pnv_homer.h
pnv_lpc.h
pnv_occ.h
pnv_pnor.h
pnv_psi.h
pnv_xive.h
pnv_xscom.h exec/memory: Use struct Object typedef 2021-03-09 21:53:57 +01:00
pnv.h ppc/pnv: Use a simple incrementing index for the chip-id 2021-08-27 12:41:13 +10:00
ppc4xx.h
ppc_e500.h
ppc.h
spapr_cpu_core.h
spapr_drc.h spapr: rollback 'unplug timeout' for CPU hotunplugs 2021-04-12 12:27:14 +10:00
spapr_irq.h
spapr_numa.h spapr_numa.c: create spapr_numa_initial_nvgpu_numa_id() helper 2021-02-10 10:43:50 +11:00
spapr_nvdimm.h spapr: nvdimm: Forward declare and move the definitions 2021-06-03 13:22:06 +10:00
spapr_ovec.h
spapr_rtas.h
spapr_tpm_proxy.h
spapr_vio.h
spapr_xive.h
spapr.h spapr_numa.c: parametrize FORM1 macros 2021-09-30 12:26:06 +10:00
vof.h ppc/vof: Fix Coverity issues 2021-07-29 10:59:49 +10:00
xics_spapr.h
xics.h
xive_regs.h
xive.h ppc/xive: Export xive_tctx_word2() helper 2021-09-29 19:37:38 +10:00