kvm

qemu/kvm installation script
git clone https://git.awy.one/kvm.git
Log | Files | Refs | README | LICENSE

vfio-usb.sh (290B)


      1 for dev in "$@"; do
      2 	vendor=$(cat /sys/bus/pci/devices/$dev/vendor)
      3 	device=$(cat /sys/bus/pci/devices/$dev/device)
      4 	if [ -e /sys/bus/pci/devices/$dev/driver ]; then
      5 		echo $dev > /sys/bus/pci/devices/$dev/driver/unbind
      6 	fi
      7 	echo $vendor $device > /sys/bus/pci/drivers/vfio-pci/new_id
      8 done