Created
July 19, 2018 14:10
-
-
Save wention/246fa902a93afff153b373cdce8c582d to your computer and use it in GitHub Desktop.
list iommu groups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| shopt -s nullglob | |
| for g in $(ls /sys/kernel/iommu_groups); do | |
| echo "IOMMU Group $g" | |
| for d in /sys/kernel/iommu_groups/$g/devices/*; do | |
| n=${d#*/iommu_groups/*}; n=${n%%/*} | |
| ret=`lspci -nns "${d##*/}"` | |
| echo " $ret" | |
| done; | |
| done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment