aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_memshr.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-12-22 11:33:15 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-12-22 11:33:15 +0000
commit6340819756c599e63366a3fa6ecd5ab1eec8b198 (patch)
tree7f7732626c64d54a7fa4ae3a16ccc30ebdd71b9d /tools/libxc/xc_memshr.c
parent70248054c9f86716d20ca42709637ba27b73420f (diff)
downloadxen-6340819756c599e63366a3fa6ecd5ab1eec8b198.tar.gz
xen-6340819756c599e63366a3fa6ecd5ab1eec8b198.tar.bz2
xen-6340819756c599e63366a3fa6ecd5ab1eec8b198.zip
domctl/sysctl: Clean up definitions
- Use fixed-width types only - Use named unions only - Bump domctl version number Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/libxc/xc_memshr.c')
-rw-r--r--tools/libxc/xc_memshr.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/libxc/xc_memshr.c b/tools/libxc/xc_memshr.c
index 43659ea2af..1d54a38f7e 100644
--- a/tools/libxc/xc_memshr.c
+++ b/tools/libxc/xc_memshr.c
@@ -37,7 +37,7 @@ int xc_memshr_control(int xc_handle,
domctl.domain = (domid_t)domid;
op = &(domctl.u.mem_sharing_op);
op->op = XEN_DOMCTL_MEM_SHARING_OP_CONTROL;
- op->enable = enable;
+ op->u.enable = enable;
return do_domctl(xc_handle, &domctl);
}
@@ -56,10 +56,10 @@ int xc_memshr_nominate_gfn(int xc_handle,
domctl.domain = (domid_t)domid;
op = &(domctl.u.mem_sharing_op);
op->op = XEN_DOMCTL_MEM_SHARING_OP_NOMINATE_GFN;
- op->nominate.gfn = gfn;
+ op->u.nominate.u.gfn = gfn;
ret = do_domctl(xc_handle, &domctl);
- if(!ret) *handle = op->nominate.handle;
+ if(!ret) *handle = op->u.nominate.handle;
return ret;
}
@@ -78,10 +78,10 @@ int xc_memshr_nominate_gref(int xc_handle,
domctl.domain = (domid_t)domid;
op = &(domctl.u.mem_sharing_op);
op->op = XEN_DOMCTL_MEM_SHARING_OP_NOMINATE_GREF;
- op->nominate.grant_ref = gref;
+ op->u.nominate.u.grant_ref = gref;
ret = do_domctl(xc_handle, &domctl);
- if(!ret) *handle = op->nominate.handle;
+ if(!ret) *handle = op->u.nominate.handle;
return ret;
}
@@ -98,8 +98,8 @@ int xc_memshr_share(int xc_handle,
domctl.domain = 0;
op = &(domctl.u.mem_sharing_op);
op->op = XEN_DOMCTL_MEM_SHARING_OP_SHARE;
- op->share.source_handle = source_handle;
- op->share.client_handle = client_handle;
+ op->u.share.source_handle = source_handle;
+ op->u.share.client_handle = client_handle;
return do_domctl(xc_handle, &domctl);
}
@@ -131,7 +131,7 @@ int xc_memshr_debug_gfn(int xc_handle,
domctl.domain = (domid_t)domid;
op = &(domctl.u.mem_sharing_op);
op->op = XEN_DOMCTL_MEM_SHARING_OP_DEBUG_GFN;
- op->debug.gfn = gfn;
+ op->u.debug.u.gfn = gfn;
return do_domctl(xc_handle, &domctl);
}
@@ -148,7 +148,7 @@ int xc_memshr_debug_mfn(int xc_handle,
domctl.domain = (domid_t)domid;
op = &(domctl.u.mem_sharing_op);
op->op = XEN_DOMCTL_MEM_SHARING_OP_DEBUG_MFN;
- op->debug.mfn = mfn;
+ op->u.debug.u.mfn = mfn;
return do_domctl(xc_handle, &domctl);
}
@@ -165,7 +165,7 @@ int xc_memshr_debug_gref(int xc_handle,
domctl.domain = (domid_t)domid;
op = &(domctl.u.mem_sharing_op);
op->op = XEN_DOMCTL_MEM_SHARING_OP_DEBUG_GREF;
- op->debug.gref = gref;
+ op->u.debug.u.gref = gref;
return do_domctl(xc_handle, &domctl);
}