[PATCH V3 4/4] KVM: arm64: Increase number of user memslots to 512

linucherian at gmail.com linucherian at gmail.com
Mon Mar 6 21:52:44 PST 2017

From: Linu Cherian <linu.cherian at cavium.com>

Having only 32 memslots is a real constraint for the maximum
number of PCI devices that can be assigned to a single guest.
Assuming each PCI device/virtual function having two memory BAR
regions, we could assign only 15 devices/virtual functions to a

Hence increase KVM_USER_MEM_SLOTS to 512 as done in other archs like

Signed-off-by: Linu Cherian <linu.cherian at cavium.com>
 arch/arm64/include/asm/kvm_host.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h
index a0409b0..4027002 100644
--- a/arch/arm64/include/asm/kvm_host.h
+++ b/arch/arm64/include/asm/kvm_host.h
@@ -30,7 +30,7 @@
-#define KVM_USER_MEM_SLOTS 32
+#define KVM_USER_MEM_SLOTS 512
 #define KVM_HALT_POLL_NS_DEFAULT 500000

More information about the linux-arm-kernel mailing list