Skip to content

Commit 3cfde36

Browse files
Marc Zyngieroupton
authored andcommitted
KVM: arm64: nv: Truely enable nXS TLBI operations
Although we now have support for nXS-flavoured TLBI instructions, we still don't expose the feature to the guest thanks to a mixture of misleading comment and use of a bunch of magic values. Fix the comment and correctly express the masking of LS64, which is enough to expose nXS to the world. Not that anyone cares... Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent 0feec77 commit 3cfde36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/kvm/nested.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,8 @@ static u64 limit_nv_id_reg(u32 id, u64 val)
810810
break;
811811

812812
case SYS_ID_AA64ISAR1_EL1:
813-
/* Support everything but Spec Invalidation */
814-
val &= ~(GENMASK_ULL(63, 56) |
813+
/* Support everything but Spec Invalidation and LS64 */
814+
val &= ~(NV_FTR(ISAR1, LS64) |
815815
NV_FTR(ISAR1, SPECRES));
816816
break;
817817

0 commit comments

Comments
 (0)