mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xm: Fix maxvcpus support
Signed-off-by: Michal Novotny <minovotn@redhat.com>
This commit is contained in:
1 parent
f9abceac96
commit
f0e8b55eb1
1 file changed
+1
@@ -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
|
||||
|
||||