]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Need to check for capability before query
authorJohn Ferlan <jferlan@redhat.com>
Tue, 16 Sep 2014 09:57:28 +0000 (05:57 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 16 Sep 2014 10:08:20 +0000 (06:08 -0400)
Prior to trying the query-iothreads call - check if the qemu has
the capability

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_process.c

index daca7c1fb1aee113e522d056006b1917062bf152..f39174355c73200d110f49647dcedf906a905d0f 100644 (file)
@@ -2105,6 +2105,9 @@ qemuProcessDetectIOThreadPIDs(virQEMUDriverPtr driver,
     int ret = -1;
     size_t i;
 
+    if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_OBJECT_IOTHREAD))
+        return 0;
+
     /* Get the list of IOThreads from qemu */
     if (qemuDomainObjEnterMonitorAsync(driver, vm, asyncJob) < 0)
         goto cleanup;