I smile every time I see an improvement that will make it easier for games to run near full speed while confined to a virtual machine. Another step forward for security and privacy.
someone on reddit had this working 6 mo’s ago, I think they had 2 VM’s running games from one GPU it was on /r/vfio and they said the Windows Driver was being worked on as well.
I should note for even closer to native performance you want virtio-gpu with native context. Patches for that are currently being reviewed on the mailing list: https://patchew.org/QEMU/20241024233355.136867-1-dmitry.osipenko@collabora.com/
There’s also amdgpu native context support which allows native AMD GPU drivers in the guest (Linux only guests for now).
Haven’t tested it myself yet though as I’m using a GPU passthrough setup. Although I believe both of these solutions will support multiple VMs using it at the same time, which is an improvement over regular passthrough.
personally I am not super interested In this, vulkan venus is going to be a lot more portable which is key for me.
For portability Vulkan is the way (it also gets you GPU compute for free without needing vendor libraries). That said the ruttabaga encapsulation is useful for things like Wayland over virtio-gpu which is useful for some use cases.