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 E8393CF07BF for ; Thu, 10 Oct 2024 08:15:09 +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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From: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=uvex2072kSqEXNvE9lc55fHy7VD5yiL1TNOcRVGLrdk=; b=UiBc/PK0hz34/z0v8Q6Od0zzfC AeGcVO71H6hGnGm9BYDoMi7EVuO/ezdwWQCQCuUEJwPyD7xmi/bHi9kBwBMMnpVAXdhwIagv+GJZs zizQZ8M++eUefO+FyCGW9YDRNE8OR/VHKUSO1yNQybHShceyWPqh3fuPM/GLdehpHIIWHgskZLouU znthAnCz4Ol8XxQmFtHjW1viPjuwiOshh2fJmTWa+1EnBq71avyTMehAd1sxqBX2MtTxbssSfQCfn aY3dk1OrlAfv2tuTkMy/k4UpARrh30StvrVRKJoqEOPoF8KYoLrSvRZhjgHw5VB8egbfah6DScUpJ 8J+lio4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syoK0-0000000Bw7O-1duT; Thu, 10 Oct 2024 08:14:56 +0000 Received: from out-186.mta0.migadu.com ([91.218.175.186]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1synzV-0000000Bsjd-0aCf for linux-arm-kernel@lists.infradead.org; Thu, 10 Oct 2024 07:53:49 +0000 Date: Thu, 10 Oct 2024 00:53:35 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1728546822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uvex2072kSqEXNvE9lc55fHy7VD5yiL1TNOcRVGLrdk=; b=cliKSiQIhdo0vIMUoaxCLuMUMwCsh0utwm22gQ2gvmB01/UGczP+qim9dadB6EsGb3Lziz sAuNCCp4mOIvC23XAcpZYz9A9zqvUX4wakcr79NwK7ZNl6QCE9wqqWpVeNkaz9y5PSkv1i 83Y36CReuYULHpKzq0oh0D10uKzWvhc= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Marc Zyngier Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, Joey Gouly , Suzuki K Poulose , Zenghui Yu , Alexandru Elisei , Mark Brown Subject: Re: [PATCH v4 29/36] KVM: arm64: Subject S1PIE/S1POE registers to HCR_EL2.{TVM,TRVM} Message-ID: References: <20241009190019.3222687-1-maz@kernel.org> <20241009190019.3222687-30-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241009190019.3222687-30-maz@kernel.org> X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241010_005345_364631_0161C174 X-CRM114-Status: GOOD ( 13.75 ) 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 Wed, Oct 09, 2024 at 08:00:12PM +0100, Marc Zyngier wrote: > All the El0/EL1 S1PIE/S1POE system register are caught by the HCR_EL2 > TCM and TRVM bits. Reflect this in the coarse grained trap table. typo: TVM > Signed-off-by: Marc Zyngier > --- > arch/arm64/kvm/emulate-nested.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm64/kvm/emulate-nested.c b/arch/arm64/kvm/emulate-nested.c > index ddcbaa983de36..0ab0905533545 100644 > --- a/arch/arm64/kvm/emulate-nested.c > +++ b/arch/arm64/kvm/emulate-nested.c > @@ -704,6 +704,10 @@ static const struct encoding_to_trap_config encoding_to_cgt[] __initconst = { > SR_TRAP(SYS_MAIR_EL1, CGT_HCR_TVM_TRVM), > SR_TRAP(SYS_AMAIR_EL1, CGT_HCR_TVM_TRVM), > SR_TRAP(SYS_CONTEXTIDR_EL1, CGT_HCR_TVM_TRVM), > + SR_TRAP(SYS_PIR_EL1, CGT_HCR_TVM_TRVM), > + SR_TRAP(SYS_PIRE0_EL1, CGT_HCR_TVM_TRVM), > + SR_TRAP(SYS_POR_EL0, CGT_HCR_TVM_TRVM), > + SR_TRAP(SYS_POR_EL1, CGT_HCR_TVM_TRVM), > SR_TRAP(SYS_TCR2_EL1, CGT_HCR_TVM_TRVM_HCRX_TCR2En), > SR_TRAP(SYS_DC_ZVA, CGT_HCR_TDZ), > SR_TRAP(SYS_DC_GVA, CGT_HCR_TDZ), > -- > 2.39.2 >