]> git.proxmox.com Git - qemu.git/commit - kvm-all.c
kvm: Check if smp_cpus exceeds max cpus supported by kvm
authorDunrong Huang <riegamaths@gmail.com>
Tue, 31 Jul 2012 11:18:17 +0000 (19:18 +0800)
committerAvi Kivity <avi@redhat.com>
Thu, 9 Aug 2012 13:16:36 +0000 (16:16 +0300)
commit3ed444e949cd2f0938759836c0991dfabe86f485
tree033d928759a09ef1ad160426bd317b2ef3812301
parentc03b0aa0ca93480e92dc356e58538df0835fe621
kvm: Check if smp_cpus exceeds max cpus supported by kvm

Add a helper function for fetching max cpus supported by kvm.

Make QEMU exit with an error message if smp_cpus exceeds limit
of VCPU count retrieved by invoking this helper function.

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm-all.c