[libvirt] [PATCH v4b] Add functions for handling exponential backoff loops.