libxencall: osdep_hypercall() should return long
authorJan Beulich <jbeulich@suse.com>
Thu, 24 Jun 2021 14:38:37 +0000 (16:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 24 Jun 2021 14:38:37 +0000 (16:38 +0200)
commit6409210a5f51860cb17b5e0f97debe164dab26d7
treeac53589dd3fd016d1e9ec1cd4bf06c188e6c54a6
parent198a2bc6f149ca41e16d90fc73de2c81affe4490
libxencall: osdep_hypercall() should return long

Some hypercalls, memory-op in particular, can return values requiring
more than 31 bits to represent. Hence the underlying layers need to make
sure they won't truncate such values. (Note that for Solaris the
function also gets renamed, to match the other OSes.)

Due to them merely propagating ioctl()'s return value, this change is
benign on Linux and Solaris. IOW there's an actual effect here only for
the BSDs and MiniOS, but even then further adjustments are needed at the
xencall<N>() level.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <iwj@xenproject.org>
tools/libs/call/freebsd.c
tools/libs/call/linux.c
tools/libs/call/minios.c
tools/libs/call/netbsd.c
tools/libs/call/private.h
tools/libs/call/solaris.c