KVM: MIPS: Increase KVM_MAX_VCPUS and KVM_USER_MEM_SLOTS to 16
authorHuacai Chen <chenhc@lemote.com>
Sat, 23 May 2020 07:56:30 +0000 (15:56 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jun 2020 17:48:45 +0000 (13:48 -0400)
Loongson-3 based machines can have as many as 16 CPUs, and so does
memory slots, so increase KVM_MAX_VCPUS and KVM_USER_MEM_SLOTS to 16.

Reviewed-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Co-developed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Message-Id: <1590220602-3547-4-git-send-email-chenhc@lemote.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/include/asm/kvm_host.h

index 31c84d86c8f6e0bd1b8b23eb9f11a261515d1d7d..bee961997de3599bce735188d06fea1252b3e975 100644 (file)
@@ -78,8 +78,8 @@
 #define KVM_REG_MIPS_CP0_KSCRATCH6     MIPS_CP0_64(31, 7)
 
 
-#define KVM_MAX_VCPUS          8
-#define KVM_USER_MEM_SLOTS     8
+#define KVM_MAX_VCPUS          16
+#define KVM_USER_MEM_SLOTS     16
 /* memory slots that does not exposed to userspace */
 #define KVM_PRIVATE_MEM_SLOTS  0