[libvirt] [PATCH 08/17] conf: move chardev protocol parsing to separate function