summaryrefslogtreecommitdiff
path: root/hosts/iroha/scripts/iommu-groups
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/iroha/scripts/iommu-groups')
-rwxr-xr-xhosts/iroha/scripts/iommu-groups6
1 files changed, 6 insertions, 0 deletions
diff --git a/hosts/iroha/scripts/iommu-groups b/hosts/iroha/scripts/iommu-groups
new file mode 100755
index 0000000..217d1e2
--- /dev/null
+++ b/hosts/iroha/scripts/iommu-groups
@@ -0,0 +1,6 @@
+#! /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