virtio-gpu DRM driver (2D KMS) for drm-kmod [PR #499]

Denis Borovikov <[email protected]>
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <CAH=t5tyM+-pyEFrL1JBpeAZYvBpch1vbDfBOZFJQH5m9+-tkbg@mail.gmail.com>
Hi,

I've submitted a port of Linux's virtio-gpu DRM driver (2D only, no
virgl) to drm-kmod: https://github.com/freebsd/drm-kmod/pull/499

It gives FreeBSD guests under QEMU/UTM/libvirt a KMS path:
/dev/dri/card0, vt(4) console via vt_drmfb, and wlroots compositors
(sway confirmed, WLR_RENDERER=pixman). Developed and tested on 15.1
aarch64 under UTM/QEMU-hvf; compiles on amd64 as well.

Structure: a verbatim Linux v6.12 import (+36 lines under
#ifdef __FreeBSD__ across two files), a module-local Linux-virtio shim
over virtqueue(9), and a native newbus attach driver. Everything
shipped is MIT, including a reimplementation of drm_gem_shmem_helper —
the GPL-2.0-only file that stalled the previous attempt (#119).

Review would be much appreciated.

(Please CC me on replies — I'm not subscribed to the list.)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.