From patchwork Thu Oct 26 12:44:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 738543 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA6F7C25B48 for ; Thu, 26 Oct 2023 12:48:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345017AbjJZMsA (ORCPT ); Thu, 26 Oct 2023 08:48:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345020AbjJZMrf (ORCPT ); Thu, 26 Oct 2023 08:47:35 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8BD1D7D; Thu, 26 Oct 2023 05:47:19 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A765DC433CC; Thu, 26 Oct 2023 12:47:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698324439; bh=DIIfc135uXljK74SaVIpbtbdhvdA87NEj6R4ylFiBfM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=qxNrKZ3wkmk1fUZlvBZPIxXdwDUbHDG9C4rE+ZP4AF4KxxbmlNnW3nqBbZjU56gUP T/6BJ8WmEkx1hOHWn7JbF4VmNb2Y2lqJTf9hSqnkt8H3aBoIuqkLPucLEUkK2PrqsP YpLIG7aw92g9acLkWq7d/oIByzbc2v+Vf4TYafF04Cy9HXuuV9ok1p0bFNcC/Lz2er tsZQDWGaA7dZrYxb8PkiPKcg3oPX5Gj56DVuRrI2COQLZduHt2PxC6BOGm8eLCX9ux Dv5V9c3F7HgDb08pMSN/WkAQNjlBKMFBKliFlkHA/IQFl9YhEodRfaT+ZAGfaQvFrx re8lZhJe3eemw== From: Mark Brown Date: Thu, 26 Oct 2023 13:44:28 +0100 Subject: [PATCH 14/21] KVM: arm64: Add newly allocated ID registers to register descriptions MIME-Version: 1.0 Message-Id: <20231026-arm64-2023-dpisa-v1-14-8470dd989bb2@kernel.org> References: <20231026-arm64-2023-dpisa-v1-0-8470dd989bb2@kernel.org> In-Reply-To: <20231026-arm64-2023-dpisa-v1-0-8470dd989bb2@kernel.org> To: Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Jonathan Corbet , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=1320; i=broonie@kernel.org; h=from:subject:message-id; bh=DIIfc135uXljK74SaVIpbtbdhvdA87NEj6R4ylFiBfM=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlOl+fLC49gT8E/5ElSMU1keDsOAH7G7wRO3eRIqUw jcC6j+aJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZTpfnwAKCRAk1otyXVSH0OHIB/ 0Y4/qd1COrtBKzNMOa9pDRrW9iNmHoVOXZe0+lpK+0j86HfeV7ixEQgl7vc+TH9ILcN42vUMgat3v9 CR7cS0IC8pm03yoRLMo4scLHKGJNapAMnko1em2IIkVXfZDXjhCMUTsKNxDb6WONtDjw3C3I8gVftz NzVjzc3zm8Ro5hAEcpd9cyIDUeLjay0jvUbCPGVJlrgJX9Ok98fHpQVDhufKjb/vtoupE6+46DD2Sx ExSemBLCZBXMvuiJGLa36c2vhpwL0h65gxrIwk0KF9y3R4CaxFI2VRorw0oJYAdeAb3Cn7zb7S1ysK d5CbaxW4uVA2UjYiIOzYvLF5OyGfXd X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org The 2023 architecture extensions have allocated some new ID registers, add them to the KVM system register descriptions so that they are visible to guests. Signed-off-by: Mark Brown --- arch/arm64/kvm/sys_regs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c index 0afd6136e275..99cdaa594b06 100644 --- a/arch/arm64/kvm/sys_regs.c +++ b/arch/arm64/kvm/sys_regs.c @@ -2016,12 +2016,12 @@ static const struct sys_reg_desc sys_reg_descs[] = { .reset = read_sanitised_id_aa64pfr0_el1, .val = ID_AA64PFR0_EL1_CSV2_MASK | ID_AA64PFR0_EL1_CSV3_MASK, }, ID_SANITISED(ID_AA64PFR1_EL1), - ID_UNALLOCATED(4,2), + ID_SANITISED(ID_AA64PFR2_EL1), ID_UNALLOCATED(4,3), ID_SANITISED(ID_AA64ZFR0_EL1), ID_HIDDEN(ID_AA64SMFR0_EL1), ID_UNALLOCATED(4,6), - ID_UNALLOCATED(4,7), + ID_SANITISED(ID_AA64FPFR0_EL1), /* CRm=5 */ { SYS_DESC(SYS_ID_AA64DFR0_EL1), @@ -2042,7 +2042,7 @@ static const struct sys_reg_desc sys_reg_descs[] = { ID_SANITISED(ID_AA64ISAR0_EL1), ID_SANITISED(ID_AA64ISAR1_EL1), ID_SANITISED(ID_AA64ISAR2_EL1), - ID_UNALLOCATED(6,3), + ID_SANITISED(ID_AA64ISAR3_EL1), ID_UNALLOCATED(6,4), ID_UNALLOCATED(6,5), ID_UNALLOCATED(6,6),