arm64: KVM: VHE: Differenciate host/guest sysreg save/restore
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 28 Oct 2015 12:17:35 +0000 (12:17 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:16 +0000 (18:34 +0000)
commitedef528dc4bdab1504e72e0f5436b18f3777efc0
tree3c92349e2b145f5c7fe7707441016af330762d47
parent915ccd1dbf21e0621fb9415ad76e5c2b31ec137a
arm64: KVM: VHE: Differenciate host/guest sysreg save/restore

With ARMv8, host and guest share the same system register file,
making the save/restore procedure completely symetrical.
With VHE, host and guest now have different requirements, as they
use different sysregs.

In order to prepare for this, add split sysreg save/restore functions
for both host and guest. No functional changes yet.

Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp/hyp.h
arch/arm64/kvm/hyp/switch.c
arch/arm64/kvm/hyp/sysreg-sr.c