From mboxrd@z Thu Jan 1 00:00:00 1970 From: linucherian@gmail.com Subject: [PATCH v4 4/4] KVM: arm64: Increase number of user memslots to 512 Date: Wed, 8 Mar 2017 11:38:35 +0530 Message-ID: <1488953315-22375-5-git-send-email-linucherian@gmail.com> References: <1488953315-22375-1-git-send-email-linucherian@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 5752640C66 for ; Wed, 8 Mar 2017 01:07:54 -0500 (EST) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZPfco7lTEjsG for ; Wed, 8 Mar 2017 01:07:53 -0500 (EST) Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 4DE8E40CA7 for ; Wed, 8 Mar 2017 01:07:53 -0500 (EST) Received: by mail-pf0-f194.google.com with SMTP id o126so2624545pfb.1 for ; Tue, 07 Mar 2017 22:09:16 -0800 (PST) In-Reply-To: <1488953315-22375-1-git-send-email-linucherian@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: christoffer.dall@linaro.org, marc.zyngier@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, pbonzini@redhat.com, rkrcmar@redhat.com Cc: sunil.goutham@cavium.com, Linu Cherian List-Id: kvmarm@lists.cs.columbia.edu From: Linu Cherian 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. Signed-off-by: Linu Cherian --- 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_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 -- 1.9.1