<div dir="ltr"><div>Hi there,</div><div><br></div>I have a question about the Qos support status for different type interfaces. <div>Some types of interface do not support Qos, such as hostdev, user type, mcast type, but the behavior are different, for hostdev, the guest can not start with a meaningful error message, but for other types, vm can start successfully with a warning message in the libvirtd log. I doubt that if it is necessary to keep the behavior consistent for these different types?</div><div><br></div><div><div>There are 2 history bugs for them, I should have thought further and asked early when testing the bugs. </div><div></div><div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1319044" style="color:rgb(0,136,206);text-decoration-line:none;font-family:"Open Sans",Helvetica,sans-serif;outline:none">Bug 1319044</a><span style="color:rgb(0,0,0);font-family:"Open Sans",Helvetica,sans-serif;background-color:rgb(208,208,208)"> </span><span id="gmail-summary_container" style="color:rgb(0,0,0);font-family:"Open Sans",Helvetica,sans-serif">- <span id="gmail-short_desc_nonedit_display">log error when <bandwidth> requested on a <interface type='hostdev'></span></span><br></div><div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1524230" style="color:rgb(0,136,206);text-decoration-line:none;font-family:"Open Sans",Helvetica,sans-serif;outline:none">Bug 1524230</a><span style="color:rgb(0,0,0);font-family:"Open Sans",Helvetica,sans-serif;background-color:rgb(208,208,208)"> </span><span id="gmail-summary_container" style="color:rgb(0,0,0);font-family:"Open Sans",Helvetica,sans-serif">- <span id="gmail-short_desc_nonedit_display">vhostuser type interface do not support bandwidth, but no warning message</span></span></div></div><div><span style="color:rgb(0,0,0);font-family:"Open Sans",Helvetica,sans-serif"><span><br></span></span></div><div><span style="color:rgb(0,0,0);font-family:"Open Sans",Helvetica,sans-serif"><span>Thank you for looking into this and very appreciate your feedback!</span></span></div><div><span style="color:rgb(0,0,0);font-family:"Open Sans",Helvetica,sans-serif"><span><br></span></span></div><div><div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>1. start vm with user type interface set with Qos:</div><div> <interface type='user'><br>      <mac address='52:54:00:3e:ec:14'/><br>      <bandwidth><br>        <inbound average='1000' peak='5000' burst='5120'/><br>        <outbound average='128' peak='256' burst='256'/><br>      </bandwidth><br>      <model type='rtl8139'/><br>      <address type='pci' domain='0x0000' bus='0x07' slot='0x01' function='0x0'/><br>    </interface><br></div><div><br># cat /var/log/libvirt/libvirtd.log | grep bandwidth<br>2021-03-26 10:47:11.452+0000: 20185: warning : qemuBuildInterfaceCommandLine:8223 : setting bandwidth on interfaces of type 'user' is not implemented yet</div><div><br></div><div>2. start with hostdev type interface with Qos setting:</div><div><interface type='hostdev' managed='yes'><br>      <mac address='52:54:00:07:27:b0'/><br>      <source><br>        <address type='pci' domain='0x0000' bus='0x82' slot='0x10' function='0x6'/><br>      </source><br>      <bandwidth><br>        <inbound average='1000' peak='5000' burst='5120'/><br>        <outbound average='128' peak='256' burst='256'/><br>      </bandwidth><br>      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/><br>    </interface><br></div><div><br></div><div># virsh start rh <br>error: Failed to start domain 'rh'<br>error: unsupported configuration: interface 52:54:00:07:27:b0 - bandwidth settings are not supported for hostdev interfaces<br><br></div><div><font color="#000000" face="Open Sans, Helvetica, sans-serif"><span style="font-size:16.25px"><b><br></b></span></font>-------<br>Best Regards,<br>Yalan Zhang<br>IRC: yalzhang<br></div></div></div></div></div></div></div></div>