xm: Fix maxvcpus support

Signed-off-by: Michal Novotny <minovotn@redhat.com>
This commit is contained in:
Keir Fraser committed 2009-11-26 10:57:26 +00:00
1 parent f9abceac96
commit f0e8b55eb1
1 file changed
+1
+1
View File
@@ -1041,6 +1041,7 @@ def make_config(vals):
config.append(['vcpus', maxvcpus])
if maxvcpus and vcpus:
config.append(['vcpu_avail', (1 << vcpus) - 1])
config.append(['vcpus', maxvcpus])
# For case we don't have maxvcpus set but we have vcpus we preserve
# old behaviour
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.