From: Marc-André Lureau <marcandre.lureau(a)redhat.com>
vhost-user device doesn't have a virgl option, it is passed to the
vhost-user-gpu helper process instead.
Signed-off-by: Marc-André Lureau <marcandre.lureau(a)redhat.com>
---
src/qemu/qemu_command.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 59dc134785..0551984a47 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -4742,9 +4742,11 @@ qemuBuildDeviceVideoStr(const virDomainDef *def,
virBufferAsprintf(&buf, ",id=%s", video->info.alias);
- if (video->accel && video->accel->accel3d == VIR_TRISTATE_SWITCH_ON)
{
- virBufferAsprintf(&buf, ",virgl=%s",
- virTristateSwitchTypeToString(video->accel->accel3d));
+ if (video->type == VIR_DOMAIN_VIDEO_TYPE_VIRTIO && !video->vhostuser)
{
+ if (video->accel && video->accel->accel3d ==
VIR_TRISTATE_SWITCH_ON) {
+ virBufferAsprintf(&buf, ",virgl=%s",
+
virTristateSwitchTypeToString(video->accel->accel3d));
+ }
}
if (video->type == VIR_DOMAIN_VIDEO_TYPE_QXL) {
--
2.22.0.rc2.384.g1a9a72ea1d