This script takes a Domain:Bus:Device.Function string of the form "0000:00:00.0" as command line argument and:
- Unbinds all devices that are in the same iommu group as the supplied device from their current driver (except PCIe bridges).
- Binds to vfio-pci:
- The supplied device.
- All devices that are in the same iommu group.
- Transfers ownership of the respective iommu group inside /dev/vfio to $SUDO_USER
Script must be executed via sudo!
See supplied LICENSE file.