1.根据此文章进行操作:
https://www.chenyudong.com/archives/add-pci-pass-through-device-to-guest-vm-with-libvirt-and-qemu.html
2.执行如下命令:
echo "8086 10d3" > /sys/bus/pci/drivers/pci-stub/new_id
echo 0000:01:00.0 > /sys/bus/pci/devices/0000:01:00.0/driver/unbind
echo 0000:01:00.0 > /sys/bus/pci/drivers/pci-stub/bind
可能会遇到pci-stub目录不存在的情况,是由于内核没有加载pci-stub模块。运行命令:modprobe pci-stb即可。