aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxen
Commit message (Collapse)AuthorAgeFilesLines
* tools: Remove old vtpm stuff from tools/libxenMatthew Fioravante2012-11-196-516/+0
| | | | | | Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* build: add autoconf to replace custom checks in tools/checkIan Jackson2012-02-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* tools/build: Introduce {PREPEND,APPEND}_{LIB,INCLUDES}Roger Pau Monne2011-11-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | 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>
* tools: Remove $(CFLAGS) from links lines.Ian Campbell2011-03-312-2/+2
| | | | | | | | 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>
* Remove unmaintained Access Control Module (ACM) from hypervisor.Keir Fraser2011-03-252-401/+0
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* build: Make XEN_ROOT an absolute path.Keir Fraser2011-03-171-1/+1
| | | | | | | | 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>
* split LDLIBS from LDFLAGS to fix link errors in recent toolchainsStefano Stabellini2010-08-112-3/+3
| | | | | | | | | | | | | | | | 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>
* cpupools [3/6]: libxen changesKeir Fraser2010-04-2111-4/+1971
| | | | Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
* libxen: fix a problem preventing use of xen_event_register().Keir Fraser2009-03-031-1/+13
| | | | | | | | 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>
* libxen: XSPolicy.can_run for libxenKeir Fraser2008-04-013-12/+39
| | | | | | | | 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>
* (Re)introduce notion of crashed VM power state.Keir Fraser2008-01-252-0/+6
| | | | | | | 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>
* Add INCLUDEDIR. Use it.Keir Fraser2008-01-222-4/+4
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* Apply PREFIX directly to LIBDIR.Keir Fraser2008-01-222-10/+10
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* libxen: Avoid declarations-after-statement (C++ coding style).Keir Fraser2008-01-175-51/+73
| | | | | | | 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>
* libxen: Fix function prototype.Keir Fraser2008-01-151-1/+1
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Fix some build system error handling.Keir Fraser2007-12-202-2/+2
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xend, acm: Extend Xen-API with function to reset the policyKeir Fraser2007-12-122-0/+31
| | | | | | | | | | | | 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>
* [vTPM] Add set/get_other_config to Xen-API.Keir Fraser2007-10-112-1/+59
| | | | | | | | | 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>
* Extend 'xm dumppolicy' to support Xen-APIKeir Fraser2007-10-032-1/+51
| | | | | | | | | | | | | 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>
* xenapi: add xen_xspolicy.h to libxen includes fileKeir Fraser2007-09-261-0/+1
| | | | Signed-off by: Reiner Sailer <sailer@us.ibm.com>
* [libxen] Compilation fix.kfraser@localhost.localdomain2007-09-101-1/+1
| | | | | | | 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>
* [xend / libxen] Add support for labeling of virtual network interfaces.kfraser@localhost.localdomain2007-07-192-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* [libxen] C-bindings for the extensions of the Xen-API for managing security ↵kfraser@localhost.localdomain2007-07-109-1/+1090
| | | | | | policies Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xenapi: Fix segfault in libxenapi.kfraser@localhost.localdomain2007-06-132-5/+5
| | | | | | | | | | 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>
* Bump all API version numbers to 1.0.0.ewan@localhost.localdomain2007-04-272-4/+4
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added Makefile.dist, which can make standalone tarballs.ewan@localhost.localdomain2007-04-212-11/+115
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Move all internal header files to a separate directory, so that it's clear whatewan@localhost.localdomain2007-04-21103-788/+373
| | | | | | | | 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>
* Added xen_session_clear_error.ewan@localhost.localdomain2007-04-162-0/+24
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added documentation and C bindings for VM.migrate call.ewan@localhost.localdomain2007-04-162-0/+28
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added host.enabled flag.ewan@localhost.localdomain2007-04-162-0/+27
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added documentation, C bindings, and test for VM_metrics.VCPUs_flags.Ewan Mellor2007-04-137-0/+176
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added documentation and C bindings for VBD. and VIF.runtime_properties.Ewan Mellor2007-04-124-2/+60
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Add documentation and C bindings for VM.add_to_VCPUs_params_live,Ewan Mellor2007-04-112-0/+72
| | | | | | VM.set_memory_dynamic_{min,max}_live. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added documentation and bindings for host_cpu.features.Ewan Mellor2007-04-112-0/+29
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added docs and bindings for VM_metrics.state.Ewan Mellor2007-04-102-0/+30
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added docs and bindings for VM.{send_trigger,send_sysrq}.Ewan Mellor2007-04-102-0/+49
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added documentation, C bindings, and a test for VM_metrics.{start_time,Ewan Mellor2007-04-097-0/+221
| | | | | | | | VCPUs_CPU,VCPUs_params}. Changed VM_metrics.start_time to be a DateTime, not an integer. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Make host.sched_policy read-only. Added docs, bindings, and a test forEwan Mellor2007-04-093-0/+103
| | | | | | host.cpu_configuration and host.sched_policy. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added bindings and documentation for host.send_debug_keys and host.get_log.Ewan Mellor2007-04-092-0/+47
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Add bindings and docs for the host.dmesg_clear call.Ewan Mellor2007-04-082-2/+26
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Serialize string string maps.Ewan Mellor2007-04-051-0/+45
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Expose the method-listing call as host.list_methods.Ewan Mellor2007-04-043-0/+62
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Remove docs and bindings for unimplemented VDI.resize and VDI.snapshot.Ewan Mellor2007-04-042-48/+0
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Remove docs and bindings for unimplemented SR.{create,destroy,clone}.Ewan Mellor2007-04-042-68/+31
| | | | | | Implement PBD class, matching existing docs and bindings. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Minor fix.Ewan Mellor2007-03-291-3/+3
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added asynchronous event notification through the Xen-API. Added a new command,Ewan Mellor2007-03-298-0/+658
| | | | | | | xm event-monitor, a new test program for the C bindings, and new bindings themselves. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* This patch adds serialization of sets with strings. I recursified theEwan Mellor2007-03-291-52/+80
| | | | | | serialization. Only sets with strings are supported so far. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Added network.other_config map. To make this easier, add a new automaticEwan Mellor2007-03-272-1/+106
| | | | | | | plumbing facility from the XendNetwork class into XendAPI (credit to Tom Wilkie for the idea). Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Create the new VM with the default crash behaviour set.Ewan Mellor2007-03-261-1/+1
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Replace tabs with spaces.Ewan Mellor2007-03-261-8/+8
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>