]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: enalbe hotplugging of macvtap device with multiqueue
authorShanzhi Yu <shyu@redhat.com>
Fri, 26 Feb 2016 07:02:46 +0000 (15:02 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Mar 2016 15:16:58 +0000 (16:16 +0100)
in commit 81a110, multiqueue for macvtap is enabled but forget
to support hotplugging enabled

Signed-off-by: Shanzhi Yu <shyu@redhat.com>
src/qemu/qemu_hotplug.c

index dc7626869332b641ea9106e6bf81ea69eb99d846..b580283d62734196da08d1ab48727b7bffde7b70 100644 (file)
@@ -892,10 +892,11 @@ int qemuDomainAttachNetDevice(virConnectPtr conn,
         goto cleanup;
     }
 
-    /* Currently nothing besides TAP devices supports multiqueue. */
+    /* Currently only TAP/macvtap devices supports multiqueue. */
     if (net->driver.virtio.queues > 0 &&
         !(actualType == VIR_DOMAIN_NET_TYPE_NETWORK ||
-          actualType == VIR_DOMAIN_NET_TYPE_BRIDGE)) {
+          actualType == VIR_DOMAIN_NET_TYPE_BRIDGE ||
+          actualType == VIR_DOMAIN_NET_TYPE_DIRECT)) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                        _("Multiqueue network is not supported for: %s"),
                        virDomainNetTypeToString(actualType));