Continuing the discussion from USB 3.0 controller PCIe passthrough:
I am still having problems to switch my GPU between the
vfio-pci and the
For clarity I’ll briefly describe my setup:
Hardware wise I have an X470 mainboard, a Ryzen 5 2600 and two GPUs (AMD Radeon RX 580 8GB Red Devil by PowerColor and Nvidia GTX 980 Ti 6GB Gaming G1 by Gigabyte). I have a freshly installed Fedora 30 running as my host OS and a Windows 10 VM as a KVM guest with PCIe passthrough setup for my Nvidia GPU.
I removed the device ID of the Nvidia GPU from my
/etc/modprobe.d/vfio.conf file because I want the
nvidiadriver to control the fans while my Windows VM is turned off. And after that I installed the
nvidiadriver (version 430.40) by following this guide.
Side note: Before the installation both GPUs outputted a picture to the attached monitors. After the installation my system booted into command line but after deleting the
xorg.conf the xserver was starting again and my Nvidia GPU stopped outputting a picture. I didn’t care about it at this point because I don’t want to use the Nvidia GPU on my host system anyway.
Fan control works fine with the
nvidia driver loaded but obviously I need to switch back to the
vfio-pci driver before starting my VM and switch back to the
nvidia driver after shutting the VM down.
In order to do so I prepared a QEMU hook script which can be found here.
The hook script is getting triggered as expected but I am not able to unbind the
libvirtd freezes as it reaches this point of the script.
echo "0000:09:00.0" > /sys/bus/pci/devices/0000:09:00.0/driver/unbind
If I try to run this line manually in a Terminal as root the Terminal freezes as well.
I am not an experienced Linux user but my assumption is that the
nvidia driver is busy and that’s why it can’t be unbound.
Does anyone have a clue on why that is?
Also: I don’t feel well with the fact that my Nvidia GPU stopped outputting a picture without me specifically configuring it this way.
How would I do this if I intentionally want my NVidia GPU to stop outputting a picture?
Is there a modprobe option for the
nvidia driver like there is for
options vfio-pci disable_vga=1
Or do I have to disable it via
Thanks in advance.