arm64: KVM: vgic-v3: Avoid accessing ICH registers
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 17 Feb 2016 10:25:05 +0000 (10:25 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 9 Mar 2016 04:24:04 +0000 (04:24 +0000)
commit1b8e83c04ee2c05c0cd0d304c4b389adf24ebe7f
tree8b92402c42a91ad052a6393eee6294dc92b0f20a
parent667a87a928c9e1939b1a518be0d62b24378c1fe8
arm64: KVM: vgic-v3: Avoid accessing ICH registers

Just like on GICv2, we're a bit hammer-happy with GICv3, and access
them more often than we should.

Adopt a policy similar to what we do for GICv2, only save/restoring
the minimal set of registers. As we don't access the registers
linearly anymore (we may skip some), the convoluted accessors become
slightly simpler, and we can drop the ugly indexing macro that
tended to confuse the reviewers.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp/vgic-v3-sr.c
include/kvm/arm_vgic.h
virt/kvm/arm/vgic-v3.c