Received: by 10.192.165.148 with SMTP id m20csp4764522imm; Tue, 1 May 2018 03:27:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp/+somBRYuTdYEfiDfG7PPUqqSs8KYZjBHZSzrTFRp3j8fDAGPiNHvb7OlmqMmtcb5YZmc X-Received: by 10.167.132.132 with SMTP id u4mr15212808pfn.46.1525170472980; Tue, 01 May 2018 03:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525170472; cv=none; d=google.com; s=arc-20160816; b=ix3+YjLvZWjEP3GU6O/lH6qf7XMedMfGa6uHZoXxVLpKwa41PTNkRgUHrTOLyZnyCt Z0LOqBwyyZ1yLFOk38A/YsqGHj/4LBI+NL0O6QNhyQvHF5NWZ1FNV2FJn1uvO4ebKC/7 RylJYfUOLRc8kk7lRZ4pvmxILTdfC9zWCKoEar+bLSEwa/437v6sHOHF8Aw8iE+Vegkx rsTLQRMgPmvWG5705lPxjfE8gt7sQRP4/3JHAWwibZI9+x1qq3hTQw30nTuuVZ3q2Syp nVMSjJ3J4qaoWFszuYKSWsg1pcxvaqXFs9epPdVlutMbUwAow9Mz6wtNb/CuS2wDNFA/ SsRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=zkcke2zyUjANZJGUzI+8Z7b4bKh8IvH6d+DgVKPjJI0=; b=W/XTsWTKHFjg+ZNpBrDHEz58+WiWQd6nFrgAuqXWWTh9iWUEPT1uZiSzaBil6yfq/2 TK/64i0SIUTAdhIElsaW8VLpPQSkSv+slkghgDKRjuu4TlpDyLL/LjqxBZ5Qt+vqkW3o y6QPzXwpbeqY2kbDcLYLcwJRyr9+AlaRuQysCU1hTQc7cPJWvrpDa5cNz1BY9hVM0SZp eJswc0fC0bhnjpybxsfLbQb5fOxFOkbGwd+qTUafvclJf32YQgho65R8PDB+C9Yzh0NG +sdKDx4xGJZH2NgDt8T5hFgddyMVxQR2LC/MKPOV70k47SiNgPbTv+OpyYOHGCcCAKox B2Vw== 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 o7-v6si7432915pgp.525.2018.05.01.03.27.38; Tue, 01 May 2018 03:27:52 -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 S1754577AbeEAK1Q (ORCPT + 99 others); Tue, 1 May 2018 06:27:16 -0400 Received: from foss.arm.com ([217.140.101.70]:45186 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754477AbeEAK1P (ORCPT ); Tue, 1 May 2018 06:27:15 -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 EE0A5F; Tue, 1 May 2018 03:27:14 -0700 (PDT) Received: from localhost (e105922-lin.cambridge.arm.com [10.1.207.29]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6F13C3F5A0; Tue, 1 May 2018 03:27:14 -0700 (PDT) From: Punit Agrawal To: kvmarm@lists.cs.columbia.edu Cc: Punit Agrawal , linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, christoffer.dall@arm.com, linux-kernel@vger.kernel.org, suzuki.poulose@arm.com Subject: [PATCH v2 0/4] KVM: Support PUD hugepages at stage 2 Date: Tue, 1 May 2018 11:26:55 +0100 Message-Id: <20180501102659.13188-1-punit.agrawal@arm.com> X-Mailer: git-send-email 2.17.0 X-ARM-No-Footer: FoSSMail Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patchset adds support for PUD hugepages at stage 2. This feature is useful on cores that have support for large sized TLB mappings (e.g., 1GB for 4K granule). Previous postings can be found at [0][1]. Support is added to code that is shared between arm and arm64. Dummy helpers for arm are provided as the port does not support PUD hugepage sizes. There is a small conflict with the series to add support for 52 bit IPA[2]. The patches have been functionally tested on an A57 based system. The patchset is based on v4.17-rc3 and incorporates feedback received on the previous version. Thanks, Punit Changes v2: * Create helper to check if the page should have exec permission [1/4] * Fix broken condition to detect THP hugepage [1/4] * Fix in-correct hunk resulting from a rebase [4/4] [0] https://www.spinics.net/lists/arm-kernel/msg628053.html [1] https://lkml.org/lkml/2018/4/20/566 [2] https://lwn.net/Articles/750176/ Punit Agrawal (4): KVM: arm/arm64: Share common code in user_mem_abort() KVM: arm/arm64: Introduce helpers to manupulate page table entries KVM: arm64: Support dirty page tracking for PUD hugepages KVM: arm64: Add support for PUD hugepages at stage 2 arch/arm/include/asm/kvm_mmu.h | 40 +++++++++ arch/arm64/include/asm/kvm_mmu.h | 30 +++++++ arch/arm64/include/asm/pgtable-hwdef.h | 4 + arch/arm64/include/asm/pgtable.h | 2 + virt/kvm/arm/mmu.c | 120 +++++++++++++++++-------- 5 files changed, 161 insertions(+), 35 deletions(-) -- 2.17.0