render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
38f2fd
From 4d4ed9e83c4839f3cad7460bff63328e4e553e02 Mon Sep 17 00:00:00 2001
38f2fd
Message-Id: <4d4ed9e83c4839f3cad7460bff63328e4e553e02@dist-git>
38f2fd
From: Martin Kletzander <mkletzan@redhat.com>
38f2fd
Date: Mon, 23 Nov 2015 12:46:36 +0100
38f2fd
Subject: [PATCH] qemu: Support vhost-user-multiqueue with QEMU 2.3
38f2fd
38f2fd
RHEL-only
38f2fd
38f2fd
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1207692
38f2fd
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1284416
38f2fd
38f2fd
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
38f2fd
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
38f2fd
---
38f2fd
 src/qemu/qemu_capabilities.c | 7 +++++--
38f2fd
 1 file changed, 5 insertions(+), 2 deletions(-)
38f2fd
38f2fd
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
38f2fd
index 12af0dc..943aa5f 100644
38f2fd
--- a/src/qemu/qemu_capabilities.c
38f2fd
+++ b/src/qemu/qemu_capabilities.c
38f2fd
@@ -3393,8 +3393,11 @@ virQEMUCapsInitQMPMonitor(virQEMUCapsPtr qemuCaps,
38f2fd
         virQEMUCapsSet(qemuCaps, QEMU_CAPS_CPU_AARCH64_OFF);
38f2fd
 
38f2fd
     /* vhost-user supports multi-queue from v2.4.0 onwards,
38f2fd
-     * but there is no way to query for that capability */
38f2fd
-    if (qemuCaps->version >= 2004000)
38f2fd
+     * but there is no way to query for that capability
38f2fd
+     *
38f2fd
+     * RHEL-only: The change was back-ported to earlier QEMU version,
38f2fd
+     * particularly 2.3, in BZ 1276100 */
38f2fd
+    if (qemuCaps->version >= 2003000)
38f2fd
         virQEMUCapsSet(qemuCaps, QEMU_CAPS_VHOSTUSER_MULTIQUEUE);
38f2fd
 
38f2fd
     if (virQEMUCapsProbeQMPCommands(qemuCaps, mon) < 0)
38f2fd
-- 
38f2fd
2.6.3
38f2fd