From mboxrd@z Thu Jan 1 00:00:00 1970 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 9C386E77184 for ; Thu, 19 Dec 2024 17:17:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=eJvXreHpC9wYS0vBEmg/uCR+IqPop7uBbUdFpo+9lxE=; b=SUZXJfKzZBdHFczbPVUcMzgrsu 7SJtjxldpir2q/0VdjHg19T3JqX2zR6O5p1h2/zN0jKUTQ7VUeiXJiZzn2MXSNI8fajMczndGzfZl c9yf2pq8V77mSMQEPSrVVHV8MH0p+2ucKSzr7LKtsp1VB8UEpudmjW3trFJdCtbtKYABYvsbCp8WP CpgAagBz9laEHJuvS7eSOcAyF6vKZ1ghTHQbUzHtf1MMa2njFXXwRswZ8BLMWOJmbN0eCRZin6EIh u5qzUED8KPWpU9Mt+7a2NK1gGNWT8UKiwYlYYD77h+nUtj5mZXf095+CgHj1tyPMONsSRRIoE9ixr X/iAIWKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tOK9c-00000002WTp-18zH; Thu, 19 Dec 2024 17:17:40 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tOK3j-00000002UjS-1Xwt for linux-arm-kernel@lists.infradead.org; Thu, 19 Dec 2024 17:11:36 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 1AF9FA427A9; Thu, 19 Dec 2024 17:09:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B8A8C4CECE; Thu, 19 Dec 2024 17:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734628294; bh=zSAk4gJKXUo3cdNuOkGvkqa0l5ek5qLzATtOpSwDR1o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NYlHK909W6Pq0viZhsS7wsad706j6bJC8E2wrMos9vNYu/v1j715/vj7PWyD5JnxB JAhdpbFHlxZrx0PMWyWdDKCKQzJyRS8T30KF7MDMvjq6pDIZfIY1UQVFVoZ283lvqW Pb77X/OX9delrXySoU/gHGcInp+6dOGF31gj8s3HZ911J/QtarWv48l0N8OcRxJz8k 5dml4zTuL7F4W3YArXn4/6da5OqfMZrhA8r16KlU9zYA7iU289YX94s8Btz5tn3PM8 DlndN/+G0syiGESchxMmZCueLsQ+YzDGQxZRuvmD1wVZk2WNpeY+Q+gcROfFbFo3J+ nqt5FTjNeZE3A== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tOK3f-005L6o-PN; Thu, 19 Dec 2024 17:11:31 +0000 Date: Thu, 19 Dec 2024 17:11:31 +0000 Message-ID: <86y10bpph8.wl-maz@kernel.org> From: Marc Zyngier To: Ard Biesheuvel Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ard Biesheuvel , Catalin Marinas , Will Deacon , Mark Rutland , Ryan Roberts , Anshuman Khandual , Kees Cook , Quentin Perret Subject: Re: [PATCH v3 0/6] arm64: Clean up and simplify PA space size handling In-Reply-To: <20241212081841.2168124-8-ardb+git@google.com> References: <20241212081841.2168124-8-ardb+git@google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: ardb+git@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ardb@kernel.org, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, ryan.roberts@arm.com, anshuman.khandual@arm.com, keescook@chromium.org, qperret@google.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241219_091135_466150_B3B764EB X-CRM114-Status: GOOD ( 18.66 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 12 Dec 2024 08:18:42 +0000, Ard Biesheuvel wrote: > > From: Ard Biesheuvel > > This series addresses a number of buglets related to how we handle the > size of the physical address space when building LPA2 capable kernels: > > - reject 52-bit physical addressess in the mapping routines when LPA2 is > configured but not available at runtime > - ensure that TCR.IPS is not set to 52-bits if LPA2 is not supported > - ensure that TCR_EL2.PS and DS match the host, regardless of whether > LPA2 is available at stage 2 > - don't rely on kvm_get_parange() and invalid physical addresses as > control flags in the pKVM page donation APIs > > Finally, the configurable 48-bit physical address space limit is dropped > entirely, as it doesn't buy us a lot now that all the PARange and {I}PS > handling is done at runtime. Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.