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 97804D6409D for ; Wed, 17 Dec 2025 09:18:33 +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=TNfjRVs4lUS4O2SDsy2bIzoF7cxAO0SVM5OBl2HCE2g=; b=irKtTrBz6dZ7G0FcAQkGMDClhm NeoWQuR3JTH7ZApQoGw9rYfXOwhZ1OO9ROCtlHIgLhqNf8vFdRgGr9rXhBGQ71HKBUIS0AaYhRT5C IR7RnvKWxWS6LETyq6Zz5d6DSh0bLt8oOYU5+eTBMoGTAtzxbXL5Id2azM5cDNCE/BkFG5o8/JMS2 /nLZ/Dh/I0c+VrgBcM9rKpt2+vAuW/tmOcVk5Lgb9XFv8GYdxyqmPNQpSmt1xOFIXJRefs7tbrN8r J5dYgXc8aFJ5L/mX5z1jKW2e67lU3yMUy0sI+5OK8LcVksMAf9Ku0PAI9nH6yn5IB5ehbtEPokRhA 4Ht9+fSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vVnfy-00000006P7G-1KiM; Wed, 17 Dec 2025 09:18:30 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vVnfv-00000006P6u-2aLL for linux-arm-kernel@lists.infradead.org; Wed, 17 Dec 2025 09:18:27 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id A89B66018C; Wed, 17 Dec 2025 09:18:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 583D5C4CEF5; Wed, 17 Dec 2025 09:18:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765963106; bh=7Y02OZvOxXnLNayVDBuC1N/CZtD5Y5yPcSygrhZZtUI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vFVNTP4EmLidG8cSKtBE1jZnLrlxPDNxtOgV5aSc38bboGUdCMd1zMphF0D0N0XGW zOn1LqSj3nV1pNyuTW6HhYop8NkiYg1n7H/P5mOrryJDI2ywwjVw21iA8vaxJCpkfF 2gbUYvZMs6TuA4Zhv29/qsPWi4+XTQVB68D+/jNXFIXM9RSLqrxP3dGL+Zjs78g5kw 80h52yCHpti8EKgZ8Yqa6B/RT8GrgaY1SEPtk8EjQL2kmxdIL5Zk15Iej4GMLDWNyM twNcb/k8wBk9yc1c9PRcIudU+Dlwbvnsh6k3Z+9gEa84CePiNjgjKF8Fc5xMxj0rsM GVGFXxlWjVISw== 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.98.2) (envelope-from ) id 1vVnfr-0000000DIRv-415h; Wed, 17 Dec 2025 09:18:24 +0000 Date: Wed, 17 Dec 2025 09:18:23 +0000 Message-ID: <867bulo49s.wl-maz@kernel.org> From: Marc Zyngier To: Alexandru Elisei Cc: oupton@kernel.org, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, qperret@google.com, will@kernel.org, tabba@google.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev Subject: Re: [PATCH v3 0/4] KVM: arm64: pKVM fixes In-Reply-To: <20251216103053.47224-1-alexandru.elisei@arm.com> References: <20251216103053.47224-1-alexandru.elisei@arm.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/30.1 (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: alexandru.elisei@arm.com, oupton@kernel.org, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, qperret@google.com, will@kernel.org, tabba@google.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false 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 Tue, 16 Dec 2025 10:30:49 +0000, Alexandru Elisei wrote: > > v2 can be found at [1]. > > Similar to [2], when trying to run an unprotected VM on FVP with S1PIE enabled > and kvm-arm.mode=protected, writes to PIRE0_EL1 made by the guest in > __cpu_setup() are trapped by KVM and the BUG_ON(!r->access) is hit. That's > because HFGWTR_EL2.nPIRE0_EL1 is an inverse polarity trap and the FGT values for > the unprotected pKVM VCPU weren't being propagated from kvm_arch_vcpu_load(). > > Couldn't figure out how to run a protected pKVM VM, so that's untested. Reviewed-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.