
With VirtGPU DRM native contexts, there can be near-native GPU performance within virtual machines using virglrenderer with DRM native contexts. The near-native performance can be "within a few percent or less" while also enjoying lower CPU overhead. This native context support though does involve some small changes to Mesa and the Virglrenderer.
This is already being worked on and used in the scope of Google's Chrome OS. There is also room for further improvement and optimization for those interested in the prospects of gaming within VMs on Linux.
Learn more about this DRM native context support with Virglrenderer via Rob's slides and the XDC 2022 presentation embedded below.