[libvirt] [PATCH 10/17] conf: move mode parsing of chardev source to separate function