qemu-server/PVE/QemuServer
Wolfgang Bumiller aaff69ad50 memory: hugepages: map numa node IDs to host and guest correctly
foreach_dimm() provides a guest numa node index, when used
in conjunction with the guest-to-host numa node topology
mapping one has to make sure that the correct host-side
indices are used.

This covers situations where the user defines a numaX with
hostnodes=Y with Y != X.

For instance:
  cores: 2
  hotplug: disk,network,cpu,memory
  hugepages: 2
  memory: 2048
  numa: 1
  numa1: memory=512,hostnodes=0,cpus=0-1,policy=bind
  numa2: memory=512,hostnodes=0,cpus=2-3,policy=bind

Both numa IDs 1 and 2 passed by foreach_dimm() have to be
mapped to host node 0.

Note that this also reverses the foreach_reverse_dimm() numa
node numbering as the current code, while walking sizes
backwards, walked the numa IDs inside each size forward,
which makes more sense. (Memory hot-unplug is still working
with this.)
2016-08-03 08:56:30 +02:00
..
Makefile refactor usb functions out of QemuServer.pm 2016-06-22 09:13:16 +02:00
Memory.pm memory: hugepages: map numa node IDs to host and guest correctly 2016-08-03 08:56:30 +02:00
PCI.pm refactor PCI into own file 2016-06-22 09:13:16 +02:00
USB.pm refactor usb functions out of QemuServer.pm 2016-06-22 09:13:16 +02:00