VirtIO Native Context Being Worked On For AMD Drivers To Enhance VM Performance

Written by Michael Larabel in Radeon on 11 March 2023 at 02:34 PM EST. 11 Comments
RADEON
As part of an AMD effort to enhance the performance of the AMD Linux graphics drivers when running in a virtualized environment, a set of initial patches are pending for Mesa that implement native context support for VirtIO.

This pending work allows for the native hardware drivers -- namely RadeonSI Gallium3D and the RADV Vulkan driver -- to be used within a QEMU+KVM-based virtual machine with VirtIO.

Currently those with AMD Radeon graphics and running QEMU+KVM have to resort to using the Virgl/Venus Mesa graphics stack while this native context support for VirtIO allows for the proper hardware drivers to be used within the VMs both for OpenGL and Vulkan.


Ultimately this native context support for VirtIO should yield better performance and easier maintenance/support. Besides Mesa patches, there are also some patches needed against Virglrenderer, QEMU, and the Linux kernel to make this all work. More background information on this area in VirtGPU DRM Native Contexts Show Potential For Good VM Gaming Performance.

Those interested in these patches posted by AMD Linux engineer Pierre-Eric Pelloux-Prayer can see this Mesa merge request for more details on this work to improve the AMD Radeon Linux graphics/gaming experience within VMs.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week