]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: QMP capabilities support starts with 1.2
authorDoug Goldstein <cardoe@cardoe.com>
Thu, 1 Nov 2012 22:15:35 +0000 (17:15 -0500)
committerEric Blake <eblake@redhat.com>
Thu, 1 Nov 2012 23:50:02 +0000 (17:50 -0600)
Per the code comment in qemuCapsInitQMPBasic() and commit 43e23c7, we
should only use QMP for capabilities probing starting with 1.2 and
newer.  The old code had dead logic that probed on 1.0 and newer.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_capabilities.c

index 271273cba34a04874885a5efe13383c59f27c95c..9396a9b704d54396d952222b6fe597a66ef5b7b3 100644 (file)
@@ -2314,7 +2314,7 @@ qemuCapsInitQMP(qemuCapsPtr caps,
     VIR_DEBUG("Got version %d.%d.%d (%s)",
               major, minor, micro, NULLSTR(package));
 
-    if (!(major >= 1 || (major == 1 && minor >= 1))) {
+    if (major < 1 || (major == 1 && minor < 2)) {
         VIR_DEBUG("Not new enough for QMP capabilities detection");
         ret = 0;
         goto cleanup;