From: Paolo Bonzini Subject: Re: [PATCH v2 3/4] KVM: arm/arm64: Move to common kvm_mmu_memcache infrastructure Date: Fri, 15 Mar 2019 18:36:19 +0100 Message-ID: References: <20190131095244.7480-1-christoffer.dall@arm.com> <20190131095244.7480-4-christoffer.dall@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Marc Zyngier , James Hogan , Joerg Roedel , Anshuman Khandual , Sean Christopherson , Paul Mackerras , Christian Borntraeger , kvmarm@lists.cs.columbia.edu To: Christoffer Dall , kvm@vger.kernel.org Return-path: In-Reply-To: <20190131095244.7480-4-christoffer.dall@arm.com> Content-Language: en-US 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 List-Id: kvm.vger.kernel.org On 31/01/19 10:52, Christoffer Dall wrote: > +#define KVM_MMU_CACHE_GFP GFP_KERNEL > +#define KVM_MMU_CACHE_PAGE_GFP (GFP_KERNEL | __GFP_ZERO) This should be GFP_KERNEL_ACCOUNT. Can you leave GFP_KERNEL_ACCOUNT in virt/kvm/kvm_main.c, and only use these #defines to add __GFP_ZERO? I don't think anyone should be using GFP_ATOMIC for instance. Paolo