summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorIgor Mammedov2014-11-06 16:52:47 +0100
committerPaolo Bonzini2014-11-14 10:02:40 +0100
commit1d4e7e3c0bca747d0fc54069a6ab8393349431c0 (patch)
treed880c353231a23a25effbf1fdd2efeac9b99fbd4 /arch/x86
parentkvm: svm: move WARN_ON in svm_adjust_tsc_offset (diff)
downloadkernel-qcow2-linux-1d4e7e3c0bca747d0fc54069a6ab8393349431c0.tar.gz
kernel-qcow2-linux-1d4e7e3c0bca747d0fc54069a6ab8393349431c0.tar.xz
kernel-qcow2-linux-1d4e7e3c0bca747d0fc54069a6ab8393349431c0.zip
kvm: x86: increase user memory slots to 509
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>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/kvm_host.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index dc932d388c43..769db36a3001 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -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)