make steal_page() return a proper error value
authorJan Beulich <jbeulich@suse.com>
Fri, 23 Jun 2017 13:49:41 +0000 (15:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Jun 2017 13:49:41 +0000 (15:49 +0200)
commita15516c0cf21d7ac84799f1e2e500b0bb22d2300
tree7cf23b1b9c765c5e4abfaab80a7fc3b3d40664fa
parent4e59f578cb75f87182bb57d7a2c2df73ff2262bc
make steal_page() return a proper error value

... and use it where suitable (the tmem caller doesn't propagate an
error code). While it doesn't matter as much, also make donate_page()
follow suit on x86 (on ARM it already returns -ENOSYS).

Also move their declarations to common code and add __must_check.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/mm.c
xen/arch/x86/mm.c
xen/common/grant_table.c
xen/common/memory.c
xen/include/asm-arm/mm.h
xen/include/asm-x86/mm.h
xen/include/xen/mm.h