Message ID | 20240708154438.1218186-6-maz@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 B1BD1C3271E for <linux-arm-kernel@archiver.kernel.org>; Mon, 8 Jul 2024 15:46:42 +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-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rNr6RMeoyjmGzudhDRammW4riDOpBclv11Jqt6BPaN4=; b=pMN6y0BUateE0GaR+IWpXF8xws ZI/tFBsgN5BMnwNxPUp1ia2a+9oWnX1nHe837mJFSzRGSGj1KI3XfEp7qw6XBNWLAmpj5DU1p65a0 FNvkU5idHJL2mVaCMNi3ZdooQ5Jb6lrSk0IaJB8N8C+H1mWWGPVgc2WFBi/Ubgm673lyxGPDUFADq HTqust/A2FJpaJ2nLsOj86T0GXE0e7iy4SRj11mFwf1hoQiwXUmX9xbypSvgyOJgZ+gW/f/EeqMjd +NxjAHi8WwlPQhwP6p5cbxqts3bZ7X7Wnk8S45mMKVg1sm5RTw2lPedU2DVKG4+UeT+H1B1UvNqO/ FAxFf49w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQqZW-00000004HRS-2lXY; Mon, 08 Jul 2024 15:46:34 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQqXy-00000004Gi3-37DV for linux-arm-kernel@lists.infradead.org; Mon, 08 Jul 2024 15:45:00 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id B0F5760EDE; Mon, 8 Jul 2024 15:44:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C793C4AF10; Mon, 8 Jul 2024 15:44:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720453495; bh=TgBIaQlXHfAb7OU3eNgvMSbHhAj0/iNzDpujav5PLFM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EU7PGTxV4EvkB6ybPZ4lWM71Lfk3cDNCFW/ciUREVCufJGnkCIcEabcbnZSAGOf6w 28eXcF8ALvNLlLtdP7YeCEBkPXVKPbg6sX/MMPPLv21UBRLfMAJXLTSC9+SMQ0zZlh QoeMiLkm4DI6Cx/I4kNRHkiwBW+6Tmt0uiSCrYxQDClfPBOVapia7wVtWrKB061A2i B9ItxYKN9Pn5hFMhIaaYuoqlAbgu3WwC97Tr+3fHH1jXV0AxKt/elo+GET/a+/Z6xD 2/SpW8FZ3/khoPjsd0D9TqUnHVFwdRqpuks0U0Jy9s8YjJKlGi3Tq7OxdBoW6RyJSv KksgZZzbaRLDQ== 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 <maz@kernel.org>) id 1sQqXt-00Ae1P-Fk; Mon, 08 Jul 2024 16:44:53 +0100 From: Marc Zyngier <maz@kernel.org> To: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Cc: James Morse <james.morse@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Oliver Upton <oliver.upton@linux.dev>, Zenghui Yu <yuzenghui@huawei.com>, Fuad Tabba <tabba@google.com>, Joey Gouly <joey.gouly@arm.com>, Mark Brown <broonie@kernel.org> Subject: [PATCH 5/7] KVM: arm64: Expose ID_AA64FPFR0_EL1 as a writable ID reg Date: Mon, 8 Jul 2024 16:44:36 +0100 Message-Id: <20240708154438.1218186-6-maz@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240708154438.1218186-1-maz@kernel.org> References: <20240708154438.1218186-1-maz@kernel.org> 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, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, tabba@google.com, joey.gouly@arm.com, broonie@kernel.org 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-20240708_084458_848148_D838DB65 X-CRM114-Status: GOOD ( 12.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
KVM: arm64: Add support for FP8
|
expand
|
diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c index 326262abc2ff4..1157c38568e22 100644 --- a/arch/arm64/kvm/sys_regs.c +++ b/arch/arm64/kvm/sys_regs.c @@ -2386,7 +2386,7 @@ static const struct sys_reg_desc sys_reg_descs[] = { ID_WRITABLE(ID_AA64ZFR0_EL1, ~ID_AA64ZFR0_EL1_RES0), ID_HIDDEN(ID_AA64SMFR0_EL1), ID_UNALLOCATED(4,6), - ID_UNALLOCATED(4,7), + ID_WRITABLE(ID_AA64FPFR0_EL1, ~ID_AA64FPFR0_EL1_RES0), /* CRm=5 */ { SYS_DESC(SYS_ID_AA64DFR0_EL1),
ID_AA64FPFR0_EL1 contains all sort of bits that contain a description of which FP8 subfeatures are implemented. We don't really care about them, so let's just expose that register and allow userspace to disable subfeatures at will. Signed-off-by: Marc Zyngier <maz@kernel.org> --- arch/arm64/kvm/sys_regs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)