]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf02b3c0497d4709ae63c050bb8669f09d4705c2f
tree8b2b5fb1ce92055a1fcde8a08e2076285e28b5bb
parentefa1e01202d460ae70075a39b69aedf2114bef45
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