New version of OSX-PROXMOX (v1.3.0) - Please read CHANGELOG for details

This commit is contained in:
Gabriel
2021-11-19 13:21:14 -03:00
parent a8c2a78c29
commit 7d4443f40f
3 changed files with 26 additions and 0 deletions

19
tools/IOMMU-Groups.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
#
# Script: IOMMU-Groups.sh
# Goal: List PCI devices in IOMMU Groups
#
# Author: Gabriel Luchina
# https://luchina.com.br
# 20211118T0010
shopt -s nullglob
for group in `ls /sys/kernel/iommu_groups/ | sort -V`
do
echo "IOMMU Group ${group##*/}:"
for device in /sys/kernel/iommu_groups/$group/devices/*
do
echo -e "\t$(lspci -nns ${device##*/})"
done
done