]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Limit CPU count by KVM_CAP_NR_VCPUS
authorPekka Enberg <penberg@kernel.org>
Sat, 7 May 2011 14:37:28 +0000 (17:37 +0300)
committerPekka Enberg <penberg@kernel.org>
Sat, 7 May 2011 14:39:37 +0000 (17:39 +0300)
commitb1ecfb588f366ac4b5118ed020170e71c5247486
treee0ce26d89ac511b37db432101cf9654c91b2b06c
parent7bc8e2ca4d2dce48f51cee48bd2d3a8b0ee719a8
kvm tools: Limit CPU count by KVM_CAP_NR_VCPUS

This patch limits the number of CPUs to KVM_CAP_NR_VCPUS when user specifies
more CPUs with the "--cpus=N" command line option than what the in-kernel KVM
is able to handle.

Cc: Asias He <asias.hejun@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Prasad Joshi <prasadjoshi124@gmail.com>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/kvm.h
tools/kvm/kvm-run.c
tools/kvm/kvm.c