Fix the "cpu_weight" and "cpu_cap" parsing issue
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}Signed-off-by Masaki Kanno <[email protected]>
Best regards,
Kan
tools/python/xen/xend/XendConfig.py +2 -0
@@ -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