WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] sedf get in XendClient API
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050831)
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>