]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: parse -device virtio-balloon
authorLaine Stump <laine@laine.org>
Mon, 9 Jun 2014 08:11:25 +0000 (11:11 +0300)
committerLaine Stump <laine@laine.org>
Mon, 23 Jun 2014 13:34:53 +0000 (16:34 +0300)
There are no options to parse here other than the name of the device,
and all three possible device names have the same prefix
("virtio-balloon" with "-ccw", "-pci", or "-device" appended), so the
code is fairly simple. It has been implemented such that it will be
easier to add handling for other -device entries that aren't otherwise
recognized - just add another "else if (STRPREFIX(opts, ....)" clause.

qemuParseCommandLineString() previously would always add a <memballoon
model='virtio'/> to every result (the comments erroneously say that it
is adding a <memballoon model='none'/>) This has been changed to add
model='none', and 84 test case xml's updated accordingly (so that
qemuxml2argvtest won't fail).

Now that the memballoon device is properly parsed, we can safely add a
test for properly ignoring -nodefconfig and -nodefaults. Rather than
adding an entire new test case for this (and memballoon), we just
randomly pick the clock-utc test and modify it slightly to fulfill the
purpose.

88 files changed:
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-boot-cdrom.xml
tests/qemuxml2argvdata/qemuxml2argv-boot-floppy.xml
tests/qemuxml2argvdata/qemuxml2argv-boot-network.xml
tests/qemuxml2argvdata/qemuxml2argv-clock-localtime.xml
tests/qemuxml2argvdata/qemuxml2argv-clock-utc.args
tests/qemuxml2argvdata/qemuxml2argv-console-compat.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom-empty.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-boot-cdrom.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-boot-disk.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-directsync.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-unsafe.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-v1-none.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-v1-wb.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-v2-none.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-v2-wb.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-v2-wt.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-error-policy-enospace.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-error-policy-stop.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-error-policy-wreport-rignore.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-fmt-qcow.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-gluster.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-iscsi.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-nbd-export.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-nbd-ipv6-export.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-nbd-ipv6.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-nbd-unix.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-nbd.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-rbd-ceph-env.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-rbd-ipv6.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-rbd.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-sheepdog.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-floppy.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-many.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-usb.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-virtio.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-xenvbd.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl-fullscreen.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-policy.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-sasl.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-socket.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-tls.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-websocket.xml
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc.xml
tests/qemuxml2argvdata/qemuxml2argv-hostdev-pci-address.xml
tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address.xml
tests/qemuxml2argvdata/qemuxml2argv-hyperv.xml
tests/qemuxml2argvdata/qemuxml2argv-input-usbmouse.xml
tests/qemuxml2argvdata/qemuxml2argv-input-usbtablet.xml
tests/qemuxml2argvdata/qemuxml2argv-kvmclock.xml
tests/qemuxml2argvdata/qemuxml2argv-machine-core-off.xml
tests/qemuxml2argvdata/qemuxml2argv-machine-core-on.xml
tests/qemuxml2argvdata/qemuxml2argv-migrate.xml
tests/qemuxml2argvdata/qemuxml2argv-misc-acpi.xml
tests/qemuxml2argvdata/qemuxml2argv-misc-disable-s3.xml
tests/qemuxml2argvdata/qemuxml2argv-misc-disable-suspends.xml
tests/qemuxml2argvdata/qemuxml2argv-misc-enable-s4.xml
tests/qemuxml2argvdata/qemuxml2argv-misc-no-reboot.xml
tests/qemuxml2argvdata/qemuxml2argv-misc-uuid.xml
tests/qemuxml2argvdata/qemuxml2argv-net-eth-ifname.xml
tests/qemuxml2argvdata/qemuxml2argv-net-eth.xml
tests/qemuxml2argvdata/qemuxml2argv-net-user.xml
tests/qemuxml2argvdata/qemuxml2argv-net-virtio.xml
tests/qemuxml2argvdata/qemuxml2argv-nographics-vga.xml
tests/qemuxml2argvdata/qemuxml2argv-nosharepages.xml
tests/qemuxml2argvdata/qemuxml2argv-parallel-tcp.xml
tests/qemuxml2argvdata/qemuxml2argv-pseries-disk.xml
tests/qemuxml2argvdata/qemuxml2argv-pseries-nvram.xml
tests/qemuxml2argvdata/qemuxml2argv-qemu-ns-no-env.xml
tests/qemuxml2argvdata/qemuxml2argv-reboot-timeout-disabled.xml
tests/qemuxml2argvdata/qemuxml2argv-reboot-timeout-enabled.xml
tests/qemuxml2argvdata/qemuxml2argv-restore-v1.xml
tests/qemuxml2argvdata/qemuxml2argv-restore-v2.xml
tests/qemuxml2argvdata/qemuxml2argv-serial-dev.xml
tests/qemuxml2argvdata/qemuxml2argv-serial-file.xml
tests/qemuxml2argvdata/qemuxml2argv-serial-many.xml
tests/qemuxml2argvdata/qemuxml2argv-serial-pty.xml
tests/qemuxml2argvdata/qemuxml2argv-serial-tcp-telnet.xml
tests/qemuxml2argvdata/qemuxml2argv-serial-tcp.xml
tests/qemuxml2argvdata/qemuxml2argv-serial-udp.xml
tests/qemuxml2argvdata/qemuxml2argv-serial-unix.xml
tests/qemuxml2argvdata/qemuxml2argv-serial-vc.xml
tests/qemuxml2argvdata/qemuxml2argv-smp.xml
tests/qemuxml2argvdata/qemuxml2argv-sound.xml
tests/qemuxml2argvdata/qemuxml2argv-watchdog.xml
tests/qemuxml2argvtest.c

index cc4b7cad54e168eed7444119e2e233fb4b304044..93d303e55fbf5a288683f4b0975ebb1acc957cb6 100644 (file)
@@ -10687,6 +10687,8 @@ qemuParseCommandLine(virCapsPtr qemuCaps,
     /* Now the real processing loop */
     for (i = 1; progargv[i]; i++) {
         const char *arg = progargv[i];
+        bool argRecognized = true;
+
         /* Make sure we have a single - for all options to
            simplify next logic */
         if (STRPREFIX(arg, "--"))
@@ -11363,7 +11365,29 @@ qemuParseCommandLine(virCapsPtr qemuCaps,
                    STREQ(arg, "-nodefaults") ||
                    STREQ(arg, "-nodefconfig")) {
             /* ignore, always added by libvirt */
+        } else if (STREQ(arg, "-device") && progargv[1 + 1]) {
+            const char *opts = progargv[i + 1];
+
+            /* NB: we can't do WANT_VALUE until we're sure that we
+             * recognize the device, otherwise the !argRecognized
+             * logic below will be messed up
+             */
+
+            if (STRPREFIX(opts, "virtio-balloon")) {
+                WANT_VALUE();
+                if (VIR_ALLOC(def->memballoon) < 0)
+                    goto error;
+                def->memballoon->model = VIR_DOMAIN_MEMBALLOON_MODEL_VIRTIO;
+            } else {
+                /* add in new -device's here */
+
+                argRecognized = false;
+            }
         } else {
+            argRecognized = false;
+        }
+
+        if (!argRecognized) {
             char *tmp = NULL;
             /* something we can't yet parse.  Add it to the qemu namespace
              * cmdline/environment advanced options and hope for the best
@@ -11501,7 +11525,7 @@ qemuParseCommandLine(virCapsPtr qemuCaps,
         virDomainMemballoonDefPtr memballoon;
         if (VIR_ALLOC(memballoon) < 0)
             goto error;
-        memballoon->model = VIR_DOMAIN_MEMBALLOON_MODEL_VIRTIO;
+        memballoon->model = VIR_DOMAIN_MEMBALLOON_MODEL_NONE;
 
         def->memballoon = memballoon;
     }
index b5c37bb466538837729d4f094edfe846932248c8..b63982199c631b70a8ebb081dd287261bc941630 100644 (file)
@@ -24,6 +24,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index e42f7edd5578361d0917d60cb1d9e07256161a18..610321fff36e63b7ea37de2a399628ec353994ed 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='fdc' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 8124f347dd79df2d139b9160deef2287744e9b3a..f4ebc2ea8c267cb7fd4e4765052b7c6fc73b7f77 100644 (file)
@@ -23,6 +23,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 2acb71ffcc34431687b19feae76aff0fdb81580e..4e1f66b242e18d35f99a0e9af3953525dd51da0a 100644 (file)
@@ -23,6 +23,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 57fc6e3d2a4fd8539ea86f79315a25206f1a05af..9ed48c1339ec11475f2d321aa6aceac94386f862 100644 (file)
@@ -1,5 +1,6 @@
 LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
 /usr/bin/qemu -S -M \
-pc -m 214 -smp 1 -nographic -monitor unix:/tmp/test-monitor,server,nowait \
--no-acpi -boot c -usb -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel \
-none
+pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults \
+-monitor unix:/tmp/test-monitor,server,nowait \
+-no-acpi -boot c -usb -hda /dev/HostVG/QEMUGuest1 \
+-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
index b1ee29ce859df389a9de9998f738250a97e8e6af..dc2f851bc77862ef607a05b7eed97ecf621bf6be 100644 (file)
@@ -29,6 +29,6 @@
     <console type='pty'>
       <target type='serial' port='0'/>
     </console>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index d8ff67654dd8d9251158b26ed88bd389d6627db4..60b316898794f8d83ec18856bfc1564b5c204fbf 100644 (file)
@@ -29,6 +29,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 75b9cec6c226939654d68fa321eb7ff2bcf36ebc..5d94ec0b4470b0f1dbf41ca8cc41331b76b105e3 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 59ef29ddb6d1c4daca409ad72ebcf8fdc5d4b3e6..31d3702877ecf4cfca61f9ce54cefb8470a384eb 100644 (file)
@@ -29,6 +29,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 0c9bc085906eb4fb76fd8f783337a9ea7540b642..3b06a973ef130d4efabdbf03b2133b61d60aa896 100644 (file)
@@ -29,6 +29,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 0b85fb1a2ad4c15e6e8942659b4253d356170e88..779aa173883dd4c949cd6bed1df734f7961f8617 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 4bd8e24e0afc2d940e3f5c43c87b5f5ebc6b62f8..481cc552528ddf2c6a2d58932625386d66948dda 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 7fe9082626833a9a0155633e60169596e6f58633..933feb4bb73609f25da73d26bf60d133a02ed8a2 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index f0e7df4e1adafaca7af07ae6efeee15a04b56480..4cc449d9a43fbbfddad0be7ed0c7b450554d0165 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 0beda48c33a22d0bf5dfaf69db222402634b5faf..63fb2b0a6dcd66e13c00bc98a890de6c1c7c231d 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 00730f7fd9cb83cad643bfae7025660b8cd15cc1..dcac86123b7a2bde6fa6535688767c4f15a6ace9 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 6ee75aa965362692dc052b8b15320fcde6c3de42..0a93f0028d0776bccf62dd126bf191d507d461dc 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 92fcd8a9b5a31dedef5940f6ba7e837086b42b05..ab88224f384bd046b202b6fb8673578bcd58a2a1 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 83d5dd0be85cebf3f19bd0383314580fe977c0f0..b78be46162a75819b5c0d4795f9c9a16f0420bcf 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index ded9cd1ff05a173ae904bfda0c99c3b7ada14a09..14dd1ca8e07be4a5394e322dafbbedbb5275c46f 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 85fe2a9520a93b487f6d7e399ec5dea9aa3a9105..a36b09c89bc036dfc542cb4b7d7fe43c1d09a676 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 7c1fdb16ca61886da06052ae6067539a2c06cb6d..dce5f2397ef41f884817925604ec0518f96c41c8 100644 (file)
@@ -30,6 +30,6 @@
     </disk>
     <controller type='usb' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index a6b13abb5f22ceb28c5c49c3104383ec40f6423c..1764259f80ee96cf55dbdc06a7b5a6271ca3d32b 100644 (file)
@@ -30,6 +30,6 @@
     </disk>
     <controller type='usb' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index dd52c39d6801d84116cb86821d7d65e41a0edc6f..62b17ecb3bf1b94b7b5ed304b654d03aad2adf54 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index c3bfa34c839454de8dbf559aa923f8f41abe122b..0ba7a05e670379b222dc7f5247ccf9d00efe00cc 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 8087f90894355fb5841c0187a6942bf21b92544d..aaafa6390d2c33cd3d6b6ebfb042a4f3c2069c1d 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 0955fee6882cba8bc1edbe904434c80e13869dc5..82aeaf1ed0689ddd3e4e07e369962d74c86d3c64 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index e74b95f222c672396c0fc65e8cb9ea9273e30671..6d18d72afa7201f391059034ab163e02fa7631c6 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index bba512e85070e88c5fc8b1b2ce329f9280c12449..37e9db52e8f07a05eaa8a7106b32c3098bb3f7a1 100644 (file)
@@ -32,6 +32,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 06e852de97a443a0bdd3d4911c707ed0711e1a6d..bc9d8d04520053e0bfe2ff76aef730ad3d7512f3 100644 (file)
@@ -33,6 +33,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index bba512e85070e88c5fc8b1b2ce329f9280c12449..37e9db52e8f07a05eaa8a7106b32c3098bb3f7a1 100644 (file)
@@ -32,6 +32,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index d20ca3e6f3769976b0d5607ae744c94780c43325..fc9ad163c63da1b4b5370350b861f585456339b5 100644 (file)
@@ -30,6 +30,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 8bbd32402e6f02f452599c30488e0ee6704b1d58..343767d1c6610069cf9d2cc68f9e2fb015041e42 100644 (file)
@@ -36,6 +36,6 @@
     <controller type='fdc' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index edcd01519bc044323fa61dc3cc29eab9def22df6..96742374cc90057b67fc2b2d7eece43c8615b167 100644 (file)
@@ -41,6 +41,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 730c4f3dc473ba734ce451fe6f0200a393aa4966..74a30df6ae56e47535dc2b9b6c5be225cb54022b 100644 (file)
@@ -28,6 +28,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 3e2e550aea0988835708b01b77a7089016e48168..458c55d8f39194b0c35d377dac304e7c7c075ff0 100644 (file)
@@ -40,6 +40,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 3baf97d5358622316b267fd54a5c05038022ed0c..e0bad718b938467d0a639773f4bcf20ff916c3e6 100644 (file)
@@ -40,6 +40,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 4aa385c186315b191d0ed0dd07197e2d79dc93c0..01776546fcf549d986fbaf3413d0ec9d7d8e416e 100644 (file)
@@ -29,6 +29,6 @@
     <video>
       <model type='cirrus' vram='9216' heads='1'/>
     </video>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 66ea35d811099a6470867f07482a1dbfb9633be5..6bebd10cf29974fe9046adf42a24539b258da17e 100644 (file)
@@ -29,6 +29,6 @@
     <video>
       <model type='vga' vram='9216' heads='1'/>
     </video>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 01989300d2df4ce0c5706675efc3070fd3a09e7b..694343f62b4683ad0b8badff216cb8fbebd5acfd 100644 (file)
@@ -31,6 +31,6 @@
     <video>
       <model type='cirrus' vram='9216' heads='1'/>
     </video>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index eda2e87c5fd143bc3aa268cd2b1c7a2949675a4f..b35c2bddd294389179afb8b8b6baa111a2cc5ab2 100644 (file)
@@ -31,6 +31,6 @@
     <video>
       <model type='cirrus' vram='9216' heads='1'/>
     </video>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 2b138652ea2bb6f9f597a3c00bcf1a8ca78e7815..44df2261646c30408145e103e95f5831a1d86815 100644 (file)
@@ -29,6 +29,6 @@
     <video>
       <model type='cirrus' vram='9216' heads='1'/>
     </video>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index eda2e87c5fd143bc3aa268cd2b1c7a2949675a4f..b35c2bddd294389179afb8b8b6baa111a2cc5ab2 100644 (file)
@@ -31,6 +31,6 @@
     <video>
       <model type='cirrus' vram='9216' heads='1'/>
     </video>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 11e5a7a1fe758c236d00fd6f6497e0f6dc5c100c..cfa61be7045d560df9ec9b50189eab01ddc1260f 100644 (file)
@@ -24,6 +24,6 @@
     <video>
       <model type='cirrus' vram='9216' heads='1'/>
     </video>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 267876f9e3759ce2a1d716fa0eebc46cf4394b80..356ac360058070eda74d581b993d60d67e40377d 100644 (file)
@@ -31,6 +31,6 @@
     <video>
       <model type='cirrus' vram='9216' heads='1'/>
     </video>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 422127cc360a56d9020202a1c4a4b0f108f5cae3..b9b5c140ec0d73bf5617cb46851a9946ca78ce04 100644 (file)
@@ -28,6 +28,6 @@
         <address domain='0x0000' bus='0x06' slot='0x12' function='0x5'/>
       </source>
     </hostdev>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index ee00634e10b5408935857f3c97fe9d26df03315b..5807eff92611ec0b07106f1b6816c73860d32fcb 100644 (file)
@@ -28,6 +28,6 @@
         <address bus='14' device='6'/>
       </source>
     </hostdev>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index bb36fc0af58b9c24b71644c268a7eaab53103b75..5b800409e78efb64c9bf52a16870b17cc0653fce 100644 (file)
@@ -24,6 +24,6 @@
     <emulator>/usr/bin/qemu</emulator>
     <controller type='usb' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 0863737a823ab551847a1f05ea8ea2724f04d512..5765a04a96ec07bb387f02e1b7da629da38cd8df 100644 (file)
@@ -24,6 +24,6 @@
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
     <input type='mouse' bus='usb'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 03558dd04412517f518d9cc4935aa37842a77cdc..59d04ebec8c81049bbdae01978d975169c3485a5 100644 (file)
@@ -24,6 +24,6 @@
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
     <input type='tablet' bus='usb'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index a187aaac4c586855e6ede37258eec91470be11b2..32fb3492e3ce6816afa3f791038cfd0b094044d3 100644 (file)
@@ -21,6 +21,6 @@
     <emulator>/usr/bin/kvm</emulator>
     <controller type='usb' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 5eb229f76f99b472510b8c6e7b611a45b732fcc5..37a9e22f1c476b8b2ea7e381efd7ce3702e66a0b 100644 (file)
@@ -23,6 +23,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 0dd5b39e3e654a719fa08e2e7944bc0c68c8913a..b98f43481e3d29e2850d64460a8d09d64106461d 100644 (file)
@@ -23,6 +23,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 3a375fe85d4779365fc50d0169005a3745541bb4..5fcc470c48cfa837344e4075ff83f45d0bac2d27 100644 (file)
@@ -23,6 +23,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 6fe8a8599ff62a2760a769ad64d1b4843e2f1031..5e1a101ee5f23ea7d5b471662b50640fbcb399e7 100644 (file)
@@ -26,6 +26,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index b9313e05ab130c375c6e3e35dcf331b0dc917fc5..80d8f0f01f3ccf68fb30a9d64b5df433782007a6 100644 (file)
@@ -26,6 +26,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index f432732afdf29eb104a63c7e37acbc6e5a82db89..5da5fa60a63fccd1f064fd461e04d84db6705a73 100644 (file)
@@ -27,6 +27,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index cea52f8c9c26aa87a9d67abf9c478d42fc2279fc..8263642216f356e8b01245b667761009b7283679 100644 (file)
@@ -26,6 +26,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 10c2d419e28ff33c173dae906968b5afd444aeb5..43a88eed693fd505e0f4a18828a4e01fd14170b3 100644 (file)
@@ -23,6 +23,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 6fe8a8599ff62a2760a769ad64d1b4843e2f1031..5e1a101ee5f23ea7d5b471662b50640fbcb399e7 100644 (file)
@@ -26,6 +26,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 8ad6eb74ca87fcf8b70c85d835f62a4cd5831897..d616918340f655c56ea87a287fb9ef4c87e81e7e 100644 (file)
@@ -29,6 +29,6 @@
       <target dev='nic02'/>
       <model type='rtl8139'/>
     </interface>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 6f00fe1252e105b7632a29c91f9dc32878234258..bc1a9810845ac100bc22cac7c944722bde2f004c 100644 (file)
@@ -28,6 +28,6 @@
       <script path='/etc/qemu-ifup'/>
       <model type='rtl8139'/>
     </interface>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 960b7aab593bc687ca46d533dadfdf3b21d26cb1..80330aa0fbfd141e4c96e11392d0ba4861e7170e 100644 (file)
@@ -27,6 +27,6 @@
       <mac address='00:11:22:33:44:55'/>
       <model type='rtl8139'/>
     </interface>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 195a3d96200fbc6660b302772ddc25aeaf16098c..5c0ef5522e782779a157e99e9d079babcaa936e0 100644 (file)
@@ -27,6 +27,6 @@
       <mac address='00:11:22:33:44:55'/>
       <model type='virtio'/>
     </interface>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 3a375fe85d4779365fc50d0169005a3745541bb4..5fcc470c48cfa837344e4075ff83f45d0bac2d27 100644 (file)
@@ -23,6 +23,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 5e54cd0aa9be5c6a291f2b55bddfb0dd3b5b655b..c53b7c3410f6f264a852f4e7b1af4721734fa985 100644 (file)
@@ -26,6 +26,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 60ea84688fd04a3b38ac623eb2f9c04bcfa5d061..a3dfe9abd49811365710f63becfa58cf4af30412 100644 (file)
@@ -28,6 +28,6 @@
       <protocol type='raw'/>
       <target port='0'/>
     </parallel>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 64b70f31257c53341734d0c1a3faa9267245eab6..1f896f8e2f7d069b6b3153c8a5611e004b9b4c50 100644 (file)
@@ -36,6 +36,6 @@
     <video>
       <model type='cirrus' vram='9216' heads='1'/>
     </video>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index d001ee78bac897f7c83e5f9cca8823b9e58151a8..9703bd4c355b81b181fdb79735d9734cef9ac1dd 100644 (file)
@@ -16,7 +16,7 @@
     <emulator>/usr/bin/qemu-system-ppc64</emulator>
     <controller type='usb' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
     <nvram>
       <address type='spapr-vio' reg='0x4000'/>
     </nvram>
index 29f84db2c982e81bef9c9710542ca0e9ac5556aa..3e4313297e5c6bfa5826a4c5450ff4d7c42903ce 100644 (file)
@@ -23,7 +23,7 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
   <qemu:commandline>
     <qemu:arg value='-unknown'/>
index 883a8045c3552ff227fbaf54a9ac0cd4cb981d60..974b966ed2d84749bc537b78591cb4f9c3e65153 100644 (file)
@@ -17,6 +17,6 @@
     <emulator>/usr/bin/qemu</emulator>
     <controller type='usb' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index a298b9d7ee59b066f4e33d8b02fa844d222c1795..4d400e1e28993f6ee7102c8c21fe23d139ebcf65 100644 (file)
@@ -17,6 +17,6 @@
     <emulator>/usr/bin/qemu</emulator>
     <controller type='usb' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 138a83ad486fa1457e99867f55968c62d3b3246f..b40ca80b84a859e76fbfd857e354d015348173df 100644 (file)
@@ -23,6 +23,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 3a375fe85d4779365fc50d0169005a3745541bb4..5fcc470c48cfa837344e4075ff83f45d0bac2d27 100644 (file)
@@ -23,6 +23,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index b1a74291b6349f9181c75366d57dcf0dcd2287d1..4c4de66be8e5b5c86603512eb6967e12ed97f4d1 100644 (file)
@@ -31,6 +31,6 @@
       <source path='/dev/ttyS2'/>
       <target type='serial' port='0'/>
     </console>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 4335f43f355a82aa86cf957b06d876467883b248..e4b039651bdb67a2ba94d418dd9850f35a7a419d 100644 (file)
@@ -31,6 +31,6 @@
       <source path='/tmp/serial.log'/>
       <target type='serial' port='0'/>
     </console>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 482928559476ca0382b4d51ca027035cbfcc4975..8bce8f5f9dc765446f3e037316885ee2ca44a0dd 100644 (file)
@@ -33,6 +33,6 @@
     <console type='pty'>
       <target type='serial' port='0'/>
     </console>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index d2af760ccb54cc59a74007f99205516d1ec7e4b1..1de23051507f336907746ad48c14e69202ce923b 100644 (file)
@@ -29,6 +29,6 @@
     <console type='pty'>
       <target type='serial' port='0'/>
     </console>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 06ce154ed50fa135b91dc2d63e54d1b2d766d8d1..5a667d79945ae28614095aa1d7878203d71b6d21 100644 (file)
@@ -33,6 +33,6 @@
       <protocol type='telnet'/>
       <target type='serial' port='0'/>
     </console>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 493f8a107343b2ebb9351db25672a1e54f9e103a..cc8bcfeafbb7a04e4bbbcacdfa7f1f3613a4caa3 100644 (file)
@@ -33,6 +33,6 @@
       <protocol type='raw'/>
       <target type='serial' port='0'/>
     </console>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index d5259652da57096eb6a815eaf79432c7e929cd52..8cc2f9c570266b4cfc5999542da17201c4f19f25 100644 (file)
@@ -37,6 +37,6 @@
       <source mode='connect' host='127.0.0.1' service='9998'/>
       <target type='serial' port='0'/>
     </console>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 8aa052d956e73f570b6945030ff41f68e672f17d..6bb1ce96020651f08c132e07c3deddc855bfc53b 100644 (file)
@@ -31,6 +31,6 @@
       <source mode='connect' path='/tmp/serial.sock'/>
       <target type='serial' port='0'/>
     </console>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 12107d723cde26611b5db168464789e5c75407b0..ea789abc8219872359bc88b0a4c19285a8e75e23 100644 (file)
@@ -29,6 +29,6 @@
     <console type='vc'>
       <target type='serial' port='0'/>
     </console>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 55bf16d398613509a4acf1e34ce795e7876cef76..365e9dfe1b7f375876468daadcf3dfa254442dc6 100644 (file)
@@ -26,6 +26,6 @@
     <controller type='usb' index='0'/>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 0bd1185e74b9d5009c48d6b7ad8aea772717399f..734900316e2ae197812568aa381a5fbe13fa6b04 100644 (file)
@@ -27,6 +27,6 @@
     <sound model='es1370'/>
     <sound model='sb16'/>
     <sound model='ac97'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index 32d57e06bfbe2206a4870dc0d569bbd123af2d09..2bbb826b81604da8a9c527f00044614e2f38adad 100644 (file)
@@ -24,6 +24,6 @@
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
     <watchdog model='ib700' action='poweroff'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index d8782d8d84d8b5f068f3ded47758b3fbdb0d6dab..4288d7cab6c2894c53234eea4508fb8685ca3b58 100644 (file)
@@ -632,7 +632,7 @@ mymain(void)
     DO_TEST_FAILURE("reboot-timeout-enabled", NONE);
 
     DO_TEST("bios", QEMU_CAPS_DEVICE, QEMU_CAPS_SGA);
-    DO_TEST("clock-utc", NONE);
+    DO_TEST("clock-utc", QEMU_CAPS_NODEFCONFIG, QEMU_CAPS_DEVICE);
     DO_TEST("clock-localtime", NONE);
     DO_TEST("clock-localtime-basis-localtime", QEMU_CAPS_RTC);
     DO_TEST("clock-variable", QEMU_CAPS_RTC);