Skip to contentSkip to conversation

Fix the "cpu_weight" and "cpu_cap" parsing issue

PATCH New Masaki Kanno 1 participant 1 message Dec 19, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix the "cpu_weight" and "cpu_cap" parsing issue

Hi,

This patch fixes the Bug:835 issue.

 # xm create /home/kanno/smp-domU.conf cpu_weight=512 cpu_cap=150
 Using config file "/home/kanno/smp-domU.conf".
 Started domain vm1-smp
 # xm sched-credit -d vm1-smp
 {'cap': 150, 'weight': 512}

Best regards,
Kan

tools/python/xen/xend/XendConfig.py +2 -0
diff -r 25536178f8d4 tools/python/xen/xend/XendConfig.py
@@ -86,6 +86,8 @@ XENAPI_CFG_TO_LEGACY_CFG = {
     'uuid': 'uuid',
     'vcpus_number': 'vcpus',
     'cpus': 'cpus',
+    'cpu_weight': 'cpu_weight',
+    'cpu_cap': 'cpu_cap',
     'memory_static_min': 'memory',
     'memory_static_max': 'maxmem',
     'name_label': 'name',

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