]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add virtio-blk-vhost-vdpa capability
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 17 Mar 2023 15:25:47 +0000 (10:25 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Tue, 12 Sep 2023 16:06:41 +0000 (11:06 -0500)
commit6cf7dbeff8ab9bd5c18bd88d59bf3133d3679a6e
tree6cfe6bcb522a529a686719824285e911355dff20
parent1df106cc20a4cc6417cfbaf01860f465ec3dd915
qemu: add virtio-blk-vhost-vdpa capability

Check whether the qemu binary supports the vdpa block driver. We can't
rely simply on the existence of the virtio-blk-vhost-vdpa block driver
since the first releases of qemu didn't support fd-passing for this
driver. So we have to check for the 'fdset' feature on the driver
object. This feature will be present in the qemu 8.1.0 release and was
merged to qemu in commit 98b126f5.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_8.1.0_x86_64.xml