From 1fd5ee24b1128c9a0ad88becced6895eb864a082 Mon Sep 17 00:00:00 2001 From: Xian Wang Date: Wed, 28 Sep 2022 18:12:04 -0700 Subject: iommu_group: add helper to enumerate iommu_group Signed-off-by: Xian Wang --- iommu_group | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 iommu_group diff --git a/iommu_group b/iommu_group new file mode 100755 index 0000000..9757a85 --- /dev/null +++ b/iommu_group @@ -0,0 +1,5 @@ +#!/bin/sh + +echo $(dirname $0) + +for d in /sys/kernel/iommu_groups/*/devices/*; do n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'IOMMU Group %s ' "$n"; lspci -nns "${d##*/}"; done; -- cgit v1.2.3