linux_dsm_epyc7002/arch/arm64/kvm/hyp
Marc Zyngier c987876a80 arm64: KVM: Make VHE Stage-2 TLB invalidation operations non-interruptible
Contrary to the non-VHE version of the TLB invalidation helpers, the VHE
code  has interrupts enabled, meaning that we can take an interrupt in
the middle of such a sequence, and start running something else with
HCR_EL2.TGE cleared.

That's really not a good idea.

Take the heavy-handed option and disable interrupts in
__tlb_switch_to_guest_vhe, restoring them in __tlb_switch_to_host_vhe.
The latter also gain an ISB in order to make sure that TGE really has
taken effect.

Cc: stable@vger.kernel.org
Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2018-12-10 11:54:37 +00:00
..
debug-sr.c KVM: arm64: Repurpose vcpu_arch.debug_flags for general-purpose flags 2018-05-25 12:28:13 +01:00
entry.S KVM: arm64: Invoke FPSIMD context switch trap from C 2018-05-25 12:28:31 +01:00
fpsimd.S arm64: KVM: Implement fpsimd save/restore 2015-12-14 11:30:41 +00:00
hyp-entry.S KVM: arm64: Safety check PSTATE when entering guest and handle IL 2018-10-19 11:13:03 +01:00
Makefile kvm: arm64: Configure VTCR_EL2 per VM 2018-10-01 13:50:29 +01:00
switch.c kvm: arm64: Add 52bit support for PAR to HPFAR conversoin 2018-10-01 13:50:32 +01:00
sysreg-sr.c KVM updates for v4.20 2018-10-25 17:57:35 -07:00
tlb.c arm64: KVM: Make VHE Stage-2 TLB invalidation operations non-interruptible 2018-12-10 11:54:37 +00:00
vgic-v2-cpuif-proxy.c kvm/arm: use PSR_AA32 definitions 2018-07-05 17:24:15 +01:00