[libvirt] [PATCH 0/3] Makes the code more compact