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 1758FC531D0 for ; Thu, 30 Jul 2026 07:11:51 +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=mkISEBdKQXTLtBTeW4DpAIt58hfEpY8sXlqoKZXUGQI=; b=AcUm71yMnQ1V/7v+BuYWHZ6Dvc TCAv6G3O0i9nWEzXHEn3xMnhDuzZgOEYQ7xNjTy3F0w35B6PzsSs6O/tNmmy29912TYXP2vdsdDwa w8SQrWVy932GJ9UJRxyVKoEQ1iu4Tbv46ibjd8aK06WAR7ZvtwA1viQUG0Ptyf3WwR3ccTXEA/NTg pzps7zqGsDLMs74bDVd9/zEq2EFwHP0dzxZ314SRpHQTNybOYVgE7rVTQ6obeOQkQHktMKCiqAqXu lcZUauCWRKL/LTsAx7vNAFVFQ62QXl09Jc+QqYGRiHkgcvEq2kPSf8i2fGyiasSFalcvluwMf5Ixx +CYckoMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wpKvc-00000009gow-24OC; Thu, 30 Jul 2026 07:11:40 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wpKut-00000009gP1-4BR8 for linux-arm-kernel@lists.infradead.org; Thu, 30 Jul 2026 07:10:56 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id B9D2443FD5; Thu, 30 Jul 2026 07:10:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A03E01F0155C; Thu, 30 Jul 2026 07:10:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785395455; bh=mkISEBdKQXTLtBTeW4DpAIt58hfEpY8sXlqoKZXUGQI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UgGW74N+qg4FqLplOWeGqE+f0OB0l6JW0dS5Z+LEWB3Eh4K9+OPdGnWoo+pN57N00 9N9fe8gL3RbeSR2ltLBZFp+J8x+mD8cj5l/a5j+piMa7dG2rfZjVHitbn4HdlKE287 nxY0+Yf9DwTD6qM397wgYZhf0tB8Qtc627f6lKjl7xfMn5HzWaGBYCOKqEA+6DxQOM qbv8AfcaOeEiqrBWhsr09UetqRm0OtbbcXpgMdfkx9xBY/CMKU2fIUZ7xvv82+wW9I EjGouVJHoNI/5GcAx788nwnaWE39gtmkYfgU5SJO8ZysAUuDJlrzq8EleWBBAIRiVE bcNSQq9GlTCnQ== 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.98.2) (envelope-from ) id 1wpKus-0000000AOpW-055L; Thu, 30 Jul 2026 07:10:54 +0000 From: Marc Zyngier To: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Cc: Steffen Eiden , Joey Gouly , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Yao Yuan , Wei-Lin Chang , Vladimir Murzin Subject: [PATCH v4 26/29] KVM: arm64: Add FEAT_NV3 detection Date: Thu, 30 Jul 2026 08:10:19 +0100 Message-ID: <20260730071022.296811-27-maz@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260730071022.296811-1-maz@kernel.org> References: <20260730071022.296811-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, seiden@linux.ibm.com, joey.gouly@arm.com, suzuki.poulose@arm.com, oupton@kernel.org, yuzenghui@huawei.com, yaoyuan@linux.alibaba.com, weilin.chang@arm.com, vladimir.murzin@arm.com 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 Now that everything is in place to engage the FEAT_NV3 fast-path, add the detection code to cpufeature.c. Reviewed-by: Yuan Yao Signed-off-by: Marc Zyngier --- arch/arm64/kernel/cpufeature.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index c9c124b0ccc8e..6ae1c816e2010 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -2627,6 +2627,13 @@ static const struct arm64_cpu_capabilities arm64_features[] = { .matches = has_cpuid_feature, ARM64_CPUID_FIELDS(ID_AA64MMFR4_EL1, NV_frac, NV2P1) }, + { + .desc = "FEAT_NV3", + .capability = ARM64_HAS_NV3, + .type = ARM64_CPUCAP_SYSTEM_FEATURE, + .matches = has_cpuid_feature, + ARM64_CPUID_FIELDS(ID_AA64MMFR4_EL1, NV_frac, NV3) + }, { .capability = ARM64_HAS_32BIT_EL0_DO_NOT_USE, .type = ARM64_CPUCAP_SYSTEM_FEATURE, -- 2.47.3