]> 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)
commit36727d4637b69b8b06cc08f5cd898927300d0bb4
tree8b2b5fb1ce92055a1fcde8a08e2076285e28b5bb
parent2d5aa130d45456ed3caa7e9d8b90f28b89033aab
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