From: Wei Liu Subject: Re: [PATCH V5 30/32] libxl: consider force removal of device successful Date: Sun, 1 Jun 2014 20:46:25 +0100 Message-ID: <20140601194625.GI25584@zion.uk.xensource.com> References: <1400018054-26038-1-git-send-email-wei.liu2@citrix.com> <1400018054-26038-31-git-send-email-wei.liu2@citrix.com> <21371.29089.881960.874446@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21371.29089.881960.874446@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Wei Liu , ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, May 20, 2014 at 04:15:45PM +0100, Ian Jackson wrote: > Wei Liu writes ("[PATCH V5 30/32] libxl: consider force removal of device successful"): > > The current behavior of libxl to remove a device is, if the backend > > times out, libxl will initiate a force removal (destroy) of that device. > > However, libxl still returns failure in that case, even if the force > > removal was successful. > > > > If a device is force removed and the force removal succeeds, from > > guest's PoV this device is gone. Libxl should consider this a > > successful case as well. > > I think that the problem should be reported to the caller somehow. I > would invent a new libxl status code. > OK. I will see what I can do. Basically it means a new status code meaning "libxl is asked to remove that device, but backend times out, so libxl destroy that device instead". Wei. > Ian.