]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
kvm: raise KVM_SOFT_MAX_VCPUS to support more vcpus
authorDan Duval <dan.duval@oracle.com>
Wed, 17 Jun 2015 17:09:26 +0000 (13:09 -0400)
committerDhaval Giani <dhaval.giani@oracle.com>
Mon, 16 Jan 2017 21:40:14 +0000 (16:40 -0500)
Orabug: 24820591

Despite the name, the kernel's manifest constant KVM_SOFT_MAX_VCPUS
defines the hard maximum number of vcpus that libvirt will support.
(When "--vcpus <n>" is specified on the virt-install command line,
the utility queries the kernel via ioctl(..., KVM_CAP_NR_VCPUS)
and uses the returned value as its limit.  Right now, the ioctl
implementation simply returns KVM_SOFT_MAX_VCPUS.)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
(cherry picked from commit dc6eb6241ff41cd2e5e73bc6ebd71a754fb5333c)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
Reviewed-by: Chuck Anderson <chuck.anderson@oracle.com>
Conflicts:
arch/x86/include/asm/kvm_host.h

Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
arch/x86/include/asm/kvm_host.h

index f4a555beef1908b78c9ad6992d4727d59d9c81ee..a7b8e814c16cce6b51e0db15f98161c267fe8a7e 100644 (file)
@@ -32,7 +32,7 @@
 #include <asm/asm.h>
 
 #define KVM_MAX_VCPUS 255
-#define KVM_SOFT_MAX_VCPUS 160
+#define KVM_SOFT_MAX_VCPUS 254
 #define KVM_USER_MEM_SLOTS 509
 /* memory slots that are not exposed to userspace */
 #define KVM_PRIVATE_MEM_SLOTS 3