ARM: KVM: Add VFP save/restore
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 4 Jan 2016 15:41:51 +0000 (15:41 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:13 +0000 (18:34 +0000)
commit59cbcdb5d83b49d1d2e161f3468f850f9fa4b968
treeb924baa5d068732a3a3b1d7c46b25f2956ad5d61
parentc0c2cdbffef2369a94998fc6d85af25eded92b60
ARM: KVM: Add VFP save/restore

This is almost a copy/paste of the existing version, with a couple
of subtle differences:
- Only write to FPEXC once on the save path
- Add an isb when enabling VFP access

The patch also defines a few sysreg accessors and a __vfp_enabled
predicate that test the VFP trapping state.

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/hyp.h
arch/arm/kvm/hyp/vfp.S [new file with mode: 0644]