OSDN Git Service

KVM: arm64: Move PC rollback on SError to HYP
authorMarc Zyngier <maz@kernel.org>
Wed, 14 Oct 2020 11:12:45 +0000 (12:12 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 10 Nov 2020 08:34:25 +0000 (08:34 +0000)
commitdefe21f49bc98b095300752aa1e19bb608f3e97d
tree8b2b5fb1ce92055a1fcde8a08e2076285e28b5bb
parentcdb5e02ed133731f8a6676a389ed40ca303cab7c
KVM: arm64: Move PC rollback on SError to HYP

Instead of handling the "PC rollback on SError during HVC" at EL1 (which
requires disclosing PC to a potentially untrusted kernel), let's move
this fixup to ... fixup_guest_exit(), which is where we do all fixups.

Isn't that neat?

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/handle_exit.c
arch/arm64/kvm/hyp/include/hyp/switch.h