From: Michal Privoznik Date: Tue, 28 Feb 2017 16:49:49 +0000 (+0100) Subject: qemuDomainAttachNetDevice: Support attach of type="user" X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec8d54f494ecce5e6b28e20c85cfa7f1d2fefc2a;p=thirdparty%2Flibvirt.git qemuDomainAttachNetDevice: Support attach of type="user" https://bugzilla.redhat.com/show_bug.cgi?id=1420668 This has worked in previous releases. My commit c266b60440 broke it. Signed-off-by: Michal Privoznik (cherry picked from commit 9d87f769726bd5714eb6a930379d8b4c53311196) Signed-off-by: Michal Privoznik --- diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index f2e98469e0..13a5b4d177 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -1103,6 +1103,9 @@ qemuDomainAttachNetDevice(virQEMUDriverPtr driver, break; case VIR_DOMAIN_NET_TYPE_USER: + /* No preparation needed. */ + break; + case VIR_DOMAIN_NET_TYPE_SERVER: case VIR_DOMAIN_NET_TYPE_CLIENT: case VIR_DOMAIN_NET_TYPE_MCAST: