Skip to content

Instantly share code, notes, and snippets.

@Sadin
Created May 21, 2017 17:06
Show Gist options
  • Save Sadin/f3a492287b61c0a0987627d1874af354 to your computer and use it in GitHub Desktop.
Save Sadin/f3a492287b61c0a0987627d1874af354 to your computer and use it in GitHub Desktop.
#!/bin/sh
# 02:00.0 is the pci-bus of my graphics card and 02:00.1 its sound bus
DEVS="0000:02:00.0 0000:02:00.1"
for DEV in $DEVS; do
echo "vfio-pci" > /sys/bus/pci/devices/$DEV/driver_override
done
modprobe -i vfio-pci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment