aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxen/include/xen/api/xen_host_cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libxen/include/xen/api/xen_host_cpu.h')
-rw-r--r--tools/libxen/include/xen/api/xen_host_cpu.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/libxen/include/xen/api/xen_host_cpu.h b/tools/libxen/include/xen/api/xen_host_cpu.h
index f1bdb7134f..761c8f5dd5 100644
--- a/tools/libxen/include/xen/api/xen_host_cpu.h
+++ b/tools/libxen/include/xen/api/xen_host_cpu.h
@@ -22,6 +22,7 @@
#include <xen/api/xen_common.h>
#include <xen/api/xen_host_cpu_decl.h>
#include <xen/api/xen_host_decl.h>
+#include <xen/api/xen_cpu_pool_decl.h>
/*
@@ -72,6 +73,7 @@ typedef struct xen_host_cpu_record
char *flags;
char *features;
double utilisation;
+ struct xen_cpu_pool_record_opt_set *cpu_pools;
} xen_host_cpu_record;
/**
@@ -244,4 +246,18 @@ extern bool
xen_host_cpu_get_all(xen_session *session, struct xen_host_cpu_set **result);
+/**
+ * Get the ref of the cpu_pool to which the host_cpu belongs.
+ */
+extern bool
+xen_host_cpu_get_cpu_pool(xen_session *session, struct xen_cpu_pool_set **result, xen_host_cpu host_cpu);
+
+
+/**
+ * Return a list of all the host_cpus not assigned to a cpu_pool.
+ */
+extern bool
+xen_host_cpu_get_unassigned_cpus(xen_session *session, struct xen_host_cpu_set **result);
+
+
#endif