[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH RFC v1] Fix up libxc errno and return mismatch.



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(-)


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.