summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorLinu Cherian2017-03-08 07:08:35 +0100
committerMarc Zyngier2017-03-09 10:13:50 +0100
commit955a3fc6d2a1c11d6d00bce4f3816100ce0530cf (patch)
tree8edcfc0f1bc7f374f60e9397f4cba2724befbe2b /arch/arm64
parentKVM: arm/arm64: Remove KVM_PRIVATE_MEM_SLOTS definition that are unused (diff)
downloadkernel-qcow2-linux-955a3fc6d2a1c11d6d00bce4f3816100ce0530cf.tar.gz
kernel-qcow2-linux-955a3fc6d2a1c11d6d00bce4f3816100ce0530cf.tar.xz
kernel-qcow2-linux-955a3fc6d2a1c11d6d00bce4f3816100ce0530cf.zip
KVM: arm64: Increase number of user memslots to 512
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 guest. Hence increase KVM_USER_MEM_SLOTS to 512 as done in other archs like powerpc. Reviewed-by: Christoffer Dall <cdall@linaro.org> Signed-off-by: Linu Cherian <linu.cherian@cavium.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/include/asm/kvm_host.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h
index 6ac17ee887c9..e7705e7bb07b 100644
--- a/arch/arm64/include/asm/kvm_host.h
+++ b/arch/arm64/include/asm/kvm_host.h
@@ -30,7 +30,7 @@
#define __KVM_HAVE_ARCH_INTC_INITIALIZED
-#define KVM_USER_MEM_SLOTS 32
+#define KVM_USER_MEM_SLOTS 512
#define KVM_COALESCED_MMIO_PAGE_OFFSET 1
#define KVM_HALT_POLL_NS_DEFAULT 500000