]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: parse: drop redundant video config
authorCole Robinson <crobinso@redhat.com>
Wed, 28 Jun 2017 13:54:16 +0000 (09:54 -0400)
committerCole Robinson <crobinso@redhat.com>
Sun, 27 Aug 2017 13:38:12 +0000 (09:38 -0400)
The ram/vram = 0 bits aren't needed, and PostParse will fill in the
needed QXL default

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/qemu/qemu_parse_command.c

index 6002d39a6d09f888536c93f1273a1a20aadde68b..09d9418ce1da6b67a89fa37a56c292f3728ebcd9 100644 (file)
@@ -2608,12 +2608,6 @@ qemuParseCommandLine(virCapsPtr caps,
         if (VIR_ALLOC(vid) < 0)
             goto error;
         vid->type = video;
-        if (vid->type == VIR_DOMAIN_VIDEO_TYPE_QXL) {
-            vid->vgamem = QEMU_QXL_VGAMEM_DEFAULT;
-        } else {
-            vid->ram = 0;
-            vid->vgamem = 0;
-        }
         vid->heads = 1;
 
         if (VIR_APPEND_ELEMENT(def->videos, def->nvideos, vid) < 0) {