From afb609813dab53cd7be87ade04ac374c755c85fe Mon Sep 17 00:00:00 2001 From: Ian Mancini Date: Sat, 27 Mar 2021 15:46:28 -0300 Subject: [PATCH] Add print-iommu-groups script --- print-iommu-groups | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 print-iommu-groups diff --git a/print-iommu-groups b/print-iommu-groups new file mode 100755 index 0000000..49c19e9 --- /dev/null +++ b/print-iommu-groups @@ -0,0 +1,7 @@ +#!/bin/bash +shopt -s nullglob +for d in /sys/kernel/iommu_groups/{0..999}/devices/*; do + n=${d#*/iommu_groups/*}; n=${n%%/*} + printf 'IOMMU Group %s ' "$n" + lspci -nns "${d##*/}" +done