From patchwork Wed Dec 6 10:04:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fuad Tabba X-Patchwork-Id: 13481340 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 C70DAC4167B for ; Wed, 6 Dec 2023 10:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=J8Hu6D2gjn9gYFwP5/3Bkc+RECNq/tqAj/mApFnHYE8=; b=3Ij6lRRFT2DqB/qXrlrXOQLErm llT1D+n4DjsdNs+h98qOpv9czMaaGnCeizaHNAXp6ebBDJ7N743Q1uGp31hTmQWWBccUM14B3FeBb adYbEnC/R3eYUu/B7bN1pjXPfuOMOh3OwPDH0cPQtl/fYXjZQU2JIuMXPX5AxN1pWUd08qpqpm4S/ eSFesUrCl16Mx3pEYIREXFbK4F1N0xKGzvvr7qaHG4/fIkRrFi3KVgPxJdkx+KK2QO1IeaMz9SlHp oCRNdDGiruxc7GlqATPuxSAFZCF4DNOw5Y5yj3RWgcClTPZS0nG8vvP+cfxg8Ijmij9VWIBT/nOim /6wSuDgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAomK-009d4P-1P; Wed, 06 Dec 2023 10:05:16 +0000 Received: from mail-wr1-x44a.google.com ([2a00:1450:4864:20::44a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAomG-009d2f-0J for linux-arm-kernel@lists.infradead.org; Wed, 06 Dec 2023 10:05:13 +0000 Received: by mail-wr1-x44a.google.com with SMTP id ffacd0b85a97d-33353f98b7bso515594f8f.0 for ; Wed, 06 Dec 2023 02:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701857108; x=1702461908; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=+hb6XkMaA8wq8n6byWbZcgbzRuAU/Da9bRJr34V2lOA=; b=AE3cmSAY880RZMM+CaqU1nziM5QusWHBjZzvT6YxCJBRiQhJPWV6uphSxM31rv7f2E pFXzLhD985ExIYJR2kPBrlpLgzwUALkoZBlV8vbIM7Q2BL5okTbdI+3y5cJ+pAGYughI iZlwIC4YYY64KOPMEFIHx9iGaUyNr1dnnhwXwd4p8gR7PW+24cvF1g+ur/XQ49/X8nN2 Z1ExqOUxW82CdJ7OCbpEZ9BMWpAafTwsFuf7swINzjTxUIswhkYfmB4U8eaVHlfBnnjH cfjPAsN4N2uLVHs2tF/TAEQmoMniijetamhSQxI0lGrNUlNf0usKMeeOorfbZR1Ttpug rinw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701857108; x=1702461908; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+hb6XkMaA8wq8n6byWbZcgbzRuAU/Da9bRJr34V2lOA=; b=hC9xwcWs9Hb3FrjVNAvUMvGy8koSUrYLdBu7n+4vElyL7rkAg3xsZ3DDEulzCPnG0j V5SaAKRY+n0qL2tyfyMvPjPeVj08n8LCmR19tb1CZcZ56A++Z0DBoCCAYkIH/zIMiQqB WVsgvgUWtS4dhV1/joP8iv912IHRJQqamoTYy6I8T54rxsjykgS+yqNHlnKdO/APdajG tLyLyn16iSKoeQV24jYreuNbcpJUnsXzn/Tv39/n+n8lZZXyrPaQ/gnqgssY8nFuiBV/ lZzkzExcB1/BRQp010maS7yQM6CGEWDtCBzRLQ4w3iAfWkFWpD473ZzYzUYyx3OS9wF5 AA4g== X-Gm-Message-State: AOJu0Ywf/p0wUCdobBbgNTS6y4MGJJw+cgAwp4yOzI4spxoOELSCnhg0 CtzXm9oQZf8buY+k4MVkUHXk2wpqjg== X-Google-Smtp-Source: AGHT+IFSPIaZXt3uxp4qWQADPeVuALXIH470f8vIbOpzJeFZxkCVe1ayPA4dezVGvXu7nvOTxIzYki2wiQ== X-Received: from fuad.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:1613]) (user=tabba job=sendgmr) by 2002:adf:f1c4:0:b0:333:347a:581c with SMTP id z4-20020adff1c4000000b00333347a581cmr2799wro.9.1701857107866; Wed, 06 Dec 2023 02:05:07 -0800 (PST) Date: Wed, 6 Dec 2023 10:04:51 +0000 In-Reply-To: <20231206100503.564090-1-tabba@google.com> Mime-Version: 1.0 References: <20231206100503.564090-1-tabba@google.com> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog Message-ID: <20231206100503.564090-2-tabba@google.com> Subject: [PATCH v2 01/12] KVM: Add missing HCRX_EL2 field definitions From: Fuad Tabba To: kvmarm@lists.linux.dev Cc: maz@kernel.org, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, eric.auger@redhat.com, jingzhangos@google.com, joey.gouly@arm.com, tabba@google.com, linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231206_020512_134057_14BC94A9 X-CRM114-Status: GOOD ( 10.18 ) 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 Add the latest field definitions to HCRX_EL2 from the 2023-09 Arm Architecture System Registers xml specification [*]. These fields aren't used yet. This is done mainly to get the correct generated value for the register's RES0 mask. [*] https://developer.arm.com/documentation/ddi0601/2023-09/AArch64-Registers/HCRX-EL2--Extended-Hypervisor-Configuration-Register Signed-off-by: Fuad Tabba Reviewed-by: Mark Brown --- arch/arm64/tools/sysreg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 96cbeeab4eec..c6cc8f2396e6 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -2300,7 +2300,9 @@ Fields ZCR_ELx EndSysreg Sysreg HCRX_EL2 3 4 1 2 2 -Res0 63:23 +Res0 63:25 +Field 24 PACMEn +Field 23 EnFPM Field 22 GCSEn Field 21 EnIDCP128 Field 20 EnSDERR