Merge pull request #2078 from SimonFair/Fix-Virgl-show-gpus-with-nouveau-driver

Show NV GPU if nouveau in use.
This commit is contained in:
tom mortensen
2025-03-22 15:44:48 -07:00
committed by GitHub

View File

@@ -1307,7 +1307,7 @@ foreach ($arrConfig['shares'] as $i => $arrShare) {
<?
echo mk_option($arrGPU['render'], 'auto', _('Auto'));
foreach ($arrValidGPUDevices as $arrDev) {
if (($arrDev['vendorid'] == "10de" && !is_file("/etc/libvirt/virglnv")) || $arrDev['driver'] == "vfio-pci") continue;
if (($arrDev['vendorid'] == "10de" && ($arrDev['driver'] == "nvidia" && !is_file("/etc/libvirt/virglnv"))) || $arrDev['driver'] == "vfio-pci") continue;
echo mk_option($arrGPU['render'], $arrDev['id'], $arrDev['name'].' ('.$arrDev['id'].')');
}
?>