iommu.sh: initial script
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
edc5ccb848
commit
de8f54ead2
2 changed files with 17 additions and 0 deletions
|
@ -94,6 +94,11 @@ in {
|
|||
libnotify
|
||||
systemd
|
||||
])
|
||||
(bash "iommu" [
|
||||
coreutils
|
||||
findutils
|
||||
pciutils
|
||||
])
|
||||
(bash "launch" [
|
||||
argc
|
||||
coreutils
|
||||
|
|
12
options/custom/scripts/iommu.sh
Normal file
12
options/custom/scripts/iommu.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#! /usr/bin/env bash
|
||||
|
||||
# https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Ensuring_that_the_groups_are_valid
|
||||
|
||||
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
|
Loading…
Reference in a new issue