diff --git a/iommu.sh b/iommu.sh new file mode 100755 index 0000000..2dad4c6 --- /dev/null +++ b/iommu.sh @@ -0,0 +1,8 @@ +#!/bin/bash +shopt -s nullglob +for g in /sys/kernel/iommu_groups/*; do + echo "IOMMU Group ${g##*/}:" + for d in $g/devices/*; do + echo -e "\t$(lspci -nns ${d##*/})" + done; +done;