]> xenbits.xensource.com Git - xen.git/commit
libxc: use multicall for memory-op on Linux (and Solaris)
authorJan Beulich <jbeulich@suse.com>
Thu, 24 Jun 2021 14:39:26 +0000 (16:39 +0200)
committerIan Jackson <iwj@xenproject.org>
Thu, 19 Aug 2021 16:33:40 +0000 (17:33 +0100)
commitabfbb29830a25ddf31298d0eebd60e1d576a33c5
tree385b9d221ed005036959b889a7713a702e686a62
parentc3cf33b071081cab85c9bcea2e87f2db49dc644d
libxc: use multicall for memory-op on Linux (and Solaris)

Some sub-functions, XENMEM_maximum_gpfn and XENMEM_maximum_ram_page in
particular, can return values requiring more than 31 bits to represent.
Hence we cannot issue the hypercall directly when the return value of
ioctl() is used to propagate this value. This is the case for Linux
and Solaris (and hence needs changing), while the BSDs avoid using the
return value for dual purposes altogether, and MiniOS already wraps all
hypercalls in a multicall.

Suggested-by: Jürgen Groß <jgross@suse.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Jackson <iwj@xenproject.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Backport-requested-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 6f02d1ea4a109a32f346a5d1de63a42b291c354c)
tools/libs/ctrl/xc_private.c