switch internal hypercall restart indication from -EAGAIN to -ERESTART
authorJan Beulich <jbeulich@suse.com>
Thu, 15 May 2014 13:26:12 +0000 (15:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 15 May 2014 13:26:12 +0000 (15:26 +0200)
commitf5118cae0a7f7748c6f08f557e2cfbbae686434a
tree2f4ba0015cb234d3abf4eafdef673666aa1cb67a
parent2cd6bf3653a2b983c90bf3af42d199c499db4165
switch internal hypercall restart indication from -EAGAIN to -ERESTART

-EAGAIN being a return value we want to return to the actual caller in
a couple of cases makes this unsuitable for restart indication, and x86
already developed two cases where -EAGAIN could not be returned as
intended due to this (which is being fixed here at once).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com
Acked-by: Aravind Gopalakrishnan<Aravind.Gopalakrishnan@amd.com>
Reviewed-by: Tim Deegan <tim@xen.org>
14 files changed:
xen/arch/arm/domain.c
xen/arch/arm/p2m.c
xen/arch/x86/domain.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/mm.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/p2m-pod.c
xen/arch/x86/traps.c
xen/common/compat/domain.c
xen/common/domain.c
xen/common/domctl.c
xen/include/asm-x86/mm.h