All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC v1] Fix up libxc errno and return mismatch.
@ 2015-03-13 19:31 Konrad Rzeszutek Wilk
  2015-03-13 19:31 ` [PATCH RFC 01/14] libxc: Replaces tabs with spaces in xc_cpupool_freeinfo Konrad Rzeszutek Wilk
                   ` (13 more replies)
  0 siblings, 14 replies; 23+ messages in thread
From: Konrad Rzeszutek Wilk @ 2015-03-13 19:31 UTC (permalink / raw)
  To: xen-devel, ian.jackson, stefano.stabellini, ian.campbell,
	wei.liu2

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

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2015-03-16 15:15 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-13 19:31 [PATCH RFC v1] Fix up libxc errno and return mismatch Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 01/14] libxc: Replaces tabs with spaces in xc_cpupool_freeinfo Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 02/14] libxc: xc_core_arch_memory_map_get populate errno Konrad Rzeszutek Wilk
2015-03-13 20:20   ` Andrew Cooper
2015-03-13 20:34     ` Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 03/14] libxc: Fix xc_domain_get_tsc_info returning -Exx instead of -1 Konrad Rzeszutek Wilk
2015-03-13 19:40   ` Konrad Rzeszutek Wilk
2015-03-14  7:55     ` Ian Campbell
2015-03-16 14:11       ` Konrad Rzeszutek Wilk
2015-03-16 14:23         ` Ian Campbell
2015-03-16 14:38           ` Konrad Rzeszutek Wilk
2015-03-16 14:57             ` Ian Campbell
2015-03-13 19:31 ` [PATCH RFC 04/14] libxl: xc_physdev_map return -1 and populate errno Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 05/14] libxl: Return negative value and stash error in errno for xc_offline_page API Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 06/14] libxl: Fix xc_pm API calls to return negative error and stash error in errno Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 07/14] libxl: Fix xc_tmem_control to return proper error Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 08/14] libxl: Check xc_domain_maximum_gpfn for negative return values Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 09/14] libxl: Check xc_maximum_ram_page " Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 10/14] libxl: If xc_domain_add_to_physmap fails, include errno value Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 11/14] libxl: Print xc_domain_decrease_reservation proper " Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 12/14] libxl: Check xc_sharing_* for proper return values Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 13/14] libxl: Don't assign return value to errno for E820 get/set xc_ calls Konrad Rzeszutek Wilk
2015-03-13 19:31 ` [PATCH RFC 14/14] libxl: Fix do_memory_op to return negative value on errors Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.