From ba804d9fd1e4a0b514375595c171f62ebced213d Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Thu, 1 Nov 2012 17:15:35 -0500 Subject: [PATCH] qemu: QMP capabilities support starts with 1.2 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 --- src/qemu/qemu_capabilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 271273cba3..9396a9b704 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -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; -- GitLab