linux/arch/arm64/kvm/hyp/vhe
Mark Brown 51729fb1d0 KVM: arm64: Trap SME usage in guest
SME defines two new traps which need to be enabled for guests to ensure
that they can't use SME, one for the main SME operations which mirrors the
traps for SVE and another for access to TPIDR2 in SCTLR_EL2.

For VHE manage SMEN along with ZEN in activate_traps() and the FP state
management callbacks, along with SCTLR_EL2.EnTPIDR2.  There is no
existing dynamic management of SCTLR_EL2.

For nVHE manage TSM in activate_traps() along with the fine grained
traps for TPIDR2 and SMPRI.  There is no existing dynamic management of
fine grained traps.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220419112247.711548-26-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2022-04-22 18:51:22 +01:00
..
debug-sr.c KVM: arm64: MDCR_EL2 is a 64-bit register 2021-08-20 11:12:17 +01:00
Makefile KVM: arm64: Add basic hooks for injecting exceptions from EL2 2020-11-10 08:34:25 +00:00
switch.c KVM: arm64: Trap SME usage in guest 2022-04-22 18:51:22 +01:00
sysreg-sr.c KVM: arm64: Restore mdcr_el2 from vcpu 2021-08-20 11:12:17 +01:00
timer-sr.c KVM: arm64: Duplicate hyp/timer-sr.c for VHE/nVHE 2020-07-05 18:38:38 +01:00
tlb.c KVM: arm64: Unify stage-2 programming behind __load_stage2() 2021-08-20 09:11:28 +01:00