Skip to contentSkip to conversation

Fix xm sched-sedf

PATCH New Masaki Kanno 1 participant 1 message Sep 27, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix xm sched-sedf

Hi,

I saw the following strange informations.
Domain ID was always -1.

# xm sched-sedf
Name                              ID Period(ms) Slice(ms) Lat(ms) Extra Weight
Domain-0                          -1      20.0      15.0     0.0      1      0
# xm sched-sedf vm1
Name                              ID Period(ms) Slice(ms) Lat(ms) Extra Weight
vm1                               -1     100.0       0.0     0.0      1      0

This patch fixes it.

Best regards,
Kan

tools/python/xen/xm/main.py +1 -1
diff -r bd811e94d293 tools/python/xen/xm/main.py
@@ -526,7 +526,7 @@ def parse_sedf_info(info):
         return t(sxp.child_value(info, n, d))
 
     return {
-        'domid'    : get_info('domid',         int,   -1),
+        'domid'    : get_info('domain',        int,   -1),
         'period'   : get_info('period',        int,   -1),
         'slice'    : get_info('slice',         int,   -1),
         'latency'  : get_info('latency',       int,   -1),

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel