Shahar Havivi has uploaded a new change for review.

Change subject: support for multiple heas in qxl display divice
......................................................................

support for multiple heas in qxl display divice

bug-url: https://bugzilla.redhat.com/787578
Change-Id: I0799193df70edf7e0be2c172636df229c59d6aac
Signed-off-by: Shahar Havivi <[email protected]>
---
M vdsm/vm.py
1 file changed, 8 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/67/17067/1

diff --git a/vdsm/vm.py b/vdsm/vm.py
index a630e39..f630750 100644
--- a/vdsm/vm.py
+++ b/vdsm/vm.py
@@ -1205,7 +1205,7 @@
         """
         video = self.createXmlElem('video', None, ['address'])
         video.appendChildWithArgs('model', type=self.device,
-                                  vram=self.specParams['vram'], heads='1')
+                                  vram=self.specParams['vram'], 
heads=self.specParams['heads'])
 
         return video
 
@@ -1888,10 +1888,15 @@
             devType = 'qxl'
 
         monitors = int(self.conf.get('spiceMonitors', '1'))
+        heads = int(self.conf.get('heads', '1'))
         vram = '65536' if (monitors <= 2) else '32768'
-        for idx in range(monitors):
-            vcards.append({'type': VIDEO_DEVICES, 'specParams': {'vram': vram},
+        if heads > 1:
+            vcards.append({'type': VIDEO_DEVICES, 'specParams': {'vram': vram, 
'heads': heads},
                            'device': devType})
+        else:
+            for idx in range(monitors):
+                vcards.append({'type': VIDEO_DEVICES, 'specParams': {'vram': 
vram, 'heads': heads},
+                               'device': devType})
 
         return vcards
 


-- 
To view, visit http://gerrit.ovirt.org/17067
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0799193df70edf7e0be2c172636df229c59d6aac
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Shahar Havivi <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to