KVM: x86: Add CONFIG_KVM_MAX_NR_VCPUS to allow up to 4096 vCPUs
[linux-block.git] / arch / x86 / kvm / Kconfig
index ed90f148140dfe093bed15a033b6e322a3cb5f2a..950c12868d304004ff56e7bc95f7c5f395766a33 100644 (file)
@@ -154,4 +154,15 @@ config KVM_PROVE_MMU
 config KVM_EXTERNAL_WRITE_TRACKING
        bool
 
+config KVM_MAX_NR_VCPUS
+       int "Maximum number of vCPUs per KVM guest"
+       depends on KVM
+       range 1024 4096
+       default 4096 if MAXSMP
+       default 1024
+       help
+         Set the maximum number of vCPUs per KVM guest. Larger values will increase
+         the memory footprint of each KVM guest, regardless of how many vCPUs are
+         created for a given VM.
+
 endif # VIRTUALIZATION