render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
404507
From 569531d2a63be9a2e4d3c234b22391e7fcd8e5cc Mon Sep 17 00:00:00 2001
404507
Message-Id: <569531d2a63be9a2e4d3c234b22391e7fcd8e5cc@dist-git>
38f2fd
From: Martin Kletzander <mkletzan@redhat.com>
38f2fd
Date: Mon, 23 Nov 2015 12:46:36 +0100
6ae9ed
Subject: [PATCH] RHEL: 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
404507
index 10ec0d4bb9..37a58b3640 100644
38f2fd
--- a/src/qemu/qemu_capabilities.c
38f2fd
+++ b/src/qemu/qemu_capabilities.c
404507
@@ -4761,8 +4761,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
 
3e5111
     /* smm option is supported from v2.4.0 */
38f2fd
-- 
404507
2.14.3
38f2fd