From patchwork Thu Aug 15 12:59:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 13764781 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 9B2F6C52D7C for ; Thu, 15 Aug 2024 13:06:28 +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=1sqrAsFECAecxSmpdtZd6fFyuNK1kUbJRR1h6WCGN7g=; b=RAwLr7F7A1rapkHmsALkHhuc2n X5BPFedS2P4hfkQBSyJDr/vzNwefQBKbgm1i+3TCKC6cYlbsxAsdb+0tiQZBKLeWFs2FPmqzXaCmV wQdgo7J9N6+SRxz49SxQAd47qbt1cgyF/soRMnKdn4zJP0uBo690ohFDUMANDylIJnk5N7ADhIEEW A5FpzAsFcDX7cKHPYPI5LDpDzOXONBUXFjMgj+fKfu+d0mpjdjmO7URPBy/GGL0OguQvJGiCqOlCY vvyTDXd120FMkBk5Gq552bVz4fiUYe1kpCThJBnHlXMo3MPa9Aq34jpmLay1p255GsPZl/nrsczr/ uPdC3kcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seaBC-00000009zCJ-3OhX; Thu, 15 Aug 2024 13:06:14 +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 1sea5I-00000009xjM-2avj for linux-arm-kernel@lists.infradead.org; Thu, 15 Aug 2024 13:00:11 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 749C361E7B; Thu, 15 Aug 2024 13:00:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 464BCC4AF13; Thu, 15 Aug 2024 13:00:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1723726807; bh=mK14fzCAqNWDU2X/p4rg7gI3jGtTuF6ltMZP9FdhjP4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tOpN1n7QiW060Vpp74zalPtBnU5Ocs9BA94JbF9j766RRI8IjoBe4wEI4ocNgiMh/ CfmS8nRZ2IW7BTAX5xUHy43X9t1a4r5yAG8uJ5p/ztLxzQUP15nyhVkJY0oLceouwz xV+LXRUW0VZ0+6jBZC+9epWmBuuSQKOtCVLUeG8j7NRjlnvJpGj8TdHnJC6ccFgZn/ FW2B7BvHlUQetje/2XvK+1GDvphTYRKkl13vZzUw4uXDH5Qs3yM51YbJgqGz7ZepWY n+uUXVNPdKng3fiuJ0KIw032tGBBzobKFv3PW6+CwsxcbnOo9mOeqjigUG081J2SCR w4N8+R7y1c+vQ== 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 1sea5F-003xld-I8; Thu, 15 Aug 2024 14:00:05 +0100 From: Marc Zyngier To: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Cc: James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu Subject: [PATCH 10/11] arm64: Expose ID_AA64ISAR1_EL1.LS64 to sanitised feature consumers Date: Thu, 15 Aug 2024 13:59:58 +0100 Message-Id: <20240815125959.2097734-11-maz@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240815125959.2097734-1-maz@kernel.org> References: <20240815125959.2097734-1-maz@kernel.org> MIME-Version: 1.0 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 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-20240815_060008_924640_491B359B X-CRM114-Status: GOOD ( 10.44 ) 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 Despite KVM now being able to deal with FEAT_LS64, we still don't expose these feature bits to KVM. Plumb in the feature in ID_AA64ISAR1_EL1. Signed-off-by: Marc Zyngier --- arch/arm64/kernel/cpufeature.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 4901daace5a3..1489179f1b25 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -228,6 +228,7 @@ static const struct arm64_ftr_bits ftr_id_aa64isar0[] = { }; static const struct arm64_ftr_bits ftr_id_aa64isar1[] = { + ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64ISAR1_EL1_LS64_SHIFT, 4, 0), ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64ISAR1_EL1_XS_SHIFT, 4, 0), ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64ISAR1_EL1_I8MM_SHIFT, 4, 0), ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64ISAR1_EL1_DGH_SHIFT, 4, 0),