Add 'examples/shell/qemu/unbind_nvme_from_host.sh'

This commit is contained in:
Jakub Filo 2021-09-07 21:53:43 +00:00
parent 443f5006d7
commit c6bf016745

View File

@ -0,0 +1,8 @@
#!/bin/bash
PCI_NVM=“0000:04:00.0”
DEV_NVM=“8086:f1a8”
echo “8086 f1a8” > /sys/bus/pci/drivers/vfio-pci/new_id
echo “0000:04:00.0” > /sys/bus/pci/devices/0000:04:00.0/driver/unbind
echo “0000:04:00.0” > /sys/bus/pci/drivers/vfio-pci/bind
echo “8086 f1a8” > /sys/bus/pci/drivers/vfio-pci/remove_id