]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: require memfd memory for virtio 'blob' support
authorJonathon Jongsma <jjongsma@redhat.com>
Tue, 18 Jul 2023 13:55:13 +0000 (08:55 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Wed, 19 Jul 2023 14:46:30 +0000 (09:46 -0500)
commit988f8443fb607acfa81d486b6904a3f19cf6fa63
tree3ad7cc36deca0b2e6b609154b71fa807f05a224f
parentecbce923713d736b45696e438ea024e780fd58b7
qemu: require memfd memory for virtio 'blob' support

The virtio-gpu 'blob' support was insufficiently validated. Qemu
requires a memfd memory backing in order to use udmabuf and enable blob
support. Example error:

    $ virsh start rhel9
    error: Failed to start domain 'rhel9'
    error: internal error: qemu unexpectedly closed the monitor: 2023-07-18T02:33:57.083178Z qemu-kvm: -device {"driver":"virtio-vga","id":"video0","max_outputs":1,"blob":true,"bus":"pcie.0","addr":"0x1"}: cannot enable blob resources without udmabuf

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_validate.c
tests/qemuxml2argvdata/video-virtio-blob-on.x86_64-latest.args
tests/qemuxml2argvdata/video-virtio-blob-on.xml
tests/qemuxml2xmloutdata/video-virtio-blob-on.x86_64-latest.xml