x86/p2m: error code propagation
authorMukesh Rathor <mukesh.rathor@oracle.com>
Mon, 14 Apr 2014 10:47:29 +0000 (12:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Apr 2014 10:47:29 +0000 (12:47 +0200)
commit561e1dc85e6176c3d5b0a665b8ed4ff9e33cef1f
tree069149d06ee43096e1a8038a78ceee5310f41170
parent11f7c1ff85dfb751d53560eef6af3a77d316eec4
x86/p2m: error code propagation

Because some of the leaf p2m functions return 0 for failure and
TRUE for success, the real errno is lost. We change some of those
functions to return proper -errno. Also, any code in the immediate
vicinity that is in coding style violation is fixed up.

This patch doesn't change any functionality.

Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/domctl.c
xen/arch/x86/mm/hap/nested_hap.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pod.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c