diff options
author | cl349@arcadians.cl.cam.ac.uk <cl349@arcadians.cl.cam.ac.uk> | 2005-01-17 15:45:31 +0000 |
---|---|---|
committer | cl349@arcadians.cl.cam.ac.uk <cl349@arcadians.cl.cam.ac.uk> | 2005-01-17 15:45:31 +0000 |
commit | c4fea869994be8550863aff0d682c63602d61bb3 (patch) | |
tree | 7ec95eea1b6380ab60c71ca1655da5726f04b6bc /tools/examples/xmexample2 | |
parent | e46dd6d5ae9b557428f80a2383c9962c039bc13b (diff) | |
download | xen-c4fea869994be8550863aff0d682c63602d61bb3.tar.gz xen-c4fea869994be8550863aff0d682c63602d61bb3.tar.bz2 xen-c4fea869994be8550863aff0d682c63602d61bb3.zip |
bitkeeper revision 1.1159.222.1 (41ebdd9btvi-aV_bkwfCgKSenC9XbQ)
Add an optional parameter (vcpus) to the xc_linux_build function replacing
the getenv() previously used and removing the requirement of using maxcpus
kernel parameter to limit the number of virtual cpus a guest uses. The value
can now be controlled in the domain configuration files.
The default value of 1 is set in XenDomainInfo.py but is overridden by
parsing the config value.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Diffstat (limited to 'tools/examples/xmexample2')
-rw-r--r-- | tools/examples/xmexample2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/examples/xmexample2 b/tools/examples/xmexample2 index 61479ca5f0..07a80db366 100644 --- a/tools/examples/xmexample2 +++ b/tools/examples/xmexample2 @@ -55,6 +55,10 @@ name = "VM%d" % vmid #cpu = -1 # leave to Xen to pick cpu = vmid # set based on vmid (mod number of CPUs) +# Number of Virtual CPUS to use, default is 1 +#vcpus = 1 +vcpus = 4 # make your domain a 4-way + #---------------------------------------------------------------------------- # Define network interfaces. |