[PATCH v4 1/4] conf: domain: Introduce and use virDomainObjGetMessages()