render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
9119d9
From f5cbe13c52948be555c63f9b120ac5448075c072 Mon Sep 17 00:00:00 2001
9119d9
Message-Id: <f5cbe13c52948be555c63f9b120ac5448075c072@dist-git>
9119d9
From: John Ferlan <jferlan@redhat.com>
9119d9
Date: Thu, 18 Sep 2014 09:30:01 -0400
9119d9
Subject: [PATCH] qemu: Need to check for capability before query
9119d9
9119d9
https://bugzilla.redhat.com/show_bug.cgi?id=1101574
9119d9
9119d9
Prior to trying the query-iothreads call - check if the qemu has
9119d9
the capability
9119d9
9119d9
Signed-off-by: John Ferlan <jferlan@redhat.com>
9119d9
(cherry picked from commit 76a81b1d312f10ec4d66b05d39f4d75869f0f121)
9119d9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
9119d9
---
9119d9
 src/qemu/qemu_process.c | 3 +++
9119d9
 1 file changed, 3 insertions(+)
9119d9
9119d9
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
9119d9
index a2304dc..3b43912 100644
9119d9
--- a/src/qemu/qemu_process.c
9119d9
+++ b/src/qemu/qemu_process.c
9119d9
@@ -2104,6 +2104,9 @@ qemuProcessDetectIOThreadPIDs(virQEMUDriverPtr driver,
9119d9
     int ret = -1;
9119d9
     size_t i;
9119d9
 
9119d9
+    if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_OBJECT_IOTHREAD))
9119d9
+        return 0;
9119d9
+
9119d9
     /* Get the list of IOThreads from qemu */
9119d9
     if (qemuDomainObjEnterMonitorAsync(driver, vm, asyncJob) < 0)
9119d9
         goto cleanup;
9119d9
-- 
9119d9
2.1.0
9119d9