]> 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)
commitf8789b60a4febc4d0651ddc0ad9ad1c254639d2b
tree1d10860aaf8d3a865f3e4c196d0aa8e8999d4d1b
parentdad135c5abed514f5fd7131582777c4b40069b59
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