ia64/xen-unstable

diff tools/python/xen/xend/XendDomain.py @ 19580:a63d20d7a941

xend: Fix for op_pincpu in SrvDomain.py

op_pincpu method in SrvDomain.py does not currently work because
op_pincpu method gives string objects to a cpumap argument of
domain_pincpu method in XendDomain.py though the cpumap argument
expects list objects.

This patch solves the above problem as follows.

op_pincpu method gives string objects to the cpumap argument as is,
because op_pincpu method cannot give list objects to the cpumap
argument.
Instead, domain_pincpu method expects that the cpumap argument is
string objects, then domain_pincpu method converts the cpumap
argument into list objects.
Also, the patch modifies two methods (except for op_pincpu method)
calling domain_pincpu method. The methods give string objects to
the cpumap argument instead of list objects.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Apr 27 15:42:38 2009 +0100 (2009-04-27)
parents 01873414cfc1
children 94bf7d4854eb
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Mon Apr 27 15:41:28 2009 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Mon Apr 27 15:42:38 2009 +0100
     1.3 @@ -1442,6 +1442,7 @@ class XendDomain:
     1.4          # set the same cpumask for all vcpus
     1.5          rc = 0
     1.6          cpus = dominfo.getCpus()
     1.7 +        cpumap = map(int, cpumap.split(","))
     1.8          for v in vcpus:
     1.9              try:
    1.10                  if dominfo._stateGet() in (DOM_STATE_RUNNING, DOM_STATE_PAUSED):