ARM: KVM: Add banked registers save/restore
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 5 Jan 2016 18:38:09 +0000 (18:38 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:13 +0000 (18:34 +0000)
commit33280b4cd1dc0bc7df8d6d3bd1b64c377c9e44d9
tree279e6090a4337f7e08f5a7c014a4b34780cf527c
parent59cbcdb5d83b49d1d2e161f3468f850f9fa4b968
ARM: KVM: Add banked registers save/restore

Banked registers are one of the many perks of the 32bit architecture,
and the world switch needs to cope with it.

This requires some "special" accessors, as these are not accessed
using a standard coprocessor instruction.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/hyp/Makefile
arch/arm/kvm/hyp/banked-sr.c [new file with mode: 0644]
arch/arm/kvm/hyp/hyp.h