mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.1153 (41126318o43x3YiPCk8UwYtIQ4XdtA)
Fixes to the warping mechanism in BVT
This commit is contained in:
1 parent
ab6d78ff48
commit
438b8fa221
5 files changed
+31
-23
No files matched your search
@@ -445,7 +445,7 @@ static PyObject *pyxc_bvtsched_domain_set(PyObject *self,
|
||||
static char *kwd_list[] = { "dom", "mcuadv", "warpback", "warpvalue",
|
||||
"warpl", "warpu", NULL };
|
||||
|
||||
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiill", kwd_list,
|
||||
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiiLL", kwd_list,
|
||||
&dom, &mcuadv, &warpback, &warpvalue,
|
||||
&warpl, &warpu) )
|
||||
return NULL;
|
||||
|
||||
@@ -72,6 +72,8 @@ class Args:
|
||||
try:
|
||||
if type == 'int':
|
||||
val = int(v)
|
||||
elif type == 'long':
|
||||
val = long(v)
|
||||
elif type == 'str':
|
||||
val = str(v)
|
||||
elif type == 'sxpr':
|
||||
|
||||
@@ -112,8 +112,8 @@ class SrvDomain(SrvDir):
|
||||
['mcuadv', 'int'],
|
||||
['warpback', 'int'],
|
||||
['warpvalue', 'int'],
|
||||
['warpl', 'int'],
|
||||
['warpu', 'int']])
|
||||
['warpl', 'long'],
|
||||
['warpu', 'long']])
|
||||
val = fn(req.args, {'dom': self.dom.name})
|
||||
return val
|
||||
|
||||
|
||||
@@ -497,7 +497,7 @@ class ProgBvt(Prog):
|
||||
|
||||
def main(self, args):
|
||||
if len(args) != 7: self.err("%s: Invalid argument(s)" % args[0])
|
||||
v = map(int, args[1:7])
|
||||
v = map(long, args[1:7])
|
||||
server.xend_domain_cpu_bvt_set(*v)
|
||||
|
||||
xm.prog(ProgBvt)
|
||||
|
||||