Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5DC46C25B48 for ; Thu, 26 Oct 2023 13:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=T8Sz6vQvsXHWNIm0MkZPf2pyndo+xMxVBQie2DtK3Go=; b=PPA2NJzF6WtqSB 4rdSqHyR9VV7SJixO/IQ7xLXnYw1mBzwKIYoxeoht7Hpdt/8iMFV/ntGcqrEU6FVyPoIm7AHkplZj GSyPR5iR2Zr81dv1l6yty15Fy66gZ8D5td8Q5eFzqaad7OyurZPvZtbmZrl6G9mI+7bTarIzSUahn 2V3Szn6zfW7oWbN+jjCXgOyRNio69bgbOydz/0SJdCoGp+mMDGfcPlP+0tGFcrPUNGWNYMENrasSv hTl9Wtku9ONvzHoWC4JfxAgjmyldv0eEngzLjzzVI1iTn3PffS4AxCKZj/qXAw8g6RSupCxOC9d5j WF4+QP5ygdB41nQAfFpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qw0Iq-00EYDv-0j; Thu, 26 Oct 2023 13:21:36 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qw0In-00EYDc-30 for linux-arm-kernel@lists.infradead.org; Thu, 26 Oct 2023 13:21:35 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5AF152F4; Thu, 26 Oct 2023 06:22:10 -0700 (PDT) Received: from [10.1.36.151] (XHFQ2J9959.cambridge.arm.com [10.1.36.151]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 83B2F3F64C; Thu, 26 Oct 2023 06:21:27 -0700 (PDT) Message-ID: <5651bb31-9ef6-4dfc-b146-64606279bbf7@arm.com> Date: Thu, 26 Oct 2023 14:21:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 00/61] arm64: Add support for LPA2 at stage1 and WXN Content-Language: en-GB To: Ard Biesheuvel , linux-arm-kernel@lists.infradead.org Cc: Ard Biesheuvel , Catalin Marinas , Will Deacon , Marc Zyngier , Mark Rutland , Anshuman Khandual , Kees Cook , Joey Gouly References: <20230912141549.278777-63-ardb@google.com> From: Ryan Roberts In-Reply-To: <20230912141549.278777-63-ardb@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231026_062134_019061_45A9485F X-CRM114-Status: GOOD ( 19.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 12/09/2023 15:15, Ard Biesheuvel wrote: > From: Ard Biesheuvel > > This is a followup to [0], which was sent out more than 6 months ago. > Thanks to Ryan and Mark for feedback and review. This series is > independent from Ryan's work on adding support for LPA2 to KVM - the > only potential source of conflict should be the patch "arm64: kvm: Limit > HYP VA and host S2 range to 48 bits when LPA2 is in effect", which could > simply be dropped in favour of the KVM changes to make it support LPA2. > > Changes since v3: > - add some acks and incorporate some minor suggested tweaks, mostly > related to coding style and comments > - rebase onto v6.6-rc1 > - add patch to deal with references to PTE_MAYBE_NG from asm code > - add patch to move dummy 'nokaslr' parsing routine out of > idreg-override.c > - rework ptdump address marker array population > > NOTE: this series still does not address the TLBI changes needed for > LPA2 and 5 level paging. Ryan seems to have a good handle on those, and > this work is complementary with his KVM work to a fair extent anyway. As per the above note, I think this series would be broken on a system that supports both LPA2 and TLB_RANGE. The issue is that the BADDR field is specified in 64K units when LPA2 is enabled, but in PAGE_SIZE units when LPA2 is disabled. I think this patch set will continue to set BADDR in PAGE_SIZE units when LPA2 is enabled, causing the HW to invalidate the wrong range? My patch at [1] solves this. I'm currently doing some benchmarking refactoring the patches into a differnet shape as requested by Mark. Anyway, I wonder if this is a blocker for merging this series? [1] https://lore.kernel.org/kvmarm/20231009185008.3803879-3-ryan.roberts@arm.com/ Thanks, Ryan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel