6ae9ed
From 60309df2aa2cafabf213a3eedfa5825d3b3e87c7 Mon Sep 17 00:00:00 2001
6ae9ed
Message-Id: <60309df2aa2cafabf213a3eedfa5825d3b3e87c7@dist-git>
6ae9ed
From: Pavel Hrdina <phrdina@redhat.com>
6ae9ed
Date: Mon, 15 Aug 2016 12:58:31 +0200
6ae9ed
Subject: [PATCH] qemu_command: don't modify heads for graphics device
6ae9ed
6ae9ed
Setting heads to 0 in case that *max_outputs* is not supported while building
6ae9ed
command line doesn't have any real effect.  It only removes *heads* attribute
6ae9ed
from live XML, but after restarting libvirt the default value is restored.
6ae9ed
6ae9ed
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
6ae9ed
(cherry picked from commit ef11e770da543c171f044bbd579e482febcd9b63)
6ae9ed
6ae9ed
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1366119
6ae9ed
6ae9ed
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
6ae9ed
---
6ae9ed
 src/qemu/qemu_command.c | 2 --
6ae9ed
 1 file changed, 2 deletions(-)
6ae9ed
6ae9ed
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
6ae9ed
index 6be16cc..4ce86bb 100644
6ae9ed
--- a/src/qemu/qemu_command.c
6ae9ed
+++ b/src/qemu/qemu_command.c
6ae9ed
@@ -4301,8 +4301,6 @@ qemuBuildDeviceVideoStr(const virDomainDef *def,
6ae9ed
              virQEMUCapsGet(qemuCaps, QEMU_CAPS_QXL_MAX_OUTPUTS))) {
6ae9ed
             if (video->heads)
6ae9ed
                 virBufferAsprintf(&buf, ",max_outputs=%u", video->heads);
6ae9ed
-        } else {
6ae9ed
-            video->heads = 0;
6ae9ed
         }
6ae9ed
     } else if (video->vram &&
6ae9ed
         ((video->type == VIR_DOMAIN_VIDEO_TYPE_VGA &&
6ae9ed
-- 
6ae9ed
2.9.2
6ae9ed