]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commit
Add sanity check for vcpu config
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 24 Mar 2010 17:15:12 +0000 (17:15 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 24 Mar 2010 17:15:12 +0000 (17:15 +0000)
commit24e4c759d63bda8b8cb6ebfd431891525e9923b8
tree78091748335ded01529f8e53f28af76319b52be0
parent73cef2cca413c17f314724c66194315038ea66c3
Add sanity check for vcpu config

Currently Xen/Qemu support max 128 vcpus. To avoid mis-setting
at config file, this patch add sanity check for vcpu config.
1. maxvcpus and vcpus should no more than HVM_MAX_VCPUS (128)
2. vcpus should no more than maxvcpus.

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
vl.c