diff --git a/print-iommu-groups b/print-iommu-groups new file mode 100755 index 0000000..49c19e9 --- /dev/null +++ b/print-iommu-groups @@ -0,0 +1,7 @@ +#!/bin/bash +shopt -s nullglob +for d in /sys/kernel/iommu_groups/{0..999}/devices/*; do + n=${d#*/iommu_groups/*}; n=${n%%/*} + printf 'IOMMU Group %s ' "$n" + lspci -nns "${d##*/}" +done