From 1419044940e725ef2da339d33ddb4214b8e817d2 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 30 Sep 2021 17:36:35 +0200 Subject: [PATCH] qemuBuildDeviceVideoStr: Properly format virtio options for 'virtio-vga' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'virtio-vga' is a virtio device but we didn't use the virtio formatter for it. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/qemu/qemu_command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 6a0a4ce651..5b21bdbe0a 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -4482,7 +4482,7 @@ qemuBuildDeviceVideoStr(const virDomainDef *def, if (!(model = qemuDeviceVideoGetModel(qemuCaps, video, &virtio, &virtioBusSuffix))) return NULL; - if (virtioBusSuffix) { + if (virtio) { if (qemuBuildVirtioDevStr(&buf, qemuCaps, VIR_DOMAIN_DEVICE_VIDEO, video) < 0) { return NULL; }