Skip to content

Instantly share code, notes, and snippets.

@racerxdl
Created November 15, 2021 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save racerxdl/a9f89ab9fc57a4032c68137394fed3af to your computer and use it in GitHub Desktop.
Save racerxdl/a9f89ab9fc57a4032c68137394fed3af to your computer and use it in GitHub Desktop.
List IOMMU groups
#!/bin/bash
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`
do
echo "IOMMU Group ${g##*/}:"
for d in $g/devices/*
do
echo -e "\t$(lspci -nns ${d##*/})"
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment