Re: [libvirt] [PATCH V4 6/6] libxlDomainStart: correct cleanup after failure

2016-03-28 Thread Chun Yan Liu
>>> On 3/29/2016 at 09:00 AM, in message <56f9d3c0.7020...@suse.com>, Jim Fehlig wrote: > On 03/21/2016 02:11 AM, Chunyan Liu wrote: > > Functions like libxlNetworkPrepareDevices, libxlBuildDomainConfig, > > virHostdevPrepareDomainDevices will allocate and reserve some > >

Re: [libvirt] [PATCH V4 6/6] libxlDomainStart: correct cleanup after failure

2016-03-28 Thread Jim Fehlig
On 03/21/2016 02:11 AM, Chunyan Liu wrote: > Functions like libxlNetworkPrepareDevices, libxlBuildDomainConfig, > virHostdevPrepareDomainDevices will allocate and reserve some > resources. In libxlDomainStart, after calling these functions, > in case of failure, we need to call libxlDomainCleanup

[libvirt] [PATCH V4 6/6] libxlDomainStart: correct cleanup after failure

2016-03-21 Thread Chunyan Liu
Functions like libxlNetworkPrepareDevices, libxlBuildDomainConfig, virHostdevPrepareDomainDevices will allocate and reserve some resources. In libxlDomainStart, after calling these functions, in case of failure, we need to call libxlDomainCleanup to check and release resoureces. Besides, since