[PATCH v3 3/3] conf: domain: Introduce and use virDomainObjGetMessages()