tools/libxc: Remove osdep indirection for privcmd
authorIan Campbell <ian.campbell@citrix.com>
Thu, 11 Jun 2015 16:39:00 +0000 (17:39 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 22 Jan 2016 12:22:38 +0000 (12:22 +0000)
commit7a3543df838c33db28262e5eb4560d615a89bfe6
tree8f14fedddc017e60e1ff90b14a368a43020d9e02
parenta71ad0feada081b80beb85702e8039bcbc847b73
tools/libxc: Remove osdep indirection for privcmd

The alternative backend (a xen-api/xapi shim) is no longer around and
so this stuff is now just baggage which is getting in the way of
refactoring libxenctrl.

Nested virt probably suffices for this use case now.

This was the last component of the osdep infrastructure, so all the
dynamic loading etc stuff all falls away too.

As part of this I was forced to investigate the twisty
xc_map_foreign_* maze, which I have added to the
toolstack-library-apis doc in the hopes of doing something sensible.

NetBSD and Solaris now call xc_map_foreign_bulk_compat directly from
their xc_map_foreign_bulk, which could have been achieved by using
some ifdefs around a renamed function. This will fall out in the wash
when these functions move to their own library.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: David Scott <dave.scott@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
23 files changed:
config/FreeBSD.mk
config/NetBSD.mk
config/NetBSDRump.mk
config/StdGNU.mk
config/SunOS.mk
tools/libxc/Makefile
tools/libxc/include/xenctrl.h
tools/libxc/include/xenctrlosdep.h [deleted file]
tools/libxc/xc_foreign_memory.c
tools/libxc/xc_freebsd_osdep.c
tools/libxc/xc_hcall_buf.c
tools/libxc/xc_linux_osdep.c
tools/libxc/xc_minios.c
tools/libxc/xc_netbsd.c
tools/libxc/xc_private.c
tools/libxc/xc_private.h
tools/libxc/xc_solaris.c
tools/libxc/xenctrl_osdep_ENOSYS.c [deleted file]
tools/ocaml/libs/xc/xenctrl.ml
tools/ocaml/libs/xc/xenctrl.mli
tools/ocaml/libs/xc/xenctrl_stubs.c
tools/ocaml/xenstored/domains.ml
tools/ocaml/xenstored/xenstored.ml