On Sun, Mar 30, 2014 at 02:35:01PM +0200, Pradeep Kiruvale wrote:
>  I am implementing some functionality where in I need to set the bandwidth
> control for my guest vms.Please let me know how can I do it.
> 
>  I am looking into net/net.c file,I dint find any leads.I tried two ways.
> 
>  I am trying to find how to set virtual nics(in my case e1000) speed,I did
> not find any ways to do that.
> 
>  If I devide the packet into smaller packets in  qemu_deliver_packet()
> function
> I am not able to transfer the other half of the packet.
> 
> Please let me know how can I resolve this.

The simplest way is to use libvirt's network Quality-of-Service
features.  You can specify bandwidth limits:
http://libvirt.org/formatdomain.html#elementQoS

Stefan

Reply via email to