mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
libxenevtchn will provide a stable API and ABI for accessing the evtchn device. The functions are moved into the xenevtchn namespace to make a clean break from libxc and avoid ambiguity regarding which interfaces are stable. All in-tree users are updated to use the new names. Upon request (via #define XC_WANT_COMPAT_EVTCHN_API) libxenctrl will provide a compat API for the old names. This is used by qemu-xen for the time being. qemu-xen-traditional is updated in lockstep. This leaves a few event channel related functions which go via privcmd (EVTCHNOP) rather than ioctls on the /dev/xen/evtchn device in libxenctrl. Specifically: - xc_evtchn_alloc_unbound - xc_evtchn_reset - xc_evtchn_status Note that xc_evtchn_alloc_unbound's functionality is also provided by xenevtchn_bind_unbound_port() (née xc_evtchn_bind_unbound_port) and is probably redundant. These functions do not appear to be needed by qemu-dm, qemu-pv (provision of device model to HVM guests and PV backends respectively) or by libvchan suggesting they are not needed by non-toolstack uses of event channels. QEMU does use these in hw/xenpv/xen_domainbuild.c but that is a "toolstack use". 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> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> [ ijc -- updated MINIOS_UPSTREAM_REVISION and QEMU_TRADITIONAL_REVISION ]
50 lines
1.9 KiB
Python
50 lines
1.9 KiB
Python
|
|
from distutils.core import setup, Extension
|
|
import os, sys
|
|
|
|
XEN_ROOT = "../.."
|
|
|
|
extra_compile_args = [ "-fno-strict-aliasing", "-Werror" ]
|
|
|
|
PATH_XEN = XEN_ROOT + "/tools/include"
|
|
PATH_LIBXENTOOLLOG = XEN_ROOT + "/tools/libs/toollog"
|
|
PATH_LIBXENEVTCHN = XEN_ROOT + "/tools/libs/evtchn"
|
|
PATH_LIBXC = XEN_ROOT + "/tools/libxc"
|
|
PATH_LIBXL = XEN_ROOT + "/tools/libxl"
|
|
PATH_XENSTORE = XEN_ROOT + "/tools/xenstore"
|
|
|
|
xc = Extension("xc",
|
|
extra_compile_args = extra_compile_args,
|
|
include_dirs = [ PATH_XEN,
|
|
PATH_LIBXENTOOLLOG + "/include",
|
|
PATH_LIBXENEVTCHN + "/include",
|
|
PATH_LIBXC + "/include",
|
|
"xen/lowlevel/xc" ],
|
|
library_dirs = [ PATH_LIBXC ],
|
|
libraries = [ "xenctrl", "xenguest" ],
|
|
depends = [ PATH_LIBXC + "/libxenctrl.so", PATH_LIBXC + "/libxenguest.so" ],
|
|
extra_link_args = [ "-Wl,-rpath-link="+PATH_LIBXENTOOLLOG ],
|
|
sources = [ "xen/lowlevel/xc/xc.c" ])
|
|
|
|
xs = Extension("xs",
|
|
extra_compile_args = extra_compile_args,
|
|
include_dirs = [ PATH_XEN, PATH_XENSTORE + "/include", "xen/lowlevel/xs" ],
|
|
library_dirs = [ PATH_XENSTORE ],
|
|
libraries = [ "xenstore" ],
|
|
depends = [ PATH_XENSTORE + "/libxenstore.so" ],
|
|
sources = [ "xen/lowlevel/xs/xs.c" ])
|
|
|
|
plat = os.uname()[0]
|
|
modules = [ xc, xs ]
|
|
|
|
setup(name = 'xen',
|
|
version = '3.0',
|
|
description = 'Xen',
|
|
packages = ['xen',
|
|
'xen.migration',
|
|
'xen.lowlevel',
|
|
],
|
|
ext_package = "xen.lowlevel",
|
|
ext_modules = modules
|
|
)
|