Comment 4 for bug 1900800

Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

A possible workaround for the trivial case where all GPUs are set with a unique type could be :
 - stop the compute service
 - lookup all the existing guest domains and fetch each of the mdev UUIDs
 - for each UUID, ask sysfs to recreate the mdev by firing this command :

echo $UUID > /sys/bus/pci/devices/$PCI_ADDRR/mdev_supported_types/$THE_RIGHT_TYPE/create

where $UUID is the mdev UUID, $PCI_ADDR the parent GPU and $THE_RIGHT_TYPE is the mdev type this pGPU was using.

Hope that helps, I'll amend the upstream docs with this limitation and I'll work on a patch for looking up the allocations to get the Resource Provider that matches, so I'll know the physical GPU and then be able to lookup the config option for finding the type.