[vfio-users] Convenience script for binding to vfio-pci
Andre Richter
andre.o.richter at gmail.com
Mon Sep 14 14:23:12 UTC 2015
Hi,
just in case anybody is interested, I want to share a little convenience
script of mine:
https://github.com/andre-richter/vfio-pci-bind
This script takes a Bus:Device:Function string of the form "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 unbound devices that have the same device_id and vendor_id as the
supplied device.
3. All devices that are in the same iommu group.
3. Transfers ownership of the respective iommu groups inside /dev/vfio to
$SUDO_USER
Script must be executed via sudo!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20150914/0a1f0d5f/attachment.htm>
More information about the vfio-users
mailing list