This patch is trying to increase the maximum supported vcpu number. There has been big system supporting more than 256 logical CPUs, and vmware can also support guest system with more than logical 256 CPUs. So kvm should also increase the maximum supported cpu number. This patch only includes kernel kvm's part. The qemu support will be another thread. Signed-off-by: Li, Zhen-Hua <zhen-hual@xxxxxx> --- arch/x86/include/asm/kvm_host.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 7de069af..92cc83c 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -31,8 +31,8 @@ #include <asm/msr-index.h> #include <asm/asm.h> -#define KVM_MAX_VCPUS 255 -#define KVM_SOFT_MAX_VCPUS 160 +#define KVM_MAX_VCPUS 4096 +#define KVM_SOFT_MAX_VCPUS 4096 #define KVM_USER_MEM_SLOTS 125 /* memory slots that are not exposed to userspace */ #define KVM_PRIVATE_MEM_SLOTS 3 -- 2.0.0-rc0 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html