AMD Ryzen 7950X + AMD 6800XT passthrough - change host GPU on the fly

I have a host machine with a AMD Ryzen 7950X + iGPU running with EndeavourOS. My AMD 6800XT gets isolated at boot as I passthrough the GPU to my VMs.
As I do a lot of work in Linux it would be nice to get the 6800XT running as main GPU in EndeavourOS. While isolating and changeing to the iGPU when starting the one of the VMs but without restarting the Host.

Is this possible?

1 Like

It is possible but in my experience (7950X + 6600XT) it is not as reliable, I use a script I took from the Arch wiki, Binding vfio-pci via device ID , of course you’ll need to change the values for the variables.

I use NixOS so this is as far as I can help.

1 Like

I dont know if I understand you correct. your main GPU in linux is the 6600xt as fas as you start the script. The amdgpu driver for the 6600xt gets unbind.
I once did a single GPU passthrough system which was very similar.
How do you get linux use the iGPU in this case?

1 Like