]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Increase memslots to 512
authorThomas Huth <thuth@redhat.com>
Wed, 9 Dec 2015 10:34:07 +0000 (11:34 +0100)
committerPaul Mackerras <paulus@samba.org>
Thu, 10 Dec 2015 00:36:24 +0000 (11:36 +1100)
commitcb27452d098c11f517c21644d860dd327eef7658
tree604e5639937bd96319dd5edc878f5530bc14c89e
parent65cbc4c02141062289063605e13d646137b660cf
KVM: PPC: Increase memslots to 512

Only using 32 memslots for KVM on powerpc is way too low, you can
nowadays hit this limit quite fast by adding a couple of PCI devices
and/or pluggable memory DIMMs to the guest.

x86 already increased the KVM_USER_MEM_SLOTS to 509, to satisfy 256
pluggable DIMM slots, 3 private slots and 253 slots for other things
like PCI devices (i.e. resulting in 256 + 3 + 253 = 512 slots in
total). We should do something similar for powerpc, and since we do
not use private slots here, we can set the value to 512 directly.

While we're at it, also remove the KVM_MEM_SLOTS_NUM definition
from the powerpc-specific header since this gets defined in the
generic kvm_host.h header anyway.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/include/asm/kvm_host.h