Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1457003pxb; Thu, 4 Mar 2021 11:47:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGV761yCvwDqSzFTkDRiTZCGyK/sZ0wtsyKSXjxFDws58QtVAI8hgwMROCqJv4kV6lcKgS X-Received: by 2002:aa7:d4d6:: with SMTP id t22mr6410283edr.376.1614887224930; Thu, 04 Mar 2021 11:47:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614887224; cv=none; d=google.com; s=arc-20160816; b=VjqZj+5SaIc8+q4goLGVr/qRauTS7bBiq6BinmXyLEWhdfJLBWLT/jpxrfi+ki+G0v Xwv5YIKloAX1nD6OaGiGCuPOgLaKb678Y4LVk4YUkfGPxiKH2BEUG3Wtvw4DqqzqNV82 ZurdGQyMAiicuH3DYGkNYLCFBjJbJnAkYtL68JOvGfzJffPXDZTQ5rpY4IK+Zvt3z4I/ mNlO94JZnn39e9+GR4+3Dv7R+gbAcnQEqMR8uN0qExAhVPp6EJfGYOyxxovKOaxC6fXp Gwk8m3PaMxwUNrEtBjP0MtjyFmg7AiWnuRm/2yVQOinbj6tuA49ty5V5I97WE2wtn19O HQ0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Oe2/vJrnpW9cfQ8/o3IkB6k5DABxWFeJkC02nynyxn8=; b=N+HTuQQZv0PM5B5A6xUjPqE9Kmxy0Jq4h3qdKl4WB0mLOv8z/UY4WPMTUogaCRxcrI xISwiMhEFWjwcn0GBYMj/vHbAEFqU19zanIYny9FvELjAYbzfcApkk7vttgN5q6R+2Ms boTvAR1feYsAxoxbHgcvr40MiRCAdKMGCRgUYbnxRIK9KlaMC1VRrWb/sUwGusjU7giB /qaf5BLKXsCDvx7OFN2dZckw6ApNr/jt/xXsrYxVrYlvUo3ZKzaNLXgBSYLqDjC02l3a 7vbCpTEVeY79zebU5cAmSP1FPcD9KTqXsrYHo6JIxrPLABTpd+uYSjEJPbd07TxFwgwn jD+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="T/ZdMeD9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si304637edd.177.2021.03.04.11.46.41; Thu, 04 Mar 2021 11:47:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="T/ZdMeD9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236759AbhCDTpY (ORCPT + 99 others); Thu, 4 Mar 2021 14:45:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:46032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231734AbhCDTpS (ORCPT ); Thu, 4 Mar 2021 14:45:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7A75E64F52; Thu, 4 Mar 2021 19:44:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614887078; bh=MCPai1ot4VOLKCgUqTHIX0hjr6qRhCdZXO2eAD7YTPA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T/ZdMeD99zLdiu5Mf8+6r1+WLZj8tYYhFIwSur1ZSlTeN2C3FD8ngHfEZ5tQjAkKS i/2vkYjl3E62JA/s9bOuiA9Ozuv1Bwd8eKSuUy84Y565l7dNIBRFsmJY1ko/9BI1zO XGygWLtIKgQ0NQ4nv8T6rPaWer/Ow0WyrBR/Ad1jrJSdYga/wXwoZrr7EVVRgghzvG gUOnwjnLsSzN6a+or2rPjp0N11Y3HmKgPGYJLo3ZMBCltFV5AHcnHaelWNdGQFnxw7 CFGqNl84TaX4bqlMCfYXdymJ1liZhxR/ckgJ55j5tiiFo6hEEgAqUyRO8jhFrQ2Bl5 rl4k0yAsojpzw== Date: Thu, 4 Mar 2021 19:44:32 +0000 From: Will Deacon To: Quentin Perret Cc: catalin.marinas@arm.com, maz@kernel.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, android-kvm@google.com, linux-kernel@vger.kernel.org, kernel-team@android.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, tabba@google.com, mark.rutland@arm.com, dbrazdil@google.com, mate.toth-pal@arm.com, seanjc@google.com, robh+dt@kernel.org Subject: Re: [PATCH v3 23/32] KVM: arm64: Make memcache anonymous in pgtable allocator Message-ID: <20210304194431.GC21950@willie-the-truck> References: <20210302150002.3685113-1-qperret@google.com> <20210302150002.3685113-24-qperret@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210302150002.3685113-24-qperret@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 02, 2021 at 02:59:53PM +0000, Quentin Perret wrote: > The current stage2 page-table allocator uses a memcache to get > pre-allocated pages when it needs any. To allow re-using this code at > EL2 which uses a concept of memory pools, make the memcache argument of > kvm_pgtable_stage2_map() anonymous, and let the mm_ops zalloc_page() > callbacks use it the way they need to. > > Signed-off-by: Quentin Perret > --- > arch/arm64/include/asm/kvm_pgtable.h | 6 +++--- > arch/arm64/kvm/hyp/pgtable.c | 4 ++-- > 2 files changed, 5 insertions(+), 5 deletions(-) Acked-by: Will Deacon Will