This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am awsation on github. | |
* I am awsation (https://keybase.io/awsation) on keybase. | |
* I have a public key ASCen53Q2dhfX7Y9oQApYaqO5ARd84qh2MIVvPtpCZtDMgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# unbind PCI device from the host and bind it to pcistub | |
### | |
echo "8086 10fb" > /sys/bus/pci/drivers/pci-stub/new_id | |
echo "0000:84:00.0" > /sys/bus/pci/devices/0000:84:00.0/driver/unbind | |
echo "0000:84:00.0" > /sys/bus/pci/drivers/pci-stub/bind | |
echo "8086 10fb" > /sys/bus/pci/drivers/pci-stub/new_id | |
echo "0000:84:00.1" > /sys/bus/pci/devices/0000:84:00.1/driver/unbind | |
echo "0000:84:00.1" > /sys/bus/pci/drivers/pci-stub/bind |