xapi-project/xen-api — pull request #1437 by simonjbeaumont (2013-08-19 09:05:03+00:00)
Title: Use GPU group allocation algorithm for choosing hosts and pGPUs for VMs

At the pool-level, hosts are split into groups of equally-optimal hosts (based
on GPU_group.allocation_algorithm). The VM placement code is then run
sequentially on each of these groups (cf. was run before on all hosts in pool).
Only when exhausing this list of lists of hosts does it fail to start the VM.

At the host-level, a pGPU is selected according to the same
allocation_algorithm. If no capacity can be found then the VM_REQUIRES_VGPU
error is raised.