[libvirt PATCH 21/28] conf: Refactor virDomainDefOSValidate()