There are multiple displays devices available, or screens where one can access the virtual machine graphical contents.
The D-Bus display is the newest of the bunch. It exports the VM display through D-Bus and "allow out-of-process UIs, remote protocol servers or other interactive display usages."
A project called libmks is offering an implementation with libvirt and QEMU.
This project is a GTK library called "libmks" (short for Mouse, Keyboard, Screen) that provides a way to interact with QEMU virtual machines through D-Bus.
It allows GTK applications to display and control VM screens, keyboards, and mice.
Key components:
The library uses D-Bus communication with QEMU's display interface to:
It's designed to work with QEMU's D-Bus display interface and provides a GTK-friendly API for integrating VM displays into GTK applications. The library supports both synchronous and asynchronous operations for all its functions.
The project uses GTK 4, GIO, and various GTK components for the UI integration, with D-Bus for communication with QEMU.