]> xenbits.xensource.com Git - libvirt.git/commitdiff
domain_conf: always set primary video device as primary
authorPavel Hrdina <phrdina@redhat.com>
Tue, 23 Feb 2016 12:00:24 +0000 (13:00 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 1 Mar 2016 13:17:09 +0000 (14:17 +0100)
We always place primary video device at first place, to make it easier
to create a qemu command or format an xml, but we should also set the
primary boolean for primary video device to 'true'.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
35 files changed:
src/conf/domain_conf.c
src/qemu/qemu_command.c
tests/qemuhotplugtestdata/qemuhotplug-console-compat-2+console-virtio.xml
tests/qemuxml2argvdata/qemuxml2argv-console-compat-2.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-listen-network.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-listen-network2.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-sdl-fullscreen.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-sdl.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-spice-compression.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-spice-qxl-vga.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-spice-timeout.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-spice.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-vnc-sasl.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-vnc-tls.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-vnc-websocket.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-vnc.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-interface-server.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-net-bandwidth.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-net-bandwidth2.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pci-autoadd-addr.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pci-autoadd-idx.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pci-bridge.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pcie-root-port.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pcie-switch-downstream-port.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pcie-switch-upstream-port.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pcihole64-q35.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-q35-usb2-multi.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-q35-usb2-reorder.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-q35-usb2.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-q35.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-seclabel-dynamic-none-relabel.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-serial-spiceport.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-video-virtio-gpu-device.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-video-virtio-gpu-spice-gl.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-video-virtio-gpu-virgl.xml

index 049a7a775d3955e953640db3c9dc9e6bead93248..1f6bc75f30e84c1aab60fb404bc9f3157bd05029 100644 (file)
@@ -11938,7 +11938,7 @@ virDomainVideoDefParseXML(xmlNodePtr node,
 
                 if ((primary = virXMLPropString(cur, "primary")) != NULL) {
                     if (STREQ(primary, "yes"))
-                        def->primary = 1;
+                        def->primary = true;
                     VIR_FREE(primary);
                 }
 
@@ -16074,6 +16074,10 @@ virDomainDefParseXML(xmlDocPtr xml,
             goto error;
         }
     }
+    /* if not specified by user mark the first video as primary */
+    if (n && !primaryVideo)
+        def->videos[0]->primary = true;
+
     VIR_FREE(nodes);
 
     /* For backwards compatibility, if no <video> tag is set but there
index a60e8727cb5345025f91a8df52ab32724a234abd..7864b98b9feeda8d8a309288d552a6b4dce8414f 100644 (file)
@@ -3280,13 +3280,12 @@ qemuBuildSoundCodecStr(virDomainSoundDefPtr sound,
 static char *
 qemuBuildDeviceVideoStr(virDomainDefPtr def,
                         virDomainVideoDefPtr video,
-                        virQEMUCapsPtr qemuCaps,
-                        bool primary)
+                        virQEMUCapsPtr qemuCaps)
 {
     virBuffer buf = VIR_BUFFER_INITIALIZER;
     const char *model;
 
-    if (primary) {
+    if (video->primary) {
         model = qemuDeviceVideoTypeToString(video->type);
         if (!model || STREQ(model, "")) {
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
@@ -3347,8 +3346,10 @@ qemuBuildDeviceVideoStr(virDomainDefPtr def,
             virBufferAsprintf(&buf, ",vram_size=%u", video->vram * 1024);
         }
 
-        if ((primary && virQEMUCapsGet(qemuCaps, QEMU_CAPS_QXL_VGA_VGAMEM)) ||
-            (!primary && virQEMUCapsGet(qemuCaps, QEMU_CAPS_QXL_VGAMEM))) {
+        if ((video->primary &&
+             virQEMUCapsGet(qemuCaps, QEMU_CAPS_QXL_VGA_VGAMEM)) ||
+            (!video->primary &&
+             virQEMUCapsGet(qemuCaps, QEMU_CAPS_QXL_VGAMEM))) {
             /* QEMU accepts mebibytes for vgamem_mb. */
             virBufferAsprintf(&buf, ",vgamem_mb=%u", video->vgamem / 1024);
         }
