Skip to content

Commit 955a3fc

Browse files
Linu CherianMarc Zyngier
authored andcommitted
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 <[email protected]> Signed-off-by: Linu Cherian <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
1 parent 3e92f94 commit 955a3fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/include/asm/kvm_host.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
#define __KVM_HAVE_ARCH_INTC_INITIALIZED
3232

33-
#define KVM_USER_MEM_SLOTS 32
33+
#define KVM_USER_MEM_SLOTS 512
3434
#define KVM_COALESCED_MMIO_PAGE_OFFSET 1
3535
#define KVM_HALT_POLL_NS_DEFAULT 500000
3636

0 commit comments

Comments
 (0)