[XEND][XM] Fix sched-sedf to return the domid to correspond with xc.c
authorAlastair Tse <atse@xensource.com>
Fri, 10 Nov 2006 12:48:18 +0000 (12:48 +0000)
committerAlastair Tse <atse@xensource.com>
Fri, 10 Nov 2006 12:48:18 +0000 (12:48 +0000)
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendDomain.py
tools/python/xen/xm/main.py

index d37514d1c2d8e2a824aff922a464378760a34021..d24bf75070371368691e4aec539eaea68b62f769 100644 (file)
@@ -1162,7 +1162,7 @@ class XendDomain:
             sedf_info = xc.sedf_domain_get(dominfo.getDomid())
             # return sxpr
             return ['sedf',
-                    ['domain',    sedf_info['domain']],
+                    ['domid',    sedf_info['domid']],
                     ['period',    sedf_info['period']],
                     ['slice',     sedf_info['slice']],
                     ['latency',   sedf_info['latency']],
index 56467f4df32f607c248eee923435e1f3e1afd272..d9c0a70024b2c5385bff425c30c9f74f13d62772 100644 (file)
@@ -554,7 +554,7 @@ def parse_sedf_info(info):
         return t(sxp.child_value(info, n, d))
 
     return {
-        'domid'    : get_info('domain',        int,   -1),
+        'domid'    : get_info('domid',        int,   -1),
         'period'   : get_info('period',        int,   -1),
         'slice'    : get_info('slice',         int,   -1),
         'latency'  : get_info('latency',       int,   -1),