2
0

spapr_numa.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * QEMU PowerPC pSeries Logical Partition NUMA associativity handling
  3. *
  4. * Copyright IBM Corp. 2020
  5. *
  6. * Authors:
  7. * Daniel Henrique Barboza <danielhb413@gmail.com>
  8. *
  9. * This work is licensed under the terms of the GNU GPL, version 2 or later.
  10. * See the COPYING file in the top-level directory.
  11. */
  12. #ifndef HW_SPAPR_NUMA_H
  13. #define HW_SPAPR_NUMA_H
  14. #include "hw/boards.h"
  15. #include "hw/ppc/spapr.h"
  16. /*
  17. * Having both SpaprMachineState and MachineState as arguments
  18. * feels odd, but it will spare a MACHINE() call inside the
  19. * function. spapr_machine_init() is the only caller for it, and
  20. * it has both pointers resolved already.
  21. */
  22. void spapr_numa_associativity_init(SpaprMachineState *spapr,
  23. MachineState *machine);
  24. void spapr_numa_associativity_check(SpaprMachineState *spapr);
  25. void spapr_numa_write_rtas_dt(SpaprMachineState *spapr, void *fdt, int rtas);
  26. void spapr_numa_write_associativity_dt(SpaprMachineState *spapr, void *fdt,
  27. int offset, int nodeid);
  28. int spapr_numa_fixup_cpu_dt(SpaprMachineState *spapr, void *fdt,
  29. int offset, PowerPCCPU *cpu);
  30. int spapr_numa_write_assoc_lookup_arrays(SpaprMachineState *spapr, void *fdt,
  31. int offset);
  32. unsigned int spapr_numa_initial_nvgpu_numa_id(MachineState *machine);
  33. #endif /* HW_SPAPR_NUMA_H */