[libvirt] [PATCHv2 03/15] util: new function for scaling numbers