Bochs DRM Linux Driver Being Modernized - Better Performance For QEMU Display

Written by Michael Larabel in Virtualization on 23 August 2024 at 12:48 PM EDT. 10 Comments
VIRTUALIZATION
The Bochs Direct Rendering Manager (DRM) kernel driver is in the process of being modernized. The Bochs driver is important in that it's commonly used for virtual VGA output with QEMU for Linux virtualization.

Thomas Zimmermann of SUSE who has done a lot of terrific work on the upstream Linux DRM code has taken to improving the state of the Bochs driver and getting it up to par for modern standards.

The new patch series posted today removes functionality from the Bochs DRM driver code that has since appeared within DRM core itself, reworks EDID handling to follow current best practices, replacing simple display helpers with atomic helpers, and other improvements.

Most impactful to end-users is replacing GEM VRAM with GEM SHMEM with the new memory manager being more reliable and allowing for larger resolutions with this new memory management code. Thomas Zimmermann explained of this GEM SHMEM usage for Bochs:
"Patch 8 replaces GEM VRAM with GEM SHMEM. The new memory manager is more reliable and allows for larger resolutions. Display updates were so slow that Gnome was unmanageable with a flickering cursor and single FPS. The new memory management makes Gnome at least useable."

Thus a nice step forward for those using the Bochs virtual VGA output with QEMU and wanting to run a modern output.

Ubuntu QEMU


Those making use of the Bochs DRM driver can find the patches under review on the Linux DRI mailing list.
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