]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add vhost-user helpers
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 23 Sep 2019 10:44:33 +0000 (14:44 +0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 24 Sep 2019 17:19:08 +0000 (13:19 -0400)
commit13248e1688cbae3fc0c5ede3fdeb63e615647ec2
tree2cd0e283394864c366db04184b72c9a08d98bf48
parentd27abda98def59f8be4dc6c4f0ea92ea3048ca1d
qemu: add vhost-user helpers

Add qemuVhostUserFetchConfigs() to discover vhost-user helpers.

qemuVhostUserFillDomainGPU() will find the first matching GPU helper
with the required capabilities and set the associated
vhost_user_binary.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
13 files changed:
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/Makefile.inc.am
src/qemu/qemu_vhost_user.c [new file with mode: 0644]
src/qemu/qemu_vhost_user.h [new file with mode: 0644]
tests/Makefile.am
tests/qemuvhostuserdata/etc/qemu/vhost-user/40-gpu.json [new symlink]
tests/qemuvhostuserdata/etc/qemu/vhost-user/50-gpu.json [new file with mode: 0644]
tests/qemuvhostuserdata/usr/libexec/qemu/vhost-user/test-vhost-user-gpu [new file with mode: 0755]
tests/qemuvhostuserdata/usr/share/qemu/vhost-user/30-gpu.json [new symlink]
tests/qemuvhostuserdata/usr/share/qemu/vhost-user/50-gpu.json [new file with mode: 0644]
tests/qemuvhostuserdata/usr/share/qemu/vhost-user/60-gpu.json [new symlink]
tests/qemuvhostusertest.c [new file with mode: 0644]