[libvirt] [PATCH v2 23/25] src/xenxs:Refactor char devices formating code