@@ -8225,7 +8226,8 @@ qemuBuildCommandLine(virConnectPtr conn,
             for (i = 0; i < def->nvideos; i++) {
                 char *str;
                 virCommandAddArg(cmd, "-device");
-                if (!(str = qemuBuildDeviceVideoStr(def, def->videos[i], qemuCaps, !i)))
+                if (!(str = qemuBuildDeviceVideoStr(def, def->videos[i],
+                                                    qemuCaps)))
                     goto error;
 
                 virCommandAddArg(cmd, str);
@@ -8337,7 +8339,8 @@ qemuBuildCommandLine(virConnectPtr conn,
 
                         virCommandAddArg(cmd, "-device");
 
-                        if (!(str = qemuBuildDeviceVideoStr(def, def->videos[i], qemuCaps, false)))
+                        if (!(str = qemuBuildDeviceVideoStr(def, def->videos[i],
+                                                            qemuCaps)))
                             goto error;
 
                         virCommandAddArg(cmd, str);
index d8486777207d6bb44e1daa90141fb9b87b5bfeb9..a2796ecdbb33561b8a086e536f6ff2ddd8fb8c59 100644 (file)
@@ -91,7 +91,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
     </sound>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index a7209b2ed56b8a15e20bbb819fea1037f11e76df..2ae104e1196851278108f461c60d06a8a862d291 100644 (file)
@@ -88,7 +88,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
     </sound>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index 599eda9d0101262291c899f36c252dddef6fd5d3..79f990c64da495e1cafd54927f48d6e6a98c7965 100644 (file)
@@ -32,7 +32,7 @@
       <listen type='network' network='Bobsnetwork'/>
     </graphics>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index 8687a6bb535147210f014a3580b614cefdedaf66..a0831aa60feaa71fc4921a24fe641884d5ef2638 100644 (file)
@@ -33,7 +33,7 @@
       <listen type='network' network='Bobsnetwork'/>
     </graphics>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index cbf7a78cdb242567baa81d4d084b55aafd772066..91bf3af4eef01dfe3b92fda877dcdc82d1982731 100644 (file)
@@ -31,7 +31,7 @@
     <input type='keyboard' bus='ps2'/>
     <graphics type='sdl' display=':0.1' xauth='/root/.Xauthority' fullscreen='yes'/>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='none'/>
index 536a0f7644bd2c342f1bc27c680dab4408d8bff4..3b31e596190e827d7ecb0c6652f4dfc6d409c43a 100644 (file)
@@ -31,7 +31,7 @@
     <input type='keyboard' bus='ps2'/>
     <graphics type='sdl' display=':0.1' xauth='/root/.Xauthority'/>
     <video>
-      <model type='vga' vram='16384' heads='1'/>
+      <model type='vga' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='none'/>
index e0419e19970a123d5e40ca802524e76fbe82396b..dea134703f18e7a031f6b6c3597aff904249a221 100644 (file)
@@ -37,7 +37,7 @@
       <streaming mode='filter'/>
     </graphics>
     <video>
-      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1'/>
+      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <video>
index 82a359d697a7a8960bcce9c8fa1e440135e3ab42..a17fab2a91008404af5baadeef71de1efb4f5eec 100644 (file)
@@ -34,7 +34,7 @@
       <channel name='inputs' mode='insecure'/>
     </graphics>
     <video>
-      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1'/>
+      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <video>
index 8a0711e4b565bc1b029f5e31d5a9a573520a0145..33b5465c5d90222d04da2962ccd6fab556347b44 100644 (file)
@@ -82,7 +82,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </sound>
     <video>
-      <model type='vga' vram='16384' heads='1'/>
+      <model type='vga' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index 38d3507b812b991741d02430d01e8992c4b14d5f..59ed507c8268152868e68569f2312a2dad6bbda5 100644 (file)
@@ -41,7 +41,7 @@
       <filetransfer enable='no'/>
     </graphics>
     <video>
-      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1'/>
+      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <video>
index 71465292de171034544fd39a8cba4ada6b296f84..f29abe2238d4f1c3af16309192d3b1bfa1ec8228 100644 (file)
@@ -33,7 +33,7 @@
       <listen type='address' address='127.0.0.1'/>
     </graphics>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='none'/>
index 71465292de171034544fd39a8cba4ada6b296f84..f29abe2238d4f1c3af16309192d3b1bfa1ec8228 100644 (file)
@@ -33,7 +33,7 @@
       <listen type='address' address='127.0.0.1'/>
     </graphics>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='none'/>
index 3f23c793f8e15bd1dde9cef5733768a726d2bf07..6e879eb57ed48aa72ee31fbe289cd574cf148ff1 100644 (file)
@@ -24,7 +24,7 @@
       <listen type='address' address='127.0.0.1'/>
     </graphics>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='none'/>
index 73d3b1ba578803172601b5504b8d13131395a164..0627bbd1dd1599cc7cc4acdf830f496d33aefc0b 100644 (file)
@@ -33,7 +33,7 @@
       <listen type='address' address='2001:1:2:3:4:5:1234:1234'/>
     </graphics>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='none'/>
index a92aff4218f18de0c72136d90faed8d15b846b2d..9bc610bbe2fecf41598bf52b8d3faa8724325018 100644 (file)
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
     </sound>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index 7dc55e02f6849f0bc99580ae88a9765160969df7..b9c90159ff6fe11ae33551eee3bc8986185b8d64 100644 (file)
@@ -68,7 +68,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </sound>
     <video>
-      <model type='vga' vram='16384' heads='1'/>
+      <model type='vga' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index 46e5d61c16c1d7a0cfc66c3f6e4508186717eab4..411b409a2c6256154ff09bc7338b51834ac472cb 100644 (file)
@@ -57,7 +57,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </sound>
     <video>
-      <model type='vga' vram='16384' heads='1'/>
+      <model type='vga' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index b4d6a41712af80f7c11137afde0c47e49b33431f..0ee137fd601aacc3dc6d2d1edbc27096677f89ea 100644 (file)
@@ -71,7 +71,7 @@
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index 8ca1e39e841909d9815edb72eea6ec257408bbb1..692025ea1a77fc03e9bf7158d46891ddff87c176 100644 (file)
@@ -76,7 +76,7 @@
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index 3958ab329a0f17a05586523cfc1b5cbde8467516..61de00942edb70cd656e932eba17d5de5de56d16 100644 (file)
       <listen type='address' address='127.0.0.1'/>
     </graphics>
     <video>
-      <model type='cirrus' vram='16384' heads='1'/>
+      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index cb1c60f994e60633e10d5034d3b661d640a09d3d..ea61bcf2007e0e5b90fd82a523ccca2cd417ad22 100644 (file)
@@ -45,7 +45,7 @@
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <video>
-      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1'/>
+      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
     </video>
     <memballoon model='none'/>
index 8f0e5ace9d6591a6c4cf45e64d95c11b4a0f27c8..22cfeaa8741509b01e9a5a11189b7779513794fb 100644 (file)
@@ -83,7 +83,7 @@
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <video>
-      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1'/>
+      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
     </video>
     <memballoon model='none'/>
index 79c030482f97d51624ab66d5f8836c39bf29088b..813ba97487b42e22a49c03eae5f4cd9d1e70912f 100644 (file)
@@ -53,7 +53,7 @@
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <video>
-      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1'/>
+      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
     </video>
     <memballoon model='none'/>
index 0845413102d1babd7f45c54a7ea4a6c8d3a54e90..7e9a36690e583b50171225d056bb2f1ca977ca46 100644 (file)
@@ -37,7 +37,7 @@
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <video>
-      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1'/>
+      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
     </video>
     <memballoon model='none'/>
index 04cf91eb5c04f7d8ef6c3c841d0a9e131c016cb2..35e8fed43b97b0f6bd4aae5874e9e31ab6b67c80 100644 (file)
@@ -80,7 +80,7 @@
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <video>
-      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1'/>
+      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
     </video>
     <memballoon model='none'/>
index eef74d73aa6475f496436c823123e9efad5fe74a..914c7f8354e1a09bd9dcea67f805c06b8031162c 100644 (file)
@@ -80,7 +80,7 @@
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <video>
-      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1'/>
+      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
     </video>
     <memballoon model='none'/>
index 19729cc641715af8d90a6ad328bc7be31d861d7e..3fd2c0e9afe3ce356c2e94927c61614bc0524e9f 100644 (file)
@@ -50,7 +50,7 @@
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <video>
-      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1'/>
+      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
     </video>
     <memballoon model='none'/>
index 19729cc641715af8d90a6ad328bc7be31d861d7e..3fd2c0e9afe3ce356c2e94927c61614bc0524e9f 100644 (file)
@@ -50,7 +50,7 @@
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <video>
-      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1'/>
+      <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
     </video>
     <memballoon model='none'/>
index 1b36533db3aeb3bd3c723d6038d6cd5c99d413cc..050967b4eead6f17009408974cddae7a94be7d3e 100644 (file)
@@ -42,7 +42,7 @@
       <listen type='address' address='0.0.0.0'/>
     </graphics>
     <video>
-      <model type='cirrus' vram='8192' heads='1'/>
+      <model type='cirrus' vram='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index 5808960ef2c759d8af9e448f8a806d2a6f244829..5b18cac47a22781f89b38816474f42a7d119ea73 100644 (file)
@@ -41,7 +41,7 @@
       <listen type='address' address='127.0.0.1'/>
     </graphics>
     <video>
-      <model type='qxl' ram='65536' vram='65536' vgamem='8192' heads='1'/>
+      <model type='qxl' ram='65536' vram='65536' vgamem='8192' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index 726c0d37e8cef403274f2eed3e6716654567b98c..a17b86ec28415b156fe63f801867c342d51f3fce 100644 (file)
@@ -30,7 +30,7 @@
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <video>
-      <model type='virtio' heads='1'/>
+      <model type='virtio' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </video>
     <memballoon model='virtio'>
index 05e9cd5e8a4e24a1759200230c03fdd029de0539..4b06e480ba1efa9861d005549d3871224c50d723 100644 (file)
@@ -33,7 +33,7 @@
       <gl enable='yes'/>
     </graphics>
     <video>
-      <model type='virtio' heads='1'>
+      <model type='virtio' heads='1' primary='yes'>
         <acceleration accel3d='yes'/>
       </model>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
index 3655a39bb44534b74c735a20bd2815737c479613..8ec0d1a8f9e23587e360d986f75bef81e2ed34fb 100644 (file)
@@ -30,7 +30,7 @@
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <video>
-      <model type='virtio' heads='1'>
+      <model type='virtio' heads='1' primary='yes'>
         <acceleration accel3d='yes'/>
       </model>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>