From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 05/29] libxl: suspend: Return correct error from callbacks Date: Tue, 24 Mar 2015 10:58:06 +0000 Message-ID: <1427194686.21742.338.camel@citrix.com> References: <1423599016-32639-1-git-send-email-ian.jackson@eu.citrix.com> <1423599016-32639-6-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1423599016-32639-6-git-send-email-ian.jackson@eu.citrix.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: xen-devel@lists.xensource.com, Euan Harris List-Id: xen-devel@lists.xenproject.org On Tue, 2015-02-10 at 20:09 +0000, Ian Jackson wrote: > If a suspend callback fails, it has a libxl error code in its hand. > However we must return to libxc the values that libxc expects. So we > stash the libxl error code in dss->rc and fish it out again after > libxc returns from the suspend call. > > While we're here, abolish the now-redundant `ok' variable in > remus_devices_postsuspend_cb. > > The overall functional change is that libxl_domain_save now completes > with the correct error code as determined when the underlying failure > happened. (Usually this is, still, ERROR_FAIL.) > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell