xapi-project/xen-api — pull request #1460 by simonjbeaumont (2013-08-23 16:50:08+00:00)
Title: Check PGPU not in use before using for passthrough

There was no check for whether the PGPU was in use by vGPUs before using it for PCI-passthrough. This is now done and is done using the same mutex as vGPU allocation.