Received: by 10.192.165.148 with SMTP id m20csp359216imm; Fri, 20 Apr 2018 07:56:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/lJwcnJcV+UWM72seI43n+IpTOgBF43NBFpvY5WrmArl13xW545QzdWrs+slR/IDoDnDcD X-Received: by 2002:a17:902:1e3:: with SMTP id b90-v6mr7861943plb.273.1524236205798; Fri, 20 Apr 2018 07:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524236205; cv=none; d=google.com; s=arc-20160816; b=tWUM0x86hb5VjPYb9AGpKNdoAT1BLwGda6eluJTA0XL05vdr9LQKq7Wt//9yDBLhqX DzsffiXxEX2YIvbjOiqmqTtiEI/DCST+CuFgrDcnyJGE61e+rxwBc4L7QOMYptYSzELu ieXinH+VVvlx3K9Ry2dYYbe4+YoK3uL5GDMsR7xNsk5GtA0seHNVBaQJLDeIqKVRlSHd wS5bQ6JxBmExvCXj5Ty2VsSnnhuyhYHq0tKz04Sq0EgytPswB/YyDUJfd5z/ggduej1O bEN3/qZ/g1V4Q24x0j5p3hU3DDIUkBElt61KF6lprRhcrZ717uKR4npdmLX9D5YxpyYD DlpQ== 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=GtXva1vb79LhW/Jf7h82lRn9UrI3oaX+p3bGo6QjmJw=; b=OfwJfZ6IKkmK+rlzA9UB1QAF+lLPTxczSr1jtuERp5BVoLA1565KefaHmxg4v5qxsG Nd9W8xvav5sbMjIJt06ZS3AhAOXfNJLUbeeLqT5/8Pui0fG6Ic6q1naI5zxK92MNbE7+ dTz+Id3j8kqc2eXnFPE1uLK94VMr1njiL6bmZDwPa5OoYqUPH8pKyziBSa+AMS9sYZiu RfaTAyBIz5ZoCRBAL0EdxPKL1SMHjw9nFzcZF43CJuCzDAtmOOl4ZH66C2d/6Ndx74Sx Ta05cJnIehrzzbj71PkFN3oISOiT8p1HeWK7z5twroJiLWfxDZamk9J71zuK8f9BRvUt xRww== 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 s11-v6si5911138plj.321.2018.04.20.07.56.31; Fri, 20 Apr 2018 07:56:45 -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 S1755342AbeDTOy4 (ORCPT + 99 others); Fri, 20 Apr 2018 10:54:56 -0400 Received: from foss.arm.com ([217.140.101.70]:50106 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755191AbeDTOyz (ORCPT ); Fri, 20 Apr 2018 10:54:55 -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 7304115BE; Fri, 20 Apr 2018 07:54:55 -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 E62313F59D; Fri, 20 Apr 2018 07:54:54 -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 0/4] KVM: Support PUD hugepages at stage 2 Date: Fri, 20 Apr 2018 15:54:05 +0100 Message-Id: <20180420145409.24485-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 posting[0]. 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[1]. The patches have been functionally tested on an A57 based system. The patchset is based on v4.17-rc1. Thanks, Punit [0] https://www.spinics.net/lists/arm-kernel/msg628053.html [1] 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 | 84 +++++++++++++++++++------- 5 files changed, 139 insertions(+), 21 deletions(-) -- 2.17.0