[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [RFC v2 06/16] qemu: check that qemu is vhost-user-vga capable



From: Marc-André Lureau <marcandre lureau redhat com>

To support VGA, we need vhost-user-vga device, for "vhost-user" model.

Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>
---
 src/qemu/qemu_domain.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index c8ba7f9cd9..57a7546d5b 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -10768,6 +10768,10 @@ qemuDomainSupportsVideoVga(virDomainVideoDefPtr video,
         !virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_VGA))
         return false;
 
+    if (video->type == VIR_DOMAIN_VIDEO_TYPE_VHOST_USER &&
+        !virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VHOST_USER_VGA))
+        return false;
+
     return true;
 }
 
-- 
2.19.0.rc0.48.gb9dfa238d5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]