ia64/xen-unstable

changeset 2399:2f8e399738c1

bitkeeper revision 1.1159.1.115 (4136e9674dJap9C0FRyCKtUBfss11Q)

Fix code that was still assuming domain ids are ints.
author mjw@wray-m-3.hpl.hp.com
date Thu Sep 02 09:35:35 2004 +0000 (2004-09-02)
parents 4f6933bb7358
children 47ded9cd9bee
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Thu Sep 02 09:34:42 2004 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Thu Sep 02 09:35:35 2004 +0000
     1.3 @@ -443,8 +443,9 @@ class ProgPincpu(Prog):
     1.4  
     1.5      def main(self, args):
     1.6          if len(args) != 3: self.err("%s: Invalid argument(s)" % args[0])
     1.7 -        v = map(int, args[1:3])
     1.8 -        server.xend_domain_pincpu(*v)
     1.9 +        dom = args[1]
    1.10 +        cpu = int(args[2])
    1.11 +        server.xend_domain_pincpu(dom, cpu)
    1.12  
    1.13  xm.prog(ProgPincpu)
    1.14  
    1.15 @@ -459,8 +460,9 @@ class ProgMaxmem(Prog):
    1.16  
    1.17      def main(self, args):
    1.18          if len(args) != 3: self.err("%s: Invalid argument(s)" % args[0])
    1.19 -        v = map(int, args[1:3])
    1.20 -        server.xend_domain_maxmem_set(*v)
    1.21 +        dom = args[1]
    1.22 +        mem = int(args[2])
    1.23 +        server.xend_domain_maxmem_set(dom, mem)
    1.24  
    1.25  xm.prog(ProgMaxmem)
    1.26  
    1.27 @@ -509,8 +511,9 @@ class ProgBvt(Prog):
    1.28  
    1.29      def main(self, args):
    1.30          if len(args) != 7: self.err("%s: Invalid argument(s)" % args[0])
    1.31 -        v = map(long, args[1:7])
    1.32 -        server.xend_domain_cpu_bvt_set(*v)
    1.33 +        dom = args[1]
    1.34 +        v = map(long, args[2:7])
    1.35 +        server.xend_domain_cpu_bvt_set(dom, *v)
    1.36  
    1.37  xm.prog(ProgBvt)
    1.38  
    1.39 @@ -542,8 +545,9 @@ class ProgFbvt(Prog):
    1.40  
    1.41      def main(self, args):
    1.42          if len(args) != 6: self.err("%s: Invalid argument(s)" % args[0])
    1.43 -        v = map(int, args[1:6])
    1.44 -        server.xend_domain_cpu_fbvt_set(*v)
    1.45 +        dom = args[1]
    1.46 +        v = map(int, args[2:6])
    1.47 +        server.xend_domain_cpu_fbvt_set(dom, *v)
    1.48  
    1.49  xm.prog(ProgFbvt)
    1.50  
    1.51 @@ -576,8 +580,9 @@ class ProgAtropos(Prog):
    1.52  
    1.53      def main(self, args):
    1.54          if len(args) != 5: self.err("%s: Invalid argument(s)" % args[0])
    1.55 -        v = map(int, args[1:5])
    1.56 -        server.xend_domain_cpu_atropos_set(*v)
    1.57 +        dom = args[1]
    1.58 +        v = map(int, args[2:5])
    1.59 +        server.xend_domain_cpu_atropos_set(dom, *v)
    1.60  
    1.61  xm.prog(ProgAtropos)
    1.62