KVM: arm/arm64: vgic-v3: Make the LR indexing macro public
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 1 Dec 2015 13:48:56 +0000 (13:48 +0000)
committerAlex Shi <alex.shi@linaro.org>
Wed, 9 Nov 2016 14:15:40 +0000 (22:15 +0800)
commitac185e4487ba0b3684f511fcacbc63b0359f679b
treefe38e24803dc9a9a3cb914b99cf3a92d1526eca1
parent2ddc142e465be4a0f11223e1a882f0317dde6763
KVM: arm/arm64: vgic-v3: Make the LR indexing macro public

We store GICv3 LRs in reverse order so that the CPU can save/restore
them in rever order as well (don't ask why, the design is crazy),
and yet generate memory traffic that doesn't completely suck.

We need this macro to be available to the C version of save/restore.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit 3c13b8f435acb452eac62d966148a8b6fa92151f)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
include/kvm/arm_vgic.h
virt/kvm/arm/vgic-v3.c