[libvirt] [PATCH] Add support for parsing -vga virtio

Nehal J Wani nehaljw.kkd1 at gmail.com
Fri Nov 18 06:57:49 UTC 2016


Since a94f0c5c qemu supports '-vga virtio'.
Libvirt also supports it since 21373feb.

This patch enables libvirt to parse the qemu-argv:

virsh domxml-from-native qemu-argv <(echo '/usr/bin/qemu-system-x86_64 -vga virtio')

Signed-off-by: Nehal J Wani <nehaljw.kkd1 at gmail.com>
---
 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 4a5fce3..d92bf9d 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -100,7 +100,7 @@ VIR_ENUM_IMPL(qemuVideo, VIR_DOMAIN_VIDEO_TYPE_LAST,
               "", /* don't support vbox */
               "qxl",
               "", /* don't support parallels */
-              "" /* no need for virtio */);
+              "virtio");
 
 VIR_ENUM_DECL(qemuDeviceVideo)
 
-- 
2.7.4




More information about the libvir-list mailing list