KVM: arm64: Introduce separate VHE/non-VHE sysreg save/restore functions
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 10 Oct 2017 20:19:31 +0000 (22:19 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 10:53:15 +0000 (10:53 +0000)
commitf837453d0e10e9dd2e4444a940ccef1ed3cb243a
tree962a965921070f94cb8e4600094a88016326cab5
parent2b88104467e7742d30134f595c19e943f9c33308
KVM: arm64: Introduce separate VHE/non-VHE sysreg save/restore functions

As we are about to handle system registers quite differently between VHE
and non-VHE systems.  In preparation for that, we need to split some of
the handling functions between VHE and non-VHE functionality.

For now, we simply copy the non-VHE functions, but we do change the use
of static keys for VHE and non-VHE functionality now that we have
separate functions.

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