[libvirt] [RFC PATCHv2 4/n] snapshot: actually compute branch definition from XML