]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm-vgic: Make vgic mmio functions more generic
authorChristoffer Dall <christoffer.dall@linaro.org>
Mon, 23 Sep 2013 21:55:56 +0000 (14:55 -0700)
committerChristoffer Dall <christoffer.dall@linaro.org>
Sat, 21 Dec 2013 18:01:31 +0000 (10:01 -0800)
commitc0516987154125627890fe7a41c52019cd523eb2
tree1d10860aaf8d3a865f3e4c196d0aa8e8999d4d1b
parent0a6b9991dfa99c7c555df1a27ffcb0840814d072
KVM: arm-vgic: Make vgic mmio functions more generic

Rename the vgic_ranges array to vgic_dist_ranges to be more specific and
to prepare for handling CPU interface register access as well (for
save/restore of VGIC state).

Pass offset from distributor or interface MMIO base to
find_matching_range function instead of the physical address of the
access in the VM memory map.  This allows other callers unaware of the
VM specifics, but with generic VGIC knowledge to reuse the function.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic.c