On 30.03.2014 14:46, Pradeep Kiruvale wrote:
Hi All,
I am new to QEMU/libvirt
I was starting to learn the libvirt code,I was browsing the code how
the guest network bandwidth to be set like we mention <inbound> <outbound>
tags in the xml,but where in code exactly these values set to the guest
interface.
I browsed the code a lot could not find it.Please help to understand how
this works.
The bandwidth is set in virNetDevBandwidthSet() function:
http://libvirt.org/git/?p=libvirt.git;a=blob;f=src/util/virnetdevbandwidt...
The basic idea is to call /sbin/tc a few times with the correct
arguments (the path to the binary may change through different systems).
Michal