diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index e69d083836..9b244ec4f2 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -11682,8 +11682,10 @@ qemuDomainSetInterfaceParameters(virDomainPtr dom, net->bandwidth, false, !virDomainNetTypeSharesHostView(net))); - ignore_value(virDomainNetBandwidthUpdate(net, - net->bandwidth)); + if (net->bandwidth) { + ignore_value(virDomainNetBandwidthUpdate(net, + net->bandwidth)); + } goto endjob; }