]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu_command: don't modify heads for graphics device
authorPavel Hrdina <phrdina@redhat.com>
Fri, 12 Aug 2016 14:12:39 +0000 (16:12 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 15 Aug 2016 10:47:37 +0000 (12:47 +0200)
Setting heads to 0 in case that *max_outputs* is not supported while building
command line doesn't have any real effect.  It only removes *heads* attribute
from live XML, but after restarting libvirt the default value is restored.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_command.c

index 930895c4e0fbd4280734cb929640035b04a5eb0c..ebedaef8fbf762446c9763d30c6d4cc7b0e05c9e 100644 (file)
@@ -4298,8 +4298,6 @@ qemuBuildDeviceVideoStr(const virDomainDef *def,
              virQEMUCapsGet(qemuCaps, QEMU_CAPS_QXL_MAX_OUTPUTS))) {
             if (video->heads)
                 virBufferAsprintf(&buf, ",max_outputs=%u", video->heads);
-        } else {
-            video->heads = 0;
         }
     } else if (video->vram &&
         ((video->type == VIR_DOMAIN_VIDEO_TYPE_VGA &&