Linux VKMS Driver Patches Making It Easier To Build Your Own Virtual Graphics Devices

Written by Michael Larabel in X.Org on 25 July 2022 at 05:41 AM EDT. 6 Comments
The VKMS driver within the Linux kernel allows for virtual kernel mode-setting as a software-only KMS/DRM driver that can be used for virtual testing purposes and other uses around headless systems. New patches out of Google are working on ConfigFS support for this virtual display driver and from there making it easy to build out your own virtual graphics device configuration with VKMS.

With the VKMS patches sent out by Google's Jim Shargo, it's easy to then build new DRM devices with user-defined DRM objects and object relationships by creating / writing / symlinking files.

With the ConfigFS support as the interface for interacting with the VKMS driver for building out new configurations, it's possible to create virtual devices with arbitrary numbers of CRTCs, planes, connectors, and encoders. With ConfigFS, it's just a matter of creating directories, connecting the different objects via symlinking, and then once configured to register the device.

Documentation around the proposed VKMS ConfigFS interface for building out your virtual display configuration.

This opens up VKMS to a lot more configurability in an easy manner and can help in testing more unique DRM device configurations.

See this patch series for more details on the VKMS ConfigFS support being proposed and now under review.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of 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 automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week