summaryrefslogtreecommitdiff
path: root/bin/find_iommu_groups
diff options
context:
space:
mode:
Diffstat (limited to 'bin/find_iommu_groups')
-rwxr-xr-xbin/find_iommu_groups8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/find_iommu_groups b/bin/find_iommu_groups
new file mode 100755
index 0000000..2dad4c6
--- /dev/null
+++ b/bin/find_iommu_groups
@@ -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;