KVM: x86: Raise the hard VCPU count limit
authorSasha Levin <levinsasha928@gmail.com>
Mon, 18 Jul 2011 14:17:15 +0000 (17:17 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:17:57 +0000 (19:17 +0300)
commit8c3ba334f8588e1d5099f8602cf01897720e0eca
tree3f195eba4ff341817990db4b60c4aae829a80d82
parentc298125f4bc30fdbe4b7c33460ef57271cc51a7d
KVM: x86: Raise the hard VCPU count limit

The patch raises the hard limit of VCPU count to 254.

This will allow developers to easily work on scalability
and will allow users to test high VCPU setups easily without
patching the kernel.

To prevent possible issues with current setups, KVM_CAP_NR_VCPUS
now returns the recommended VCPU limit (which is still 64) - this
should be a safe value for everybody, while a new KVM_CAP_MAX_VCPUS
returns the hard limit which is now 254.

Cc: Avi Kivity <avi@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Pekka Enberg <penberg@kernel.org>
Suggested-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Documentation/virtual/kvm/api.txt
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c
include/linux/kvm.h