]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Factor out fault info population and gic workarounds
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 3 Oct 2017 11:16:04 +0000 (13:16 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 10:53:12 +0000 (10:53 +0000)
commit7a2916ba567acdb64e15a364274aa307cf263b5b
tree99ebd459bad18bdbb58308102df2f42e5fd8bd30
parentfacf2b0d1ad16ca5e5fcea97a1a12c6ab6e0d5c2
KVM: arm64: Factor out fault info population and gic workarounds

The current world-switch function has functionality to detect a number
of cases where we need to fixup some part of the exit condition and
possibly run the guest again, before having restored the host state.

This includes populating missing fault info, emulating GICv2 CPU
interface accesses when mapped at unaligned addresses, and emulating
the GICv3 CPU interface on systems that need it.

As we are about to have an alternative switch function for VHE systems,
but VHE systems still need the same early fixup logic, factor out this
logic into a separate function that can be shared by both switch
functions.

No functional change.

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp/switch.c