From: Konrad Rzeszutek Wilk Subject: [PATCH RFC v1] Fix up libxc errno and return mismatch. Date: Fri, 13 Mar 2015 15:31:09 -0400 Message-ID: <1426275083-8454-1-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YWVJO-0006h6-7K for xen-devel@lists.xenproject.org; Fri, 13 Mar 2015 19:31:58 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, wei.liu2@citrix.com List-Id: xen-devel@lists.xenproject.org Dear Maintainers of Libxl, This is all started with me using 'xc_domain_get_tsc_info' as template and the realizing that libxl should really return -1 for errors and we should stash the Exx value in errno. As I started fixing this up the job got bigger and bigger. There are still some in the migration cases but that can wait for another burst. Anyhow please see the patches. Most of them are pretty simple - the do_memory_op is the most complex as it is used by many of the APIs, as such if the maintainer does not wish to spend four hours double-checking that I did not mess up - please just drop that patch from your mind. tools/libxc/xc_core_arm.c | 15 ++++++++-- tools/libxc/xc_core_x86.c | 22 +++++++++++--- tools/libxc/xc_cpupool.c | 4 +-- tools/libxc/xc_dom_x86.c | 7 +++-- tools/libxc/xc_domain.c | 6 ++-- tools/libxc/xc_domain_restore.c | 2 +- tools/libxc/xc_domain_save.c | 8 ++++- tools/libxc/xc_offline_page.c | 42 +++++++++++++++++--------- tools/libxc/xc_physdev.c | 12 +++++--- tools/libxc/xc_pm.c | 54 ++++++++++++++++++++++------------ tools/libxc/xc_private.c | 6 ++-- tools/libxc/xc_tmem.c | 16 +++++++--- tools/libxc/xg_save_restore.h | 3 ++ tools/libxl/libxl.c | 4 +-- tools/libxl/libxl_x86.c | 9 ++---- tools/misc/xen-hptool.c | 6 ++-- tools/misc/xen-mfndump.c | 2 +- tools/tests/mem-sharing/memshrtool.c | 12 ++++++-- tools/xenstat/libxenstat/src/xenstat.c | 5 ++-- 19 files changed, 161 insertions(+), 74 deletions(-)