Skip to contentSkip to conversation

Fix maxvcpus support

PATCH New Michal Novotny 1 participant 1 message Nov 25, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix maxvcpus support

Hi,
changeset 20495 at http://xenbits.xensource.com/staging/xen-unstable.hg?rev/dc121a3c3a92 is presenting a maxvcpus support that introduces an issue so this is the patch to fix it...

Michal

tools/python/xen/xm/create.py +1 -0
diff -r c0e32941ee69 tools/python/xen/xm/create.py
@@ -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

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