summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc
diff options
context:
space:
mode:
authorDaniel Henrique Barboza2021-01-28 18:42:12 +0100
committerDavid Gibson2021-02-10 00:43:50 +0100
commit6640706972c50aac4f620d7385d4e228a118e289 (patch)
tree3476fe9141e5c816d47b12814b4bd7e81786c0ac /include/hw/ppc
parentspapr: move spapr_machine_using_legacy_numa() to spapr_numa.c (diff)
downloadqemu-6640706972c50aac4f620d7385d4e228a118e289.tar.gz
qemu-6640706972c50aac4f620d7385d4e228a118e289.tar.xz
qemu-6640706972c50aac4f620d7385d4e228a118e289.zip
spapr_numa.c: create spapr_numa_initial_nvgpu_numa_id() helper
We'll need to check the initial value given to spapr->gpu_numa_id when building the rtas DT, so put it in a helper for easier access and to avoid repetition. Tested-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Message-Id: <20210128174213.1349181-3-danielhb413@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc')
-rw-r--r--include/hw/ppc/spapr_numa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr_numa.h b/include/hw/ppc/spapr_numa.h
index b3fd950634..6f9f02d3de 100644
--- a/include/hw/ppc/spapr_numa.h
+++ b/include/hw/ppc/spapr_numa.h
@@ -31,5 +31,6 @@ int spapr_numa_fixup_cpu_dt(SpaprMachineState *spapr, void *fdt,
int offset, PowerPCCPU *cpu);
int spapr_numa_write_assoc_lookup_arrays(SpaprMachineState *spapr, void *fdt,
int offset);
+unsigned int spapr_numa_initial_nvgpu_numa_id(MachineState *machine);
#endif /* HW_SPAPR_NUMA_H */