[libvirt] [PATCH v4 02/13] Implement common keepalive handling