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
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
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
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
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
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
9c052c30d6
Implement session.last_active, session.this_host, session.get_record,
...
session.get_uuid.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-26 00:08:13 +01:00
Ewan Mellor
231f7bf638
Added C bindings and docs for recent addition VM.set_VCPUs_number_live.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-25 22:17:30 +01:00
Ewan Mellor
7beb8f32c1
Don't use the client-side shortcut for get_uuid calls -- we need to keep
...
handles and UUIDs conceptually separate.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-23 17:50:18 +00:00
Ewan Mellor
f38e3b431b
Add a last_updated field to every metrics class.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-23 13:27:29 +00:00
Ewan Mellor
98321440ec
Replace VDI.location with a more generic VDI.other_config map. Remove
...
VDI.sector_size.
Xend work by Tom Wilkie <tom.wilkie@gmail.com >.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-17 23:55:03 +00:00
Ewan Mellor
efcaa9d8d3
Match recent removal of VM.VCPUs_policy.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-14 21:59:11 +00:00
Ewan Mellor
abc324d48f
Replace VM.platform_{std_VGA,serial,localtime,clock_offset,enable_audio} with
...
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 >
2007-03-10 21:48:22 +00:00
Ewan Mellor
d0a005909a
Remove VDI.set_SR -- this was always unimplemented, and pretty mad.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-09 01:25:43 +00:00
Ewan Mellor
9f7e9b2820
Move the booting description out of the VM class description into the VM
...
Lifecycle section of the doc.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-09 01:06:11 +00:00
Ewan Mellor
9e92a72fb5
Added {VIF,VBD}.{plug,unplug} methods. Docs and C bindings -- Xend to follow.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-08 23:47:24 +00:00
Ewan Mellor
9c3b29a772
Remove crashdump.create -- this doesn't make sense.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-08 23:16:34 +00:00
Ewan Mellor
6bd6a1390e
Fix missing bits of the docs from cset 14020, and match that change by removing
...
the similar fields on host_metrics, PIF_metrics, and VM_guest_metrics.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-27 01:52:27 +00:00
Ewan Mellor
b33bb1e4d9
Implementation of host_metrics.get_all, PIF_metrics.get_all, and docs and
...
bindings for many of the get_all methods elsewhere that Xend already
implemented.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-27 01:05:32 +00:00
Ewan Mellor
d8309d27a1
Added some more fields to host_cpu.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-27 00:37:27 +00:00
Ewan Mellor
f8b1ed8706
Remove unused network.default_{gateway,netmask}.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-26 00:07:14 +00:00
Ewan Mellor
496ee4e22a
Added host.capabilities field.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-25 23:37:05 +00:00
Ewan Mellor
d8f5871da1
Replace VM.tools_version with a richer VM_guest_metrics class.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-25 23:17:14 +00:00
Ewan Mellor
719e521fa2
Added documentation and C bindings for VBD/VIF.status_detail, status_code, and
...
currently_attached fields. Not yet implemented.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-25 22:47:29 +00:00
Ewan Mellor
9421735453
Added a VM.domid field.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-25 22:31:43 +00:00
Ewan Mellor
6bae08b498
Remove the bindings for VM.get_VCPUs_{number,utilisation} -- these have moved
...
onto the metrics class.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-25 22:02:12 +00:00
Ewan Mellor
5baa3458c5
Added host.API_version_{major,minor,vendor,vendor_implementation} fields.
...
Fix missing host.other_config from the record returned by Xend.
Improve the error diagnosis when we catch TypeError.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-25 17:20:51 +00:00
Ewan Mellor
b0a0faf30a
Added VBD. and VIF.qos_supported_algorithms fields, with C bindings, Xend
...
implementation to follow.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-21 23:03:00 +00:00
Ewan Mellor
b057b19321
Added C bindings for host.supported_bootloaders.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-21 00:04:59 +00:00
Ewan Mellor
015c384bf9
Put the set size in the structure on set-allocation.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-20 23:59:13 +00:00
Ewan Mellor
c24f2b2bec
Remove host.create and host.destroy -- these never made any sense.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-20 22:46:21 +00:00
Ewan Mellor
1a84dd141d
Added modelling and C bindings for VIF/VBD QoS parameter setting. No Xend
...
implementation yet.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-02-20 22:40:55 +00:00