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>
Fri, 11 Jul 2014 11:57:33 +0000 (04:57 -0700)
commitbeee38b9d0c0ea6cf2a7f35c3108f7d8281d4545
tree49da6608d9b99da17c297eecbf36ecc43ce525c9
parent909d9b5025f149af6cfc304a76ad6218e6622cc0
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>
include/kvm/arm_vgic.h
virt/kvm/arm/vgic.c