summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorJordan Rinke <jordan@openstack.org>2011-01-27 17:56:54 +0000
committerTarmac <>2011-01-27 17:56:54 +0000
commit05f49c2942d53e648f07300754fdd4338c0964cf (patch)
tree50820c58750f431460d5ac44755dae4a1d05d5da /nova
parente70e9cdd4fe91d61cb5292699ff1ce20842bbc17 (diff)
parent498171d2212f51185e9479da1222f0753acab779 (diff)
Changed cpu limit to a static value of 100000 (100%) instead of using the vcpu value of 1. There is no weight/limit variable now so I see no other solution than the static max limit.
Diffstat (limited to 'nova')
-rw-r--r--nova/virt/hyperv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/hyperv.py b/nova/virt/hyperv.py
index 5afa3221d..29d18dac5 100644
--- a/nova/virt/hyperv.py
+++ b/nova/virt/hyperv.py
@@ -191,7 +191,7 @@ class HyperVConnection(object):
vcpus = long(instance['vcpus'])
procsetting.VirtualQuantity = vcpus
procsetting.Reservation = vcpus
- procsetting.Limit = vcpus
+ procsetting.Limit = 100000 # static assignment to 100%
(job, ret_val) = vs_man_svc.ModifyVirtualSystemResources(
vm.path_(), [procsetting.GetText_(1)])