aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/domctl.c
diff options
context:
space:
mode:
authorDario Faggioli <dario.faggioli@citrix.com>2013-04-17 10:57:29 +0000
committerIan Campbell <ian.campbell@citrix.com>2013-04-17 12:11:14 +0100
commit225fa55e53efa8b8e3d964d8572c89001d547d4e (patch)
treef8ef7a7ff8aa85b0f3054e7a467a433138765de3 /xen/common/domctl.c
parent15299b5bb3e01759b05f59fc2aebbade46dc35cf (diff)
downloadxen-225fa55e53efa8b8e3d964d8572c89001d547d4e.tar.gz
xen-225fa55e53efa8b8e3d964d8572c89001d547d4e.tar.bz2
xen-225fa55e53efa8b8e3d964d8572c89001d547d4e.zip
xen, libxc: introduce xc_nodemap_t
And its handling functions, following suit from xc_cpumap_t. Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com> Acked-by: George Dunlap <george.dunlap@eu.citrix.com> Acked-by: Juergen Gross <juergen.gross@ts.fujitsu.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/domctl.c')
-rw-r--r--xen/common/domctl.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/xen/common/domctl.c b/xen/common/domctl.c
index 6769d2416a..37532c25c6 100644
--- a/xen/common/domctl.c
+++ b/xen/common/domctl.c
@@ -117,6 +117,20 @@ int xenctl_bitmap_to_cpumask(cpumask_var_t *cpumask,
return err;
}
+int nodemask_to_xenctl_bitmap(struct xenctl_bitmap *xenctl_nodemap,
+ const nodemask_t *nodemask)
+{
+ return bitmap_to_xenctl_bitmap(xenctl_nodemap, nodes_addr(*nodemask),
+ MAX_NUMNODES);
+}
+
+int xenctl_bitmap_to_nodemask(nodemask_t *nodemask,
+ const struct xenctl_bitmap *xenctl_nodemap)
+{
+ return xenctl_bitmap_to_bitmap(nodes_addr(*nodemask), xenctl_nodemap,
+ MAX_NUMNODES);
+}
+
static inline int is_free_domid(domid_t dom)
{
struct domain *d;