[libvirt] [PATCHv2 3/3] conf: Refactor virDomainDiskSourceDefParse