aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xiommu_detect.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/iommu_detect.sh b/iommu_detect.sh
new file mode 100755
index 0000000..29b3068
--- /dev/null
+++ b/iommu_detect.sh
@@ -0,0 +1,11 @@
+#!/usr/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;
+