diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index e9ecd940465481ae6fbcf4ec0f4e256ce65b2b70..34accb2e3786cf4efee7de557dc7a16355f2dea7 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -1134,6 +1134,10 @@ qemuDomainAttachNetDevice(virQEMUDriverPtr driver, } } + if (net->mtu && + virNetDevSetMTU(net->ifname, net->mtu) < 0) + goto cleanup; + for (i = 0; i < tapfdSize; i++) { if (qemuSecuritySetTapFDLabel(driver->securityManager, vm->def, tapfd[i]) < 0)