KVM: ARM: vgic: abstract VMCR access
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 4 Feb 2014 17:48:10 +0000 (17:48 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:53 +0000 (17:18 +0200)
commit32a0e35ba5210fab6b6379971bba24886b69952a
tree7885bb44ce5c481782538b63e26c7f2e2e45bf51
parent900f2c6eeaaa0daf752a06d654fed8d98d626f9f
KVM: ARM: vgic: abstract VMCR access

Instead of directly messing with with the GICH_VMCR bits for the CPU
interface save/restore code, add accessors that encode/decode the
entire set of registers exposed by VMCR.

Not the most efficient thing, but given that this code is only used
by the save/restore code, performance is far from being critical.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit beee38b9d0c0ea6cf2a7f35c3108f7d8281d4545)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
include/kvm/arm_vgic.h
virt/kvm/arm/vgic.c