Here are some patches I compiled to get sedf_get to the XendClient
API... sadly, however, the current xc frontend is missing a variable
(weight) and needed to be edited.
Below are my "homemade" patches (I did this since my code base is
EXTREMELY old... however the code is still valid)
tools/python/xen/lowlevel/xc/xc.c
line 766
static PyObject *pyxc_sedf_domain_get(PyObject *self,
PyObject *args,
PyObject *kwds)
...
- return Py_BuildValue("{s:i,s:L,s:L,s:L,s:i}",
- "domain", domid,
- "period", period,
- "slice", slice,
- "latency", latency,
- "extratime", extratime);
+ return Py_BuildValue("{s:i,s:L,s:L,s:L,s:i,s:i}",
+ "domain", domid,
+ "period", period,
+ "slice", slice,
+ "latency", latency,
+ "extratime", extratime
+ "weight", weight);
tools/python/xen/xend/XendClient.py
line 351
class URL:
...
+ def xend_domain_cpu_sedf_get(self, id):
+ return self.xendPost(self.domainurl(id),
+ {''op'' :
''cpu_sedf_get''})
tools/python/xen/xend/server/SrvDomain.py
class SrvDomain(SrvDir):
line 212
...
+ def op_cpu_sedf_get(self, op, req):
+ fn = FormFn(self.xd.domain_cpu_sedf_get,
+ [[''dom'', ''int'']])
+ val = fn(req.args, {''dom'': self.dom.id})
+ return val
If need be I''ll supply the traditional patches....
Regards,
David Wolinsky
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
David Isaac Wolinsky
2005-Oct-14 15:35 UTC
Re: [Xen-devel] [PATCH] sedf get in XendClient API
There was an error in my return statement (left out a comma)....
tools/python/xen/lowlevel/xc/xc.c
line 766
static PyObject *pyxc_sedf_domain_get(PyObject *self,
PyObject *args,
PyObject *kwds)
...
- return Py_BuildValue("{s:i,s:L,s:L,s:L,s:i}",
- "domain", domid,
- "period", period,
- "slice", slice,
- "latency", latency,
- "extratime", extratime);
+ return Py_BuildValue("{s:i,s:L,s:L,s:L,s:i,s:i}",
+ "domain", domid,
+ "period", period,
+ "slice", slice,
+ "latency", latency,
+ "extratime", extratime,
+ "weight", weight);
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
On Thu, Oct 13, 2005 at 07:03:11PM -0400, David Isaac Wolinsky wrote:> Here are some patches I compiled to get sedf_get to the XendClient > API... sadly, however, the current xc frontend is missing a variable > (weight) and needed to be edited.Applied, thank you. Were you intending to stop at the XendClient level? This change does not push the sedf_get functionality all the way through to xm, and I wonder whether you intended to do so. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Apparently Analagous Threads
- [PATCH] xm,xend: flesh out xm sched-sedf
- [PATCH] xl: fix sedf parameters checking
- sedf: remove useless tracing printk and harmonize comments style.
- How to get actual DOMU scheduling parameters ?
- xl doesn't honour the parameter cpu_weight from my config file while xm does honour it