Commit 3cfde36d authored by Marc Zyngier's avatar Marc Zyngier Committed by Oliver Upton

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: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240703154743.824824-1-maz@kernel.orgSigned-off-by: default avatarOliver Upton <oliver.upton@linux.dev>
parent 0feec776
...@@ -810,8 +810,8 @@ static u64 limit_nv_id_reg(u32 id, u64 val) ...@@ -810,8 +810,8 @@ static u64 limit_nv_id_reg(u32 id, u64 val)
break; break;
case SYS_ID_AA64ISAR1_EL1: case SYS_ID_AA64ISAR1_EL1:
/* Support everything but Spec Invalidation */ /* Support everything but Spec Invalidation and LS64 */
val &= ~(GENMASK_ULL(63, 56) | val &= ~(NV_FTR(ISAR1, LS64) |
NV_FTR(ISAR1, SPECRES)); NV_FTR(ISAR1, SPECRES));
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment