--- layout: page title: Cloud Hypervisor with virtio-gpu support ---
This is a patchset for Cloud Hypervisor support providing a virtio-gpu device to guests, using crosvm’s virtio-gpu implementation over vhost-user.
If this patchset is useful to you, please consider donating to support its continued development via either GitHub Sponsors or LiberaPay.
The patches as developed as part of Spectrum, a compartmentalized desktop operating system project.
cargo build in the Cloud Hypervisor source tree as
normal.
crosvm device gpu --socket-path gpu.sock
Connect to the GPU device with cloud-hypervisor:
cloud-hypervisor --generic-vhost-user virtio_id=gpu,socket=gpu.sock,queue_sizes='[16,256]' …
The patches are maintained in Spectrum’s git repository. Please refer to the documentation for contributing to Spectrum.
Yes! The VHOST_USER_PROTOCOL_F_SHMEM vhost-user feature
was standardized in June 2026, meaning that non-standard vhost-user
features are no longer required to use crosvm's GPU device. I expect
to propose this implementation become part of upstream Cloud
Hypervisor shortly, once some code quality improvements are made.
Other Cloud Hypervisor work is regularly upstreamed as part of the Spectrum project.
Bug reports for and other questions about the patchset are welcome! You can send mail to the discuss@spectrum-os.org mailing list, or ask in the Spectrum Matrix chat.