You are not logged in.

#1 2022-08-08 15:17:57

threefour
Member
Registered: 2022-07-25
Posts: 21

Switch Host/Guest GPU At Runtime

I have an RX 6900 XT and an RX 570 in my machine, for PCI passthrough. Right now, I have the RX 570 for the host, and the RX 6900 XT gets grabbed by vfio-pci. There's nothing wrong with my current setup. But, is it possible to change the driver in control of the devices at runtime? I want to do a graphics-intensive task on the host, rather than the VM, and I want to switch the setup so that 6900 XT is the host GPU, and the 570 is the guest GPU.

I understand that switching which GPU is passed through without shutting down the VM is probably impossible, given that PCI hotplugging isn't really a thing. But I'm curious if I can, without rebooting Linux: unbind vfio-pci from the 6900 XT, unbind amdgpu from the 570, and then rebind amdgpu to the 6900 XT, and vfio-pci to the 570.

Offline

Board footer

Powered by FluxBB