Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp841933imm; Tue, 15 May 2018 09:56:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrNAzTkwbRw8QxilfSNA/jZDxCbxmRfmadNjpGSfk8JJ8mp+R9E3mF4U3d8k0WTCh6GF77a X-Received: by 2002:a62:9fca:: with SMTP id v71-v6mr15894531pfk.233.1526403415798; Tue, 15 May 2018 09:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526403415; cv=none; d=google.com; s=arc-20160816; b=NUa2PqjGGj++KpATT/MEwQ+XqjBaThRWVx/CseXUeEUYOtS/KbUGFQY93PXA56K/G1 D8fRYFk7A3O57uqwzhqlwI1VdkDXPSh7/MIIC2B3gU/WDMUrCWMBu1sMvXr6xYPQQvoC P1GrXtDPiARlzsM/udzD23UnIttlyMgzEFPGzrKy+QfmcxC/MVncFvmdnnp5NyeyMdVW TOH78rfcjH5IBJAc0GwG5rASC6TIo+qyuJkzbqHpLM3/uyZLBAvniGe4S/ev0yAyPrDG Ev/VHM1a8HO+3qx25B07ElgAh7IDM79qsiasjsToTH7c1pZQvwRugW9fGhUeNJFDnXsd S17w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=JA5fB9xrJlLrd95Uo/PAvGFNrQ3gHwKW6dqDVSFBgJY=; b=t+RLQxxEhsh4tlb6AAuAT/iy8lqemIAH9aiJQ30be2NCOWWDfOV0G5pIW4yDz4UVGM 8BLJk3IaCeGFKMWkWq76WR2f5FzFqfsPURkuYsMROrlZSHz6Vc4GdsDYfqgkYRuCDz5G z12tM3UmWmA0ow7nV4YvTw8Q7Uu5SIRjTwpaUChLl4J1zB4c5hNLHWhYj1GUa3Tc0Rmj I7iCy4/PAbwiH1RGJMSKQCTcuqP1cQLruOzCikm2k4Jn4eabcZRknaXmsf/YhFgVMyJj 4yeRGopoph01s+N+pxfNiLXvaaGwlZRWhww35Ug2gy/JmG7+7V/zr9+JZr1R5HnJLgGu gOpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si315650pgc.537.2018.05.15.09.56.41; Tue, 15 May 2018 09:56:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754214AbeEOQ40 (ORCPT + 99 others); Tue, 15 May 2018 12:56:26 -0400 Received: from foss.arm.com ([217.140.101.70]:35710 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754091AbeEOQ4Z (ORCPT ); Tue, 15 May 2018 12:56:25 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3F97180D; Tue, 15 May 2018 09:56:25 -0700 (PDT) Received: from armageddon.cambridge.arm.com (armageddon.cambridge.arm.com [10.1.206.84]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 989A63F589; Tue, 15 May 2018 09:56:23 -0700 (PDT) Date: Tue, 15 May 2018 17:56:21 +0100 From: Catalin Marinas To: Punit Agrawal Cc: kvmarm@lists.cs.columbia.edu, suzuki.poulose@arm.com, marc.zyngier@arm.com, Will Deacon , christoffer.dall@arm.com, linux-kernel@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 4/4] KVM: arm64: Add support for PUD hugepages at stage 2 Message-ID: <20180515165620.37l2epyno3vdcisu@armageddon.cambridge.arm.com> References: <20180501102659.13188-1-punit.agrawal@arm.com> <20180501102659.13188-5-punit.agrawal@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180501102659.13188-5-punit.agrawal@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 01, 2018 at 11:26:59AM +0100, Punit Agrawal wrote: > KVM currently supports PMD hugepages at stage 2. Extend the stage 2 > fault handling to add support for PUD hugepages. > > Addition of pud hugepage support enables additional hugepage > sizes (e.g., 1G with 4K granule) which can be useful on cores that > support mapping larger block sizes in the TLB entries. > > Signed-off-by: Punit Agrawal > Cc: Christoffer Dall > Cc: Marc Zyngier > Cc: Russell King > Cc: Catalin Marinas > Cc: Will Deacon > --- > arch/arm/include/asm/kvm_mmu.h | 19 ++++++++++++ > arch/arm64/include/asm/kvm_mmu.h | 15 ++++++++++ > arch/arm64/include/asm/pgtable-hwdef.h | 4 +++ > arch/arm64/include/asm/pgtable.h | 2 ++ > virt/kvm/arm/mmu.c | 40 ++++++++++++++++++++++++-- > 5 files changed, 77 insertions(+), 3 deletions(-) Since this patch touches a couple of core arm64 files: Acked-by: Catalin Marinas