KVM: ARM: vgic: abstract MISR decoding
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 4 Jun 2013 10:02:10 +0000 (11:02 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:52 +0000 (17:18 +0200)
commit3f79fb5a583821ca4c97d1b694285d36697e69c9
tree57be360fad4451d3efee66fc8a41e8efbae3319c
parentb874bb5cb4795de150d1157a0cf10138122cc093
KVM: ARM: vgic: abstract MISR decoding

Instead of directly dealing with the GICH_MISR bits, move the code to
its own function and use a couple of public flags to represent the
actual state.

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