mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-01 16:43:08 +01:00
12 lines
264 B
Plaintext
12 lines
264 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
# https://drakeor.com/2022/02/16/kvm-gpu-passthrough-tutorial/
|
||
|
|
||
|
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
|