[PATCH 1/2] domain_conf: Separate virDomainOS clear into a function