]> xenbits.xensource.com Git - xen.git/commit
x86: make the dom0_max_vcpus option more flexible
authorDavid Vrabel <david.vrabel@citrix.com>
Tue, 11 Sep 2012 10:26:25 +0000 (12:26 +0200)
committerDavid Vrabel <david.vrabel@citrix.com>
Tue, 11 Sep 2012 10:26:25 +0000 (12:26 +0200)
commite626a8c7f06c85584f4285c51bea1a7ed76a25f7
tree7be7b808b41f877b3749085c5958bba2d62bd517
parentc1fc9e2ecb9111c305e459ddba0ff831ff032ad1
x86: make the dom0_max_vcpus option more flexible

The dom0_max_vcpus command line option only allows the exact number of
VCPUs for dom0 to be set.  It is not possible to say "up to N VCPUs
but no more than the number physically present."

Allow a range for the option to set a minimum number of VCPUs, and a
maximum which does not exceed the number of PCPUs.

For example, with "dom0_max_vcpus=4-8":

    PCPUs  Dom0 VCPUs
     2      4
     4      4
     6      6
     8      8
    10      8

Existing command lines with "dom0_max_vcpus=N" still work as before
(and are equivalent to dom0_max_vcpus=N-N).

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
docs/misc/xen-command-line.markdown
xen/arch/x86/domain_build.c