]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
kvm: x86: increase user memory slots to 509
authorIgor Mammedov <imammedo@redhat.com>
Thu, 6 Nov 2014 15:52:47 +0000 (15:52 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Nov 2014 09:02:40 +0000 (10:02 +0100)
With the 3 private slots, this gives us 512 slots total.
Motivation for this is in addition to assigned devices
support more memory hotplug slots, where 1 slot is
used by a hotplugged memory stick.
It will allow to support upto 256 hotplug memory
slots and leave 253 slots for assigned devices and
other devices that use them.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h

index dc932d388c43ac8d8d5519183e2c549f99315e8f..769db36a30018d842c03d43eb0c91eeef352f813 100644 (file)
@@ -33,7 +33,7 @@
 
 #define KVM_MAX_VCPUS 255
 #define KVM_SOFT_MAX_VCPUS 160
-#define KVM_USER_MEM_SLOTS 125
+#define KVM_USER_MEM_SLOTS 509
 /* memory slots that are not exposed to userspace */
 #define KVM_PRIVATE_MEM_SLOTS 3
 #define KVM_MEM_SLOTS_NUM (KVM_USER_MEM_SLOTS + KVM_PRIVATE_MEM_SLOTS)