Message ID | 20231205102248.1915895-3-tabba@google.com (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 E99E5C07E97 for <linux-arm-kernel@archiver.kernel.org>; Tue, 5 Dec 2023 10:23:29 +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=AG50m1fhf1z+5EmMcI4VLm6kOV+xrHtNiuOfMj6rkqU=; b=nyBQKcUxiVm1dvgr4rZVwvSeHD huJkjGZWbS//VUDFjLkok38UGsfF3OZIC1QTCjJw5TkZX/JnXG00lLcSzqb2RtegqFNwCxxv7R+y9 uSnzv8ECfjQaXcSs6tO0DKhpaI0uNnPIMYSYqYugrt0NZWI/gRiSHms21K3xMso6WhvnM+xFEJrwh pDWG30YiSiDXdpfguZV10T3PakzhFfHAgHL8hyByaB7vAF2Ke/dCfmsDpmCev+tYSGq4Dt9td5gxL ZOfBcJCbq5sw81/pti2OcrEwCrskbVlUngHaARbFL30sBH/Ew0+AM07A4earUrkKiNpHumhL6PvJY bn8gs7BQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rASZy-006xSB-2O; Tue, 05 Dec 2023 10:23:02 +0000 Received: from mail-yb1-xb4a.google.com ([2607:f8b0:4864:20::b4a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rASZv-006xOa-0R for linux-arm-kernel@lists.infradead.org; Tue, 05 Dec 2023 10:23:00 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-db402e6f61dso4560280276.3 for <linux-arm-kernel@lists.infradead.org>; Tue, 05 Dec 2023 02:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701771775; x=1702376575; 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=EDTgGGybB+AQ7IGaR2Nl07imJwzSaW3qApqntwyoxR4=; b=nczPv7Xr1McyvRYP1w0Gc1xlBccInLPVqq8nKphgk08mMc4ypCLW/0QgiRV/jc43Lo dTa6fhLbXEUsClMuCwJIScU1hO24H7XYL7h2En68z2ScC0RSb9So5Lsdm3o5abPgHFQE dLwuGc2jVWWPVBT+Vr8+Wf59Mk08VVH/jZm/Gp9PQ20OnZvrYr0551hr0nueIBYX+8c0 yMaJ5Gd8j9AigwZK5IEXM5pbXdUCKmPmCUl1sgEii/CWdNGyvLVYt1kSITvzEAYC79qL r3FuuS8e13YfvzeN6B62jvRQd9Zg6bE7xP/qWdNXKmripBu/5M1iA/3IaeRurLwaQx8m 28lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701771775; x=1702376575; 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=EDTgGGybB+AQ7IGaR2Nl07imJwzSaW3qApqntwyoxR4=; b=TxqdzujTX5FVQVPT4Ej+pbcUOgqUWN56TYUC0Il+3hv1kRvDKenFfeYcXN4WIRmV/h YqUCIiWgiJUfu7vAhwmFmqr97UeVtTf9MdVXB6tUrWUtfYSBUvJPee9d+BXNJ9NSSZrP 98n8XZ71JymNDX4gvwBxPNqi8pFkDA0mKbnIgF8Ed4RBZ4Du6bIsQGCIEkjpEmu8muGi l+gasFcg8QY8k0k8DNrUHkzNYu8tvQQ4TZpdod9HKB99J4jZ168SaZ8QrwPWFLnGNyih SIvRMiW+n1ZUihbcQv1+/T4e3nY1Uvh8xk/9ykBmuw1jW52vksNQRLeXn+amGG/sDChu pwdw== X-Gm-Message-State: AOJu0YyaWEDIxYctFxcqtoHbuGkEmFVHg2n3hwbRch+w6bEsrdj4jWde X/UILQWmLznWuOJr9Zal6bh7ATgbaQ== X-Google-Smtp-Source: AGHT+IEEGMURNx/6RxJeYsi5qiSPq5a6jKcwLZnJ06ABD0oOVTg9rCRSj91Ag42H3fpP8C2xXhI64oWyuw== X-Received: from fuad.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:1613]) (user=tabba job=sendgmr) by 2002:a25:6f8b:0:b0:da3:b4ef:29fe with SMTP id k133-20020a256f8b000000b00da3b4ef29femr1098953ybc.13.1701771775107; Tue, 05 Dec 2023 02:22:55 -0800 (PST) Date: Tue, 5 Dec 2023 10:22:44 +0000 In-Reply-To: <20231205102248.1915895-1-tabba@google.com> Mime-Version: 1.0 References: <20231205102248.1915895-1-tabba@google.com> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog Message-ID: <20231205102248.1915895-3-tabba@google.com> Subject: [PATCH v1 2/6] KVM: arm64: Add bit masks for HAFGRTR_EL2 From: Fuad Tabba <tabba@google.com> 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-20231205_022259_170811_4BB3DB06 X-CRM114-Status: UNSURE ( 8.66 ) X-CRM114-Notice: Please train this message. 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> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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: Fixes to fine grain traps and pKVM traps
|
expand
|
diff --git a/arch/arm64/include/asm/kvm_arm.h b/arch/arm64/include/asm/kvm_arm.h index b1061647e837..b0dc3249d5cd 100644 --- a/arch/arm64/include/asm/kvm_arm.h +++ b/arch/arm64/include/asm/kvm_arm.h @@ -379,6 +379,10 @@ GENMASK(8, 7) | GENMASK(5, 0)) #define __HDFGWTR_EL2_nMASK GENMASK(62, 60) +#define __HAFGRTR_EL2_RES0 (GENMASK(63, 50) | GENMASK(16, 5)) +#define __HAFGRTR_EL2_MASK (GENMASK(49, 17) | GENMASK(4, 0)) +#define __HAFGRTR_EL2_nMASK 0UL + /* Similar definitions for HCRX_EL2 */ #define __HCRX_EL2_RES0 (GENMASK(63, 25) | GENMASK(13, 12)) #define __HCRX_EL2_MASK (BIT(6))
The HAFGRTR_EL2 register isn't used yet, but it will be in future patches. It's also the only FGT register remaining (not including FGT2 registers). Add the masks for completeness and future patches. The definition is from the latest Arm Architecture System Registers xml specification [*]. [*] https://developer.arm.com/downloads/-/exploration-tools Signed-off-by: Fuad Tabba <tabba@google.com> --- arch/arm64/include/asm/kvm_arm.h | 4 ++++ 1 file changed, 4 insertions(+)