add iommu dump script

This commit is contained in:
Tyler 2020-04-20 15:52:56 -05:00
parent 9f208d4177
commit 54b0a32019
1 changed files with 8 additions and 0 deletions

8
iommu.sh Executable file
View File

@ -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;