From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E8DF2550BA; Sat, 26 Apr 2025 12:29:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745670542; cv=none; b=VEasTalaMZku36AeBGN0xLVZ9j00RlKHzUYMth70mSgFfQXQ0m28RGtn7YGuyCdkRWuY3ByrrEs3w+BHH8tAf02EO95UmD+u/Grd8W3bvfj0oxKXwnn8TyKjxx/3lBI+Q50688/rX8FgTAyM7SkJlmIxOzxUdqqM4EnowZrtTFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745670542; c=relaxed/simple; bh=5X3YyZc0yV/prtY2KpDQtJAXr40u4CELtIg3JxZkaAo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Otp/iey4K6inJ1vN/IMnpuAifr7Rc2EWSWuczjVXIJmdGS5mbwYLzWGsH3RPiQ+QSTg/kQ1AkRTtIAOAEt830ZSXGadWnC7ayBAcSKBc0/c6tdOaf53gwuLrUx2wvoq66v2zTtl33wE0+yS2iZc5soE1q66kbTeRIkRapy6EpwU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fu1lyFUQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fu1lyFUQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DACA7C4CEEC; Sat, 26 Apr 2025 12:29:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745670541; bh=5X3YyZc0yV/prtY2KpDQtJAXr40u4CELtIg3JxZkaAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fu1lyFUQvHjekfeSy21dDTLuBw+UrOAsO/i7yUwZrWSOywuGfaTwMtoSbsI93AT2v vTUnqLU3u+hYH1Q2PSf5Jvo3Zw1R/9/WW5iVwgX8LSgXiI2DYrYMUIBR30pqtAi0ks C+FEaSUViDD0yTAwEUPoQdsBxx8+ziMVCs6/t4oUEyNmmn7PG5bQLsad31y51pRjiQ ElFNNtgY1gcmR3lr4c15EipEjAMMW/FjhbwHVMykHsxz9pvqb4aFltnEMAbuOpKv0d qwSWWa8I5QPviBMP2htXODYG3gL2qVrwW/oBxll9zbexuE0Vti5IGmT5EmhSDn0UXS nK369/PShXwXw== Received: from sofa.misterjones.org ([185.219.108.64] helo=valley-girl.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1u8eeR-0092VH-Tl; Sat, 26 Apr 2025 13:28:59 +0100 From: Marc Zyngier To: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Joey Gouly , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Mark Rutland , Fuad Tabba , Will Deacon , Catalin Marinas Subject: [PATCH v3 36/42] KVM: arm64: Add FEAT_FGT2 registers to the VNCR page Date: Sat, 26 Apr 2025 13:28:30 +0100 Message-Id: <20250426122836.3341523-37-maz@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20250426122836.3341523-1-maz@kernel.org> References: <20250426122836.3341523-1-maz@kernel.org> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, joey.gouly@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, mark.rutland@arm.com, tabba@google.com, will@kernel.org, catalin.marinas@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false The FEAT_FGT2 registers are part of the VNCR page. Describe the corresponding offsets and add them to the vcpu sysreg enumeration. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/kvm_host.h | 5 +++++ arch/arm64/include/asm/vncr_mapping.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 3b5fc64c4085c..abe45f97266c5 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -562,6 +562,11 @@ enum vcpu_sysreg { VNCR(HDFGRTR_EL2), VNCR(HDFGWTR_EL2), VNCR(HAFGRTR_EL2), + VNCR(HFGRTR2_EL2), + VNCR(HFGWTR2_EL2), + VNCR(HFGITR2_EL2), + VNCR(HDFGRTR2_EL2), + VNCR(HDFGWTR2_EL2), VNCR(CNTVOFF_EL2), VNCR(CNTV_CVAL_EL0), diff --git a/arch/arm64/include/asm/vncr_mapping.h b/arch/arm64/include/asm/vncr_mapping.h index 4f9bbd4d6c267..6f556e9936443 100644 --- a/arch/arm64/include/asm/vncr_mapping.h +++ b/arch/arm64/include/asm/vncr_mapping.h @@ -35,6 +35,8 @@ #define VNCR_CNTP_CTL_EL0 0x180 #define VNCR_SCXTNUM_EL1 0x188 #define VNCR_TFSR_EL1 0x190 +#define VNCR_HDFGRTR2_EL2 0x1A0 +#define VNCR_HDFGWTR2_EL2 0x1B0 #define VNCR_HFGRTR_EL2 0x1B8 #define VNCR_HFGWTR_EL2 0x1C0 #define VNCR_HFGITR_EL2 0x1C8 @@ -52,6 +54,9 @@ #define VNCR_PIRE0_EL1 0x290 #define VNCR_PIR_EL1 0x2A0 #define VNCR_POR_EL1 0x2A8 +#define VNCR_HFGRTR2_EL2 0x2C0 +#define VNCR_HFGWTR2_EL2 0x2C8 +#define VNCR_HFGITR2_EL2 0x310 #define VNCR_ICH_LR0_EL2 0x400 #define VNCR_ICH_LR1_EL2 0x408 #define VNCR_ICH_LR2_EL2 0x410 -- 2.39.2