From 54b0a3201910c8f176eb58c606f2c4ffbd72c805 Mon Sep 17 00:00:00 2001 From: Tyler Date: Mon, 20 Apr 2020 15:52:56 -0500 Subject: [PATCH] add iommu dump script --- iommu.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 iommu.sh diff --git a/iommu.sh b/iommu.sh new file mode 100755 index 0000000..2dad4c6 --- /dev/null +++ b/iommu.sh @@ -0,0 +1,8 @@ +#!/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;