]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b02b1afc7255fa82b134922c65764bfd6c9d4f0
tree49da6608d9b99da17c297eecbf36ecc43ce525c9
parent6764522884eaad2392b8447c654cb61ee04452ad
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