qemu/include/hw/pci-host
Reza Arbab a6030d7e0b spapr: Add a new level of NUMA for GPUs
NUMA nodes corresponding to GPU memory currently have the same
affinity/distance as normal memory nodes. Add a third NUMA associativity
reference point enabling us to give GPU nodes more distance.

This is guest visible information, which shouldn't change under a
running guest across migration between different qemu versions, so make
the change effective only in new (pseries > 5.0) machine types.

Before, `numactl -H` output in a guest with 4 GPUs (nodes 2-5):

node distances:
node   0   1   2   3   4   5
  0:  10  40  40  40  40  40
  1:  40  10  40  40  40  40
  2:  40  40  10  40  40  40
  3:  40  40  40  10  40  40
  4:  40  40  40  40  10  40
  5:  40  40  40  40  40  10

After:

node distances:
node   0   1   2   3   4   5
  0:  10  40  80  80  80  80
  1:  40  10  80  80  80  80
  2:  80  80  10  80  80  80
  3:  80  80  80  10  80  80
  4:  80  80  80  80  10  80
  5:  80  80  80  80  80  10

These are the same distances as on the host, mirroring the change made
to host firmware in skiboot commit f845a648b8cb ("numa/associativity:
Add a new level of NUMA for GPU's").

Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Message-Id: <20200716225655.24289-1-arbab@linux.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2020-07-20 09:21:39 +10:00
..
designware.h Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
gpex.h Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
i440fx.h hw/pci-host/i440fx: Extract PCII440FXState to "hw/pci-host/i440fx.h" 2019-12-18 02:34:11 +01:00
pam.h Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
pnv_phb3_regs.h ppc/pnv: Add models for POWER8 PHB3 PCIe Host bridge 2020-02-02 14:07:57 +11:00
pnv_phb3.h ppc/pnv: Add models for POWER8 PHB3 PCIe Host bridge 2020-02-02 14:07:57 +11:00
pnv_phb4_regs.h ppc/pnv: Add models for POWER9 PHB4 PCIe Host bridge 2020-02-02 14:07:57 +11:00
pnv_phb4.h ppc/pnv: Add models for POWER9 PHB4 PCIe Host bridge 2020-02-02 14:07:57 +11:00
ppce500.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
q35.h hw/pci-host/q35: Remove unused includes 2020-03-09 15:59:31 +01:00
sabre.h include: Make headers more self-contained 2019-08-16 13:31:51 +02:00
spapr.h spapr: Add a new level of NUMA for GPUs 2020-07-20 09:21:39 +10:00
uninorth.h Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
xilinx-pcie.h Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00