]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Update max VCPU limit
authorSasha Levin <levinsasha928@gmail.com>
Wed, 20 Jul 2011 11:21:12 +0000 (14:21 +0300)
committerPekka Enberg <penberg@kernel.org>
Wed, 20 Jul 2011 11:55:57 +0000 (14:55 +0300)
commite3fbb040502eea324b2b2af59c49873f104c0df6
tree3ba54168e295f80d33f088c69aab9b41f0b4afb0
parent1c1eada2353b03589b3ada3bc81a31b5e3797aaa
kvm tools: Update max VCPU limit

Use the newly introduced KVM_CAP_MAX_VCPUS to determine max VCPU count
the kernel side supports.

Using more VCPUs than the recommended limit will issue a warning, using more
than the absolute maximum will limit it down to the absolute maximum.

Note this patch contains a hack to define KVM_CAP_MAX_VCPUS and should be
removed when the kernel patch is merged with mainline.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/builtin-run.c
tools/kvm/include/kvm/kvm.h
tools/kvm/kvm.c