vms/iommu.sh

9 lines
192 B
Bash
Raw Permalink Normal View History

2021-05-19 17:58:02 +03:00
#!/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;