linux_dsm_epyc7002/arch/arm64/kvm/hyp
Marc Zyngier 6e977984f6 KVM: arm64: Save/restore sp_el0 as part of __guest_enter
We currently save/restore sp_el0 in C code. This is a bit unsafe,
as a lot of the C code expects 'current' to be accessible from
there (and the opportunity to run kernel code in HYP is specially
great with VHE).

Instead, let's move the save/restore of sp_el0 to the assembly
code (in __guest_enter), making sure that sp_el0 is correct
very early on when we exit the guest, and is preserved as long
as possible to its host value when we enter the guest.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
2020-04-30 12:01:35 +01:00
..
debug-sr.c arm64: KVM: hyp: debug-sr: Mark expected switch fall-through 2019-07-29 11:01:37 +01:00
entry.S KVM: arm64: Save/restore sp_el0 as part of __guest_enter 2020-04-30 12:01:35 +01:00
fpsimd.S arm64: kvm: Annotate assembly using modern annoations 2020-03-09 17:35:29 +00:00
hyp-entry.S KVM: arm64: Delete duplicated label in invalid_vector 2020-04-30 11:17:00 +01:00
Makefile KVM: arm/arm64: Move cc/it checks under hyp's Makefile to avoid instrumentation 2019-05-24 14:53:20 +01:00
switch.c ARM: 2020-04-02 15:13:15 -07:00
sysreg-sr.c KVM: arm64: Save/restore sp_el0 as part of __guest_enter 2020-04-30 12:01:35 +01:00
tlb.c arm64: kvm: hyp: use cpus_have_final_cap() 2020-03-13 17:34:28 +00:00
vgic-v2-cpuif-proxy.c KVM: arm64: Define our own swab32() to avoid a uapi static inline 2020-02-22 11:01:47 +00:00