# Patch to fix `xm reboot` on domu. # now cpus is correctly parsed. # # Idea and patch from: Daniele Palumbo # Code from: Francesco Benincasa (Many thanks) --- a/tools/python/xen/xend/XendConfig.py 2007-01-08 16:00:50.000000000 +0100 +++ b/tools/python/xen/xend/XendConfig.py 2007-01-24 15:24:57.000000000 +0100 @@ -126,6 +126,7 @@ 'memory_dynamic_min': int, 'memory_dynamic_max': int, 'memory_actual': int, + 'cpus': list, 'vcpus_policy': str, 'vcpus_params': str, 'vcpus_number': int, @@ -551,7 +552,7 @@ # "0-3,^1" -> [0,2,3] # "0-3,^1,1" -> [0,1,2,3] try: - if 'cpus' in cfg: + if 'cpus' in cfg and type(cfg['cpus']) != list: cpus = [] for c in cfg['cpus'].split(','): if c.find('-') != -1: