diff --git a/plugins/dynamix/SysDevs.page b/plugins/dynamix/SysDevs.page index 5ac797029..ad6e83519 100644 --- a/plugins/dynamix/SysDevs.page +++ b/plugins/dynamix/SysDevs.page @@ -21,30 +21,42 @@ Tag="list"
Warning: Your system has booted with the PCIe ACS Override setting enabled. The below list doesn't not reflect the way IOMMU would naturally group devices. To see natural IOMMU groups for your hardware, go to the VM Settings page and set the PCIe ACS Override setting to No.
-
- $iommu_groups = shell_exec('for iommu_group in $(ls /sys/kernel/iommu_groups/ -1 | sort -n);do echo "IOMMU group $iommu_group"; for device in $(ls -1 "/sys/kernel/iommu_groups/$iommu_group"/devices/); do echo -n $\'\t\';lspci -ns "$device" | awk \'BEGIN{ORS=" "}{ print "["$3"]" }\';lspci -s "$device"; done; done');
- if (empty($iommu_groups)) {
- $iommu_groups = explode("\n", shell_exec("lspci -n | awk '{ print \"[\"\$3\"]\" }'"));
- $i = 0;
- foreach (explode("\n", shell_exec("lspci")) as $strDesc) {
- $iommu_groups[$i++] .= " $strDesc";
- }
- $iommu_groups = implode("\n", $iommu_groups);
- }
- echo $iommu_groups;
-?>
+
+echo "| ".$iommu_groups[$i++]." ".$strDesc." | |
| $iommu_group | "; + $append = true; + } else { + echo preg_replace("/^\t/",$append?"":" |
| ",$iommu_group)." | |
=preg_replace(['/(\d+)[-,](\d+)/','/(\d+)\b/'], ['$1 / $2','cpu $1'], shell_exec("cat /sys/devices/system/cpu/*/topology/thread_siblings_list | sort -nu"))?>
+=preg_replace(['/(\d+)[-,](\d+)/','/(\d+)\b/'], ['$1 / $2','cpu $1'], shell_exec("cat /sys/devices/system/cpu/*/topology/thread_siblings_list|sort -nu"))?>
**USB Devices**
> This displays the output of the `lsusb` command. The numeric identifiers are used to configure PCI pass-through.
-=shell_exec("lsusb | sort")?>
+=shell_exec("lsusb|sort")?>
**SCSI Devices**