From 80e6d7280af49c84d66ad1a8161c75bed4eb635d Mon Sep 17 00:00:00 2001 From: Dan Duval Date: Wed, 17 Jun 2015 13:09:26 -0400 Subject: [PATCH] kvm: raise KVM_SOFT_MAX_VCPUS to support more vcpus 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 " 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 Signed-off-by: Santosh Shilimkar (cherry picked from commit dc6eb6241ff41cd2e5e73bc6ebd71a754fb5333c) Signed-off-by: Dhaval Giani Reviewed-by: Chuck Anderson Conflicts: arch/x86/include/asm/kvm_host.h Signed-off-by: Dhaval Giani --- arch/x86/include/asm/kvm_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index f4a555beef19..a7b8e814c16c 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -32,7 +32,7 @@ #include #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 -- 2.50.1