#!/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;
#!/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;
if [[ $OBJECT == "win10" ]]; then case"$OPERATION"in "prepare") systemctl start libvirt-nosleep@"$OBJECT" 2>&1 | tee -a /var/log/libvirt/custom_hooks.log /bin/vfio-startup.sh 2>&1 | tee -a /var/log/libvirt/custom_hooks.log ;;
"release") systemctl stop libvirt-nosleep@"$OBJECT" 2>&1 | tee -a /var/log/libvirt/custom_hooks.log /bin/vfio-teardown.sh 2>&1 | tee -a /var/log/libvirt/custom_hooks.log ;; esac fi