added iommu-discovery utility

This commit is contained in:
Bryan Joshua Pedini 2020-02-02 03:06:03 +01:00
parent 8f896625eb
commit d5f20497d4
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
for d in /sys/kernel/iommu_groups/*/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done;