mirror of https://github.com/kholia/OSX-KVM.git
12 lines
299 B
Bash
Executable File
12 lines
299 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Source: https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF
|
|
|
|
shopt -s nullglob
|
|
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;
|