[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] sedf get in XendClient API

  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: David Isaac Wolinsky <davidiw@xxxxxxx>
  • Date: Thu, 13 Oct 2005 19:03:11 -0400
  • Delivery-date: Fri, 14 Oct 2005 03:00:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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)

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);

line 351

class URL:


+    def xend_domain_cpu_sedf_get(self, id):
+        return self.xendPost(self.domainurl(id),
+                             {'op'     : 'cpu_sedf_get'})


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....

David Wolinsky

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.