dotfiles/examples/shell/qemu/unbind_nvme_from_host.sh

9 lines
322 B
Bash
Raw Permalink Normal View History

#!/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