]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Hide ID_AA64MMFR2_EL1.NV from guest and userspace
authorMarc Zyngier <maz@kernel.org>
Thu, 20 Feb 2025 13:48:55 +0000 (13:48 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 24 Feb 2025 19:06:55 +0000 (11:06 -0800)
commit9d6745572899599966fb76a868acca1cae9518af
treebfd600d778da516c12e1cfa4f2100d01862b15df
parent88aea41b9bc5f6cb325396c3311f581c5a1aad65
KVM: arm64: Hide ID_AA64MMFR2_EL1.NV from guest and userspace

Since our take on FEAT_NV is to only support FEAT_NV2, we should
never expose ID_AA64MMFR2_EL1.NV to a guest nor userspace.

Make sure we mask this field for good.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Link: https://lore.kernel.org/r/20250220134907.554085-3-maz@kernel.org
[oliver: squash diff for NV field]
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/sys_regs.c