[libvirt] [PATCH] Use virDomainChrTypeFromString() instead of open coding