Skip to content

Commit f9d6ed0

Browse files
Fuad TabbaMarc Zyngier
authored andcommitted
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
1 parent 863ac38 commit f9d6ed0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

arch/arm64/include/asm/kvm_arm.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@
370370
#define __HDFGWTR_EL2_MASK ~__HDFGWTR_EL2_nMASK
371371
#define __HDFGWTR_EL2_nMASK GENMASK(62, 60)
372372

373+
#define __HAFGRTR_EL2_RES0 (GENMASK(63, 50) | GENMASK(16, 5))
374+
#define __HAFGRTR_EL2_MASK (GENMASK(49, 17) | GENMASK(4, 0))
375+
#define __HAFGRTR_EL2_nMASK 0UL
376+
373377
/* Similar definitions for HCRX_EL2 */
374378
#define __HCRX_EL2_RES0 (GENMASK(63, 16) | GENMASK(13, 12))
375379
#define __HCRX_EL2_MASK (0)

0 commit comments

Comments
 (0)