61
How likely is this to work? KVM/VFIO Single GPU Passthrough
(www.youtube.com)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
I currently have a VFIO setup and it works great. There's just almost nothing I need it for with how great Proton has become. I have an AMD APU and GPU. My Linux desktop runs on the APU and only offloads to the discrete GPU when invoked with the DRI_PRIME=1 environment variable.
Virt-Manager has the ability to run scripts at certain points in the VM startup and shutdown process. This is what I use to reassign the GPU to the VFIO stub driver so it can be handed to Windows, remove half of my CPU cores from the process scheduler so Windows isn't suffering constant cache misses, and open looking-glass which uses a shared memory device to render the GPU output in a window on my desktop with minimal latency. Scream starts on login to handle audio, and you're going to want to use a shared memory device for that because it has latency problems over network.
I've been told I have one foot in each bucket labeled "single GPU passthrough" and the other labeled "dual GPU passthrough". If you've only got one you'll have to exit your X or Wayland session to use the VM because your GPU cannot abide two masters. Nvidia has a functional equivalent to Prime, I think, but I don't think it just works out of box. I understand Nvidia isn't happy about their consumer cards being handed to VMs as it's usually an expensive enterprise trick, so there might be a workaround process there.
The Arch wiki has a great tutorial on GPU passthrough using VFIO and OVMF, that's probably your best bet on an arch based system like Manjaro.