Commit Graph
168 Commits
Author SHA1 Message Date
Ian Jackson 85896a7c4d build: add autoconf to replace custom checks in tools/check
Added autotools magic to replace custom check scripts. The previous
checks have been ported to autoconf, and some additional ones have
been added (plus the suggestions from running autoscan). Two files are
created as a result from executing configure script, config/Tools.mk
and config.h.

conf/Tools.mk is included by tools/Rules.mk, and contains most of the
options previously defined in .config, that can now be set passing
parameters or defining environment variables when executing configure
script.

config.h is only used by libxl/xl to detect yajl_version.h.

[ tools/config.sub and config.guess copied from
  autotools-dev 20100122.1 from Debian squeeze i386,
  which is GPLv2.

  tools/configure generated using the included ./autogen.sh
  which ran autoconf 2.67-2 from Debian squeeze i386.  autoconf
  is GPLv3+ but has a special exception for the autoconf output;
  this exception applies to us and exempts us from complying
  with GPLv3+ for configure, which is good as Xen is GPL2 only.

  - Ian Jackson ]

Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Tested-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
2012-02-22 01:55:03 +00:00
Roger Pau Monne 9163062a39 tools/build: Introduce {PREPEND,APPEND}_{LIB,INCLUDES}
Create two new variables called APPEND_ and PREPEND_ to add compile
flags at the beginning or at the end of the search path.

Added a new semantic for user defined compile flags, here is the list
of possible options:

PREPEND_LIB: add libraries to the search path before xen
             (before xen installation folders).
PREPEND_INCLUDES: add headers to the search path before xen
                  (before xen installation folders).
APPEND_LIB: add libraries to the search path at the end
            (after all xen installation folders have been added).
APPEND_INCLUDES: add libraries to the search path at the end
                 (after all xen installation folders have been added).

EXTRA_INCLUDES and EXTRA_LIB can still be used, and they will have the
same effect as PREPEND_INCLUDES and PREPEND_LIB.

Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
2011-11-14 18:14:07 +00:00
Ian Campbell 61d0fe74c6 tools: Remove $(CFLAGS) from links lines.
The relevant variable in these circumstances is called $(LDFLAGS).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
2011-03-31 19:32:18 +01:00
Keir Fraser 6102cace93 Remove unmaintained Access Control Module (ACM) from hypervisor.
Signed-off-by: Keir Fraser <keir@xen.org>
2011-03-25 21:47:57 +00:00
Keir Fraser 547cb1849c build: Make XEN_ROOT an absolute path.
Otherwise make can search the path relative to certain standard paths
such as /usr/include (e.g., the line '-include $(XEN_ROOT)/.config' in
Config.mk suffers from this).

Signed-off-by: Keir Fraser <keir@xen.org>
2011-03-17 10:36:25 +00:00
Stefano Stabellini ba26a1e197 split LDLIBS from LDFLAGS to fix link errors in recent toolchains
Linker command lines are order-sensitive.
Move linker options -Lfoo -lfoo from LDFLAGS to LDLIBS and place this new
variable after the objects to link. This resolves build errors in xenpagin
and blktap with recent toolchains.

rename SHLIB_CFLAGS to SHLIB_LDFLAGS
rename LDFLAGS_* to LDLIBS_*
move LDFLAGS usage after CFLAGS in CC calls
remove stale comments in xenpaging Makefile

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
2010-08-11 18:02:32 +01:00
Keir Fraser 6e6a088333 cpupools [3/6]: libxen changes
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
2010-04-21 12:49:41 +01:00
Keir Fraser 9b82af4b03 libxen: fix a problem preventing use of xen_event_register().
The conversion of input parameter xen_string_set to XML format creates
a XML "struct" tag instead of "array". The patch sets the XML tag for
SET now to "array".

