Add 'examples/shell/qemu/unbind_nvme_from_host.sh'
This commit is contained in:
parent
443f5006d7
commit
c6bf016745
8
examples/shell/qemu/unbind_nvme_from_host.sh
Normal file
8
examples/shell/qemu/unbind_nvme_from_host.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user