KVM: arm64: Unify non-VHE host/guest sysreg save and restore functions
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 10 Oct 2017 20:40:13 +0000 (22:40 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 10:53:15 +0000 (10:53 +0000)
commit4cdecaba0146481f1503a645b8a5a41c1e8566c9
treed1a1da331da965e5a5fdd0f56986e33b419d3204
parent0a62d43314e9f886e37fdf26a9ea9505a4e467cf
KVM: arm64: Unify non-VHE host/guest sysreg save and restore functions

There is no need to have multiple identical functions with different
names for saving host and guest state.  When saving and restoring state
for the host and guest, the state is the same for both contexts, and
that's why we have the kvm_cpu_context structure.  Delete one
version and rename the other into simply save/restore.

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