Signed-off-by: Lutz Dube <Lutz.Dube@fujitsu-siemens.com>
2009-03-03 11:41:15 +00:00
Keir Fraser a9920c61ac libxen: XSPolicy.can_run for libxen
Add the stub and prototype for the XSPolicy.can_run function to the
lib-xen library. I also fixed some prototypes that had missing
'extern's.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2008-04-01 10:07:35 +01:00
Keir Fraser 961f9b1fc9 (Re)introduce notion of crashed VM power state.
The crashed power state is necessary to allow both core-dumping a
crashed but preserved VM and renaming/restarting a crashed VM.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2008-01-25 13:28:25 +00:00
Keir Fraser 2faf0fc95c Add INCLUDEDIR. Use it.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-22 14:30:21 +00:00
Keir Fraser c8107e1564 Apply PREFIX directly to LIBDIR.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-22 14:29:11 +00:00
Keir Fraser 5564364efa libxen: Avoid declarations-after-statement (C++ coding style).
Signed-off-by: Andre Przywara <andre.przywara@amd.com>

libxen: Use build-system CFLAGS and LDFLAGS.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-17 15:11:22 +00:00
Keir Fraser dd8dc9533b libxen: Fix function prototype.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
2008-01-15 18:48:32 +00:00
Keir Fraser 53f48ca221 Fix some build system error handling.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
2007-12-20 13:16:21 +00:00
Keir Fraser 7d6b2ecfac xend, acm: Extend Xen-API with function to reset the policy
This patch extends the Xen-API and the legacy XML-RPC interface with a
function to reset the policy on the system (through an update with the
default policy). I adapted the code in 'xm resetpolicy' to use this
now.

This patch also extends libxen and the documentation to reflect the
new function.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-12-12 09:57:55 +00:00
Keir Fraser 1a55b4207e [vTPM] Add set/get_other_config to Xen-API.
Add get_- and set_other_config methods to the vTPM class. Write the
parameters into the xenstore while the domain is running prefixing it
with 'oc_'. Also I add the methods to the C library as well as the
documentation.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-10-11 09:41:16 +01:00
Keir Fraser 8950f5c6ba Extend 'xm dumppolicy' to support Xen-API
I am extending 'xm dumppolicy' to be used via the Xen-API. For this
there are two new functions in the ACM policy class:
 - get the currently enforced policy including statistical data from
   the hypervisor
- get the ACM 'ssidref' of a Domain. Since this may be a ACM-specific
  variable or type (int) I put it into the ACM class.

I extended the Xen-API documentation with the two new functions.

Signed-off-by: Stefan Berger <Stefanb@us.ibm.com>
2007-10-03 14:04:51 +01:00
Keir Fraser f0acc4f6f1 xenapi: add xen_xspolicy.h to libxen includes file
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2007-09-26 09:11:46 +01:00
kfraser@localhost.localdomain 96f6ffe78c [libxen] Compilation fix.
On a clean system where no prior dev. version of libxen was installed,
the compilation fails due to a wrong include. This fixes it.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-09-10 13:59:46 +01:00
kfraser@localhost.localdomain fbf9c4996c [xend / libxen] Add support for labeling of virtual network interfaces.
This patch adds labeling of virtual network interfaces to xend and
makes this manageable through the Xen-API.  It's a feature that is
only usable if ACM is enabled in Xen and xend is used through the
xen-api. A labeled virtual network interface will be plugged into a
bridge where other domains with the same-labeled network interface are
connected to, so that only same-colored domains can communicate with
each other. The bridge should be connected to the outside world using
VLAN for isolation, extending the isolation beyond the local machine.
If a virtual machine is labeled with a VM label that only has one
Simple Type Enforcement Type then it is not necessary to label the
virtual network interface, but the color of the network interface is
determined from the VM's label. If, however, a virtual machine is
labeled with a VM label that has multiple Simple Type Enforcement
Types, then the explicit labeling of each virtual network interface is
required. To specify the label of a network interface, the vif line in
the VM's configuration file has been extended with parameters similar
use for specifying the label of the VM:

vif = ['policy=<policy name>,label=<resource label>']

This labels the VIF of the virtual machine for usage under the policy
'policy name' and labels it with the label 'resource label'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-19 16:59:48 +01:00
kfraser@localhost.localdomain 24b297caea [libxen] C-bindings for the extensions of the Xen-API for managing security policies
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-10 14:57:04 +01:00
kfraser@localhost.localdomain 876bffbc17 xenapi: Fix segfault in libxenapi.
When calling xen_vbd_set_mode(), libxenapi attempted to convert enum
mode parameter to a string twice - resulting in segfault.  Removed
first conversion since conversion is taking place in
marshalling/demarshalling layer. Fixed similar double enum conversion
in other places as well.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-06-13 11:27:08 +01:00
ewan@localhost.localdomain 05c35c5e14 Bump all API version numbers to 1.0.0.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-27 18:53:23 -07:00
ewan@localhost.localdomain ef8c922a14 Added Makefile.dist, which can make standalone tarballs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-21 12:42:58 -07:00
ewan@localhost.localdomain e83be11595 Move all internal header files to a separate directory, so that it's clear what
forms the public API.  Tidy up a couple of macros in xen_internal.h.  Remove
test_hvm_bindings, which no longer builds, and which has had its functionality
subsumed into test_bindings.  Bump the library version to 0.9.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-21 12:21:06 -07:00
ewan@localhost.localdomain 5c8b4287a4 Added xen_session_clear_error.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-16 19:19:07 -04:00
ewan@localhost.localdomain 8426955edc Added documentation and C bindings for VM.migrate call.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-16 16:12:33 -04:00
ewan@localhost.localdomain f01fa26a0f Added host.enabled flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-16 16:10:39 -04:00
Ewan Mellor 7371dd7b91 Added documentation, C bindings, and test for VM_metrics.VCPUs_flags.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-13 18:14:06 +01:00
Ewan Mellor 3bd8ff8dd1 Added documentation and C bindings for VBD. and VIF.runtime_properties.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-12 22:49:02 +01:00
Ewan Mellor b0766f3da2 Add documentation and C bindings for VM.add_to_VCPUs_params_live,
VM.set_memory_dynamic_{min,max}_live.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-11 22:24:30 +01:00
Ewan Mellor 3e1494d774 Added documentation and bindings for host_cpu.features.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-11 21:55:05 +01:00
Ewan Mellor f6fe1a0991 Added docs and bindings for VM_metrics.state.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-10 19:04:37 +01:00
Ewan Mellor 9853a49dd9 Added docs and bindings for VM.{send_trigger,send_sysrq}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-10 17:29:16 +01:00
Ewan Mellor 6492f2ffbf Added documentation, C bindings, and a test for VM_metrics.{start_time,
VCPUs_CPU,VCPUs_params}.

Changed VM_metrics.start_time to be a DateTime, not an integer.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-09 17:09:21 +01:00
Ewan Mellor 668fbded84 Make host.sched_policy read-only. Added docs, bindings, and a test for
host.cpu_configuration and host.sched_policy.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-09 12:20:35 +01:00
Ewan Mellor 1a2d0aa902 Added bindings and documentation for host.send_debug_keys and host.get_log.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-09 11:39:27 +01:00
Ewan Mellor 0e20ef60f8 Add bindings and docs for the host.dmesg_clear call.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-08 23:03:16 +01:00
Ewan Mellor 8a2926fac2 Serialize string string maps.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-04-05 18:47:04 +01:00
Ewan Mellor fccf5da0dd Expose the method-listing call as host.list_methods.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-04 18:42:20 +01:00
Ewan Mellor 3a7400aa86 Remove docs and bindings for unimplemented VDI.resize and VDI.snapshot.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-04 15:00:57 +01:00
Ewan Mellor 5adf114d68 Remove docs and bindings for unimplemented SR.{create,destroy,clone}.
Implement PBD class, matching existing docs and bindings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-04 14:49:38 +01:00
Ewan Mellor c7dfb7d170 Minor fix.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-29 15:51:04 +01:00
Ewan Mellor 5a1f59a822 Added asynchronous event notification through the Xen-API. Added a new command,
xm event-monitor, a new test program for the C bindings, and new bindings
themselves.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-29 15:46:30 +01:00
Ewan Mellor 4967c65c8c This patch adds serialization of sets with strings. I recursified the
serialization. Only sets with strings are supported so far.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-29 15:06:12 +01:00
Ewan Mellor 99b271fd7d Added network.other_config map. To make this easier, add a new automatic
plumbing facility from the XendNetwork class into XendAPI (credit to Tom
Wilkie for the idea).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:19:20 +01:00
Ewan Mellor ab49221978 Create the new VM with the default crash behaviour set.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-26 00:40:34 +01:00
Ewan Mellor 0b438dc835 Replace tabs with spaces.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-26 00:30:10 +01:00
Ewan Mellor 275caa6d09 Added I/O debugging mode.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-26 00:17:17 +01:00