mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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>
This commit is contained in:
committed by
Cole Robinson
parent
d27abda98d
commit
13248e1688
1
tests/qemuvhostuserdata/etc/qemu/vhost-user/40-gpu.json
Symbolic link
1
tests/qemuvhostuserdata/etc/qemu/vhost-user/40-gpu.json
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../usr/share/qemu/vhost-user/50-gpu.json
|
||||
11
tests/qemuvhostuserdata/usr/libexec/qemu/vhost-user/test-vhost-user-gpu
Executable file
11
tests/qemuvhostuserdata/usr/libexec/qemu/vhost-user/test-vhost-user-gpu
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat <<EOF
|
||||
{
|
||||
"type": "gpu",
|
||||
"features": [
|
||||
"render-node",
|
||||
"virgl"
|
||||
]
|
||||
}
|
||||
EOF
|
||||
1
tests/qemuvhostuserdata/usr/share/qemu/vhost-user/30-gpu.json
Symbolic link
1
tests/qemuvhostuserdata/usr/share/qemu/vhost-user/30-gpu.json
Symbolic link
@@ -0,0 +1 @@
|
||||
50-gpu.json
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"description": "QEMU vhost-user-gpu",
|
||||
"type": "gpu",
|
||||
"binary": "/usr/libexec/qemu/vhost-user/test-vhost-user-gpu",
|
||||
"tags": [
|
||||
"CONFIG_OPENGL_DMABUF=y"
|
||||
]
|
||||
}
|
||||
1
tests/qemuvhostuserdata/usr/share/qemu/vhost-user/60-gpu.json
Symbolic link
1
tests/qemuvhostuserdata/usr/share/qemu/vhost-user/60-gpu.json
Symbolic link
@@ -0,0 +1 @@
|
||||
50-gpu.json
|
||||
Reference in New Issue
Block a user