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>
Fri, 11 Jul 2014 11:57:32 +0000 (04:57 -0700)
commit495dd859f304689a7cd5ef413c439cb090dc25e6
treeefeaef9196b6b31c93edfa83607c58dcc7913104
parent8d6a0313c125c3c7b208b75695fe6ab00afab4c5
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>
include/kvm/arm_vgic.h
virt/kvm/arm/vgic.c