[libvirt] [PATCH 1/2] conf: introduce a new function to add check avoid losing track