aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxen/include
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2007-04-09 12:20:35 +0100
committerEwan Mellor <ewan@xensource.com>2007-04-09 12:20:35 +0100
commit668fbded84ff31d548ae5e84419b2acab88600e2 (patch)
tree372b988fb595c8a0e16f4922e06e28c0467a015a /tools/libxen/include
parent1a2d0aa9027d6023f3240abd23e0027a2ce25925 (diff)
downloadxen-668fbded84ff31d548ae5e84419b2acab88600e2.tar.gz
xen-668fbded84ff31d548ae5e84419b2acab88600e2.tar.bz2
xen-668fbded84ff31d548ae5e84419b2acab88600e2.zip
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>
Diffstat (limited to 'tools/libxen/include')
-rw-r--r--tools/libxen/include/xen_host.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/libxen/include/xen_host.h b/tools/libxen/include/xen_host.h
index f380f989d0..181aa5e22d 100644
--- a/tools/libxen/include/xen_host.h
+++ b/tools/libxen/include/xen_host.h
@@ -79,6 +79,8 @@ typedef struct xen_host_record
xen_string_string_map *software_version;
xen_string_string_map *other_config;
struct xen_string_set *capabilities;
+ xen_string_string_map *cpu_configuration;
+ char *sched_policy;
struct xen_string_set *supported_bootloaders;
struct xen_vm_record_opt_set *resident_vms;
xen_string_string_map *logging;
@@ -261,6 +263,20 @@ xen_host_get_capabilities(xen_session *session, struct xen_string_set **result,
/**
+ * Get the cpu_configuration field of the given host.
+ */
+extern bool
+xen_host_get_cpu_configuration(xen_session *session, xen_string_string_map **result, xen_host host);
+
+
+/**
+ * Get the sched_policy field of the given host.
+ */
+extern bool
+xen_host_get_sched_policy(xen_session *session, char **result, xen_host host);
+
+
+/**
* Get the supported_bootloaders field of the given host.
*/
extern bool