aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxen/src
Commit message (Collapse)AuthorAgeFilesLines
* tools: Remove old vtpm stuff from tools/libxenMatthew Fioravante2012-11-192-257/+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>
* Remove unmaintained Access Control Module (ACM) from hypervisor.Keir Fraser2011-03-251-269/+0
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* cpupools [3/6]: libxen changesKeir Fraser2010-04-214-3/+810
| | | | 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-011-0/+18
| | | | | | | | 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-251-0/+1
| | | | | | | 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>
* libxen: Avoid declarations-after-statement (C++ coding style).Keir Fraser2008-01-174-45/+67
| | | | | | | 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>
* xend, acm: Extend Xen-API with function to reset the policyKeir Fraser2007-12-121-0/+18
| | | | | | | | | | | | 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-111-1/+40
| | | | | | | | | 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-031-0/+35
| | | | | | | | | | | | | 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>
* [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-191-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-104-1/+644
| | | | | | 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>
* Move all internal header files to a separate directory, so that it's clear whatewan@localhost.localdomain2007-04-2135-126/+126
| | | | | | | | 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-161-0/+17
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added documentation and C bindings for VM.migrate call.ewan@localhost.localdomain2007-04-161-0/+20
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added host.enabled flag.ewan@localhost.localdomain2007-04-161-0/+19
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added documentation, C bindings, and test for VM_metrics.VCPUs_flags.Ewan Mellor2007-04-133-0/+93
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added documentation and C bindings for VBD. and VIF.runtime_properties.Ewan Mellor2007-04-122-0/+42
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Add documentation and C bindings for VM.add_to_VCPUs_params_live,Ewan Mellor2007-04-111-0/+50
| | | | | | 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-111-0/+21
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added docs and bindings for VM_metrics.state.Ewan Mellor2007-04-101-0/+21
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added docs and bindings for VM.{send_trigger,send_sysrq}.Ewan Mellor2007-04-101-0/+32
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added documentation, C bindings, and a test for VM_metrics.{start_time,Ewan Mellor2007-04-093-0/+121
| | | | | | | | 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-091-0/+42
| | | | | | 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-091-0/+33
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Add bindings and docs for the host.dmesg_clear call.Ewan Mellor2007-04-081-0/+17
| | | | 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-041-0/+12
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Remove docs and bindings for unimplemented VDI.resize and VDI.snapshot.Ewan Mellor2007-04-041-33/+0
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Remove docs and bindings for unimplemented SR.{create,destroy,clone}.Ewan Mellor2007-04-041-47/+24
| | | | | | Implement PBD class, matching existing docs and bindings. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added asynchronous event notification through the Xen-API. Added a new command,Ewan Mellor2007-03-292-0/+198
| | | | | | | 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-271-1/+73
| | | | | | | plumbing facility from the XendNetwork class into XendAPI (credit to Tom Wilkie for the idea). 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>
* Implement session.last_active, session.this_host, session.get_record,Ewan Mellor2007-03-261-3/+114
| | | | | | session.get_uuid. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added C bindings and docs for recent addition VM.set_VCPUs_number_live.Ewan Mellor2007-03-251-0/+16
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Don't use the client-side shortcut for get_uuid calls -- we need to keepEwan Mellor2007-03-2320-21/+201
| | | | | | handles and UUIDs conceptually separate. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Add a last_updated field to every metrics class.Ewan Mellor2007-03-236-6/+120
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Implement parsing of datetimes.Ewan Mellor2007-03-231-10/+33
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Replace VDI.location with a more generic VDI.other_config map. RemoveEwan Mellor2007-03-172-23/+70
| | | | | | | | VDI.sector_size. Xend work by Tom Wilkie <tom.wilkie@gmail.com>. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Match recent removal of VM.VCPUs_policy.Ewan Mellor2007-03-141-37/+0
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Replace VM.platform_{std_VGA,serial,localtime,clock_offset,enable_audio} withEwan Mellor2007-03-101-113/+23
| | | | | | | | | | | | | a single VM.platform String -> String Map. Propogate this change through to XendDomainInfo and image so that the backwards compatibility is handled by XendConfig. Make PCI_bus a read-write field. Added C bindings for these changes also. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix get_val_as_string so that it does not truncate integers.Ewan Mellor2007-03-101-5/+7
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Allow empty structs to represent empty Maps.Ewan Mellor2007-03-101-2/+1
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* This patch fixes two problems with sending and receiving of (arrays of)Ewan Mellor2007-03-091-1/+5
| | | | | | | | | | | structures. The first one allows to determine the size of a member when parsing a 'set'. The cast in the second part fixes the address calculation when serializing an array. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Remove VDI.set_SR -- this was always unimplemented, and pretty mad.Ewan Mellor2007-03-091-16/+0
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added {VIF,VBD}.{plug,unplug} methods. Docs and C bindings -- Xend to follow.Ewan Mellor2007-03-082-0/+56
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Remove crashdump.create -- this doesn't make sense.Ewan Mellor2007-03-081-27/+10
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>