]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 14 Dec 2015 11:30:38 +0000 (11:30 +0000)
commitbe9a8254028dd7dcc2a8933e51db5dd209107505
tree2632e4a1f49c247191ef4a47f76ffafddf265a20
parent58c0073c9facc565473053de4d260f89fdff5604
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>
include/kvm/arm_vgic.h
virt/kvm/arm/vgic-v3.c