![]() The approach with driver_override and modprobe has been more reliable for me. I struggled to get manual bind and unbind working, as described by Greg Kroah-Hartman.After qemu terminates, you will want the script to unbind vfio-pci and rebind the host device drivers.x-vga=on seems to be required if you’re using SeaBIOS (as we are above).Both need to be unbound from their drivers before passing them to the VM via -device vfio-pci.In my system, $GPU and $GPU_AUDIO (the HDMI audio controller) are the only members of IOMMU group 13.When the guest boots up, it has full access to the host GPU: Until you get a reliable script, you will want to test this over SSH. The moment you unbind amdgpu, the host becomes headless. Qemu-system-x86_64 \ -enable-kvm \ -smp 4 \ -m 8G \ -nographic \ -vga none \ -device vfio-pci,host = $GPU,x-vga =on \ -device vfio-pci,host = $GPU_AUDIO \ #!/bin/sh GPU = "0000:0d:00.0" GPU_AUDIO = "0000:0d:00.1" echo " $GPU " > /sys/bus/pci/drivers/amdgpu/unbindĮcho " $GPU_AUDIO " > /sys/bus/pci/drivers/snd_hda_intel/unbindĮcho vfio-pci > /sys/bus/pci/devices/ $GPU/driver_overrideĮcho vfio-pci > /sys/bus/pci/devices/ $GPU_AUDIO/driver_override
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |