This is an old revision of the document!
ZFS and VFIO PCI Passthrough on Debian 8
Config Files
Add intel_iommu=on to the boot loader
Load vfio on bootup
- /etc/modules
...
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
...
Blacklist Video Drivers
driver name is found be running:
lspci -vn | less -p VGA
Look for “Kernel driver in use:”
- /etc/modprobe.d/blacklist.conf
...
blacklist mgag200
blacklist nouveau
...
Bind PCI device to VFIO
Run lspci -nv and grab the hexadecimal PCI id.
e.g. for
07:00.0 0300: 10de:0322 (rev a1) (prog-if 00 [VGA controller])
the PCI ID would be 10de:0322. The slot ID/address is 07:00.0
Then take the slot address in the previous example
*07:00.0 and prepend “0000:” so that you have something like
0000:07:00.0. Then execute the following command to unbind the current driver
echo 0000:07:00.0 > /sys/bus/pci/devices/0000:07:00.0/driver/unbind
Then take the PCI ID in the previous example
10de:0322 and replace the “:” with a space then run the following command
echo 102b 0522 > /sys/bus/pci/drivers/vfio-pci/new_id