From c6bf01674583ce7088c1a7f37a87e6850469b0c9 Mon Sep 17 00:00:00 2001 From: Jakub Filo Date: Tue, 7 Sep 2021 21:53:43 +0000 Subject: [PATCH] Add 'examples/shell/qemu/unbind_nvme_from_host.sh' --- examples/shell/qemu/unbind_nvme_from_host.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/shell/qemu/unbind_nvme_from_host.sh diff --git a/examples/shell/qemu/unbind_nvme_from_host.sh b/examples/shell/qemu/unbind_nvme_from_host.sh new file mode 100644 index 0000000..294e364 --- /dev/null +++ b/examples/shell/qemu/unbind_nvme_from_host.sh @@ -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