added ls-iommu to utilities
This commit is contained in:
parent
ce28739210
commit
1d2bab576e
1 changed files with 8 additions and 0 deletions
8
utils/ls-iommu
Executable file
8
utils/ls-iommu
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Script from Wendell from Level1Tech
|
||||||
|
# Originally from here: https://forum.level1techs.com/t/ubuntu-17-04-vfio-pcie-passthrough-kernel-update-4-14-rc1/119639
|
||||||
|
for d in /sys/kernel/iommu_groups/*/devices/*; do
|
||||||
|
n=${d#*/iommu_groups/*}; n=${n%%/*}
|
||||||
|
printf 'IOMMU Group %s ' "$n"
|
||||||
|
lspci -nns "${d##*/}"
|
||||||
|
done
|
Loading…
Add table
Add a link
Reference in a new issue