[libvirt] [RFC v3 1/8] Resctrl: Add some utils functions