[virt-tools-list] [PATCH 2 of 4] VideoDevice: adding QXL device for SPICE

Marc-André Lureau marcandre.lureau at redhat.com
Wed Nov 17 15:54:57 UTC 2010


# HG changeset patch
# User Marc-André Lureau <marcandre.lureau at redhat.com>
# Date 1289995693 -3600
# Node ID 7a18947b3a1421a7dcfd6f3bf9cf570b058d7e10
# Parent  653af636a8d8062dae6783e1c0b9e51dea85e28e
VideoDevice: adding QXL device for SPICE

diff -r 653af636a8d8 -r 7a18947b3a14 tests/xmlconfig-xml/boot-many-devices.xml
--- a/tests/xmlconfig-xml/boot-many-devices.xml	Wed Nov 17 13:07:10 2010 +0100
+++ b/tests/xmlconfig-xml/boot-many-devices.xml	Wed Nov 17 13:08:13 2010 +0100
@@ -66,6 +66,9 @@
     <video>
       <model type='cirrus'/>
     </video>
+    <video>
+      <model type='qxl'/>
+    </video>
     <hostdev mode='subsystem' type='usb' managed='yes'>
       <source>
         <vendor id='0x4321'/>
diff -r 653af636a8d8 -r 7a18947b3a14 tests/xmlconfig.py
--- a/tests/xmlconfig.py	Wed Nov 17 13:07:10 2010 +0100
+++ b/tests/xmlconfig.py	Wed Nov 17 13:08:13 2010 +0100
@@ -880,9 +880,13 @@
         vdev2.heads = 3
 
         vdev3 = VirtualVideoDevice(g.conn)
+        vdev4 = VirtualVideoDevice(g.conn)
+        vdev4.model_type = "qxl"
+
         g.add_device(vdev1)
         g.add_device(vdev2)
         g.add_device(vdev3)
+        g.add_device(vdev4)
 
         wdev2 = VirtualWatchdog(g.conn)
         wdev2.model = "ib700"
diff -r 653af636a8d8 -r 7a18947b3a14 virtinst/VirtualVideoDevice.py
--- a/virtinst/VirtualVideoDevice.py	Wed Nov 17 13:07:10 2010 +0100
+++ b/virtinst/VirtualVideoDevice.py	Wed Nov 17 13:08:13 2010 +0100
@@ -26,7 +26,7 @@
 
     # Default models list
     MODEL_DEFAULT = "default"
-    _model_types = [ "cirrus", "vga", "vmvga", "xen", MODEL_DEFAULT]
+    _model_types = [ "cirrus", "vga", "vmvga", "xen", "qxl", MODEL_DEFAULT]
 
     def __init__(self, conn, parsexml=None, parsexmlnode=None):
         VirtualDevice.VirtualDevice.__init__(self, conn,




More information about the virt-tools-list mailing list