diff options
author | Fuad Tabba <tabba@google.com> | 2023-12-14 10:01:48 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2023-12-18 09:22:32 +0000 |
commit | f9d6ed0213021ea00af30efbfa33e9a06c0610f2 (patch) | |
tree | 49385676677784bb9d5d80ed2225259447a19f2d | |
parent | 863ac38984a822ff9f4337d70853d771dcf7aae5 (diff) | |
download | linux-stable-f9d6ed0213021ea00af30efbfa33e9a06c0610f2.tar.gz linux-stable-f9d6ed0213021ea00af30efbfa33e9a06c0610f2.tar.bz2 linux-stable-f9d6ed0213021ea00af30efbfa33e9a06c0610f2.zip |
KVM: arm64: Add bit masks for HAFGRTR_EL2
To support HAFGRTR_EL2 supported in nested virt in the following
patch, first add its bitmask definitions based on DDI0601 2023-09.
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231214100158.2305400-9-tabba@google.com
-rw-r--r-- | arch/arm64/include/asm/kvm_arm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_arm.h b/arch/arm64/include/asm/kvm_arm.h index b85f46a73e21..7de0a7062625 100644 --- a/arch/arm64/include/asm/kvm_arm.h +++ b/arch/arm64/include/asm/kvm_arm.h @@ -370,6 +370,10 @@ #define __HDFGWTR_EL2_MASK ~__HDFGWTR_EL2_nMASK #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, 16) | GENMASK(13, 12)) #define __HCRX_EL2_MASK (0) |