tools: Refactor hypercall calling wrappers into libxencall.
authorIan Campbell <ian.campbell@citrix.com>
Mon, 1 Jun 2015 15:20:09 +0000 (16:20 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 22 Jan 2016 12:23:30 +0000 (12:23 +0000)
commit3e9b0d540837c4641783adcc5449d3762469ff9d
treefc386700cee3be4175e5d3de859e8512c1c60d24
parent7a3543df838c33db28262e5eb4560d615a89bfe6
tools: Refactor hypercall calling wrappers into libxencall.

libxencall will provide a stable API and ABI for calling hypercalls
(although those hypercalls themselves may not have a stable API). As
well as the hypercall buffer infrastructure needed in order to safely
provide pointer arguments to hypercalls.

libxenctrl encapsulates a instance of this interface, so users of that
library are not currently subjected to any actual changes. However all
hypercalls made internally by libxc now use the correct interface. It
is expected that most users of this library will be other libraries
providing a higher level interface, rather than applications directly.

Only the basic functionality to allocate hypercall safe memory is
moved, the type safe stuff and bounce buffers remain in libxc.

Note that the functionality to map foreign pages using privcmd is not
yet moved, meaning that an xc_interface will now contain two open
privcmd file descriptors. Foreign memory mapping is logically separate
functionality and will be moved into its own library.

The new library uses a version script to ensure that only expected
symbols are exported and to version them such that ABI guarantees can
be kept in the future.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
[ ijc -- updated MINIOS_UPSTREAM_REVISION and QEMU_TRADITIONAL_REVISION ]
37 files changed:
.gitignore
Config.mk
stubdom/Makefile
tools/Makefile
tools/Rules.mk
tools/libs/Makefile
tools/libs/call/Makefile [new file with mode: 0644]
tools/libs/call/buffer.c [new file with mode: 0644]
tools/libs/call/core.c [new file with mode: 0644]
tools/libs/call/freebsd.c [new file with mode: 0644]
tools/libs/call/include/xencall.h [new file with mode: 0644]
tools/libs/call/libxencall.map [new file with mode: 0644]
tools/libs/call/linux.c [new file with mode: 0644]
tools/libs/call/minios.c [new file with mode: 0644]
tools/libs/call/netbsd.c [new file with mode: 0644]
tools/libs/call/private.h [new file with mode: 0644]
tools/libs/call/solaris.c [new file with mode: 0644]
tools/libxc/Makefile
tools/libxc/xc_altp2m.c
tools/libxc/xc_domain.c
tools/libxc/xc_evtchn.c
tools/libxc/xc_flask.c
tools/libxc/xc_freebsd_osdep.c
tools/libxc/xc_gnttab.c
tools/libxc/xc_hcall_buf.c
tools/libxc/xc_kexec.c
tools/libxc/xc_linux_osdep.c
tools/libxc/xc_minios.c
tools/libxc/xc_misc.c
tools/libxc/xc_netbsd.c
tools/libxc/xc_private.c
tools/libxc/xc_private.h
tools/libxc/xc_solaris.c
tools/libxc/xc_tmem.c
tools/misc/Makefile
tools/xcutils/Makefile
tools/xenpaging/Makefile