arm64: KVM: VHE: Split save/restore of registers shared between guest and host
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 28 Oct 2015 12:39:38 +0000 (12:39 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:17 +0000 (18:34 +0000)
commit9c6c35683286ddf47baf8c6d1931f3af63379490
tree3dc327d02b8c85c92a6569c40089e210a9b4add4
parentedef528dc4bdab1504e72e0f5436b18f3777efc0
arm64: KVM: VHE: Split save/restore of registers shared between guest and host

A handful of system registers are still shared between host and guest,
even while using VHE (tpidr*_el[01] and actlr_el1).

Also, some of the vcpu state (sp_el0, PC and PSTATE) must be
save/restored on entry/exit, as they are used on the host as well.

In order to facilitate the introduction of a VHE-specific sysreg
save/restore, make move the access to these registers to their
own save/restore functions.

No functional change.

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