Re: [libvirt] [REPOST PATCH 2/2] vz: Use virDomainObjListFindBy{UUID|ID}Ref

2018-04-20 Thread Nikolay Shirokovskiy
On 20.04.2018 14:44, John Ferlan wrote: > > > On 04/20/2018 02:53 AM, Nikolay Shirokovskiy wrote: >> >> >> On 02.04.2018 16:21, John Ferlan wrote: >>> For vzDomainLookupByID and vzDomainLookupByUUID let's >>> return a locked and referenced @vm object so that callers >>> can then use the common

Re: [libvirt] [REPOST PATCH 2/2] vz: Use virDomainObjListFindBy{UUID|ID}Ref

2018-04-20 Thread John Ferlan
On 04/20/2018 02:53 AM, Nikolay Shirokovskiy wrote: > > > On 02.04.2018 16:21, John Ferlan wrote: >> For vzDomainLookupByID and vzDomainLookupByUUID let's >> return a locked and referenced @vm object so that callers >> can then use the common and more consistent virDomainObjEndAPI >> in order

Re: [libvirt] [REPOST PATCH 2/2] vz: Use virDomainObjListFindBy{UUID|ID}Ref

2018-04-20 Thread Nikolay Shirokovskiy
On 02.04.2018 16:21, John Ferlan wrote: > For vzDomainLookupByID and vzDomainLookupByUUID let's > return a locked and referenced @vm object so that callers > can then use the common and more consistent virDomainObjEndAPI > in order to handle cleanup rather than needing to know that the >