[libvirt] [PATCH 3/5] src/xenconfig: wrap common formatting code