render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
c8c376
From 6e6c57bacc0072c0ca152280c7a37340be76787a Mon Sep 17 00:00:00 2001
c8c376
Message-Id: <6e6c57bacc0072c0ca152280c7a37340be76787a@dist-git>
c8c376
From: Michal Privoznik <mprivozn@redhat.com>
c8c376
Date: Thu, 15 Dec 2016 18:17:46 +0100
c8c376
Subject: [PATCH] qemuDomainAttachNetDevice: Enable multiqueue for vhost-user
c8c376
c8c376
RHEL-7.4: https://bugzilla.redhat.com/show_bug.cgi?id=1386976
c8c376
RHEL-7.3.z: https://bugzilla.redhat.com/show_bug.cgi?id=1404186
c8c376
c8c376
We have everything ready. Actually the only limitation was our
c8c376
check that denied hotplug of vhost-user.
c8c376
c8c376
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
c8c376
(cherry picked from commit 21db4ab0528ca6c78744148ca4b7515aaeb4d0bf)
c8c376
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
c8c376
---
c8c376
 src/qemu/qemu_hotplug.c | 3 ++-
c8c376
 1 file changed, 2 insertions(+), 1 deletion(-)
c8c376
c8c376
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
c8c376
index 573cb8c93..7e4a653e6 100644
c8c376
--- a/src/qemu/qemu_hotplug.c
c8c376
+++ b/src/qemu/qemu_hotplug.c
c8c376
@@ -926,7 +926,8 @@ qemuDomainAttachNetDevice(virQEMUDriverPtr driver,
c8c376
         !(actualType == VIR_DOMAIN_NET_TYPE_NETWORK ||
c8c376
           actualType == VIR_DOMAIN_NET_TYPE_BRIDGE ||
c8c376
           actualType == VIR_DOMAIN_NET_TYPE_DIRECT ||
c8c376
-          actualType == VIR_DOMAIN_NET_TYPE_ETHERNET)) {
c8c376
+          actualType == VIR_DOMAIN_NET_TYPE_ETHERNET ||
c8c376
+          actualType == VIR_DOMAIN_NET_TYPE_VHOSTUSER)) {
c8c376
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
c8c376
                        _("Multiqueue network is not supported for: %s"),
c8c376
                        virDomainNetTypeToString(actualType));
c8c376
-- 
c8c376
2.11.0
c8c376