Automatically bind a PCI device and all of it's IOMMU group members to vfio-pci
Ruby Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE initial Sep 14, 2015
README.md Update README.md Apr 10, 2018
vfio-pci-bind.rb - Added fixes suggested by AW Sep 15, 2015
vfio-pci-bind.sh - Added fixes suggested by AW Sep 15, 2015

README.md

vfio-pci-bind

This script takes a Domain:Bus:Device.Function string of the form "0000:00:00.0" as command line argument and:

  1. Unbinds all devices that are in the same iommu group as the supplied device from their current driver (except PCIe bridges).
  2. Binds to vfio-pci:
    1. The supplied device.
    2. All devices that are in the same iommu group.
  3. Transfers ownership of the respective iommu group inside /dev/vfio to $SUDO_USER

Script must be executed via sudo!

License

See supplied LICENSE file.