Displaying 1 result from an estimated 1 matches for "xen_domctl_schedop_sdom".
2007 May 04
0
[PATCH] 3/4 "nemesis" scheduling domains for Xen
...u.shadow_op.pages : rc;
@@ -696,6 +696,79 @@ int xc_get_hvm_param(int handle, domid_t
return rc;
}
+int xc_add_adom(int handle, domid_t adom, domid_t sdom, uint16_t *reason)
+{
+ int ret;
+
+ DECLARE_DOMCTL;
+
+ domctl.cmd = XEN_DOMCTL_scheduler_op;
+ domctl.u.scheduler_op.cmd = XEN_DOMCTL_SCHEDOP_sdom;
+ domctl.u.scheduler_op.u.sdom.op = SDOM_add_adom;
+ domctl.u.scheduler_op.u.sdom.adom = adom;
+ domctl.u.scheduler_op.u.sdom.sdom = sdom;
+ ret = do_domctl(handle, &domctl);
+ if (ret < 0 && reason)
+ *reason = domctl.u.scheduler_op.u.sdom.reason;
+ return...