[libvirt] [PATCH] split out logfile opening