]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: pmu: abstract access to number of SPIs
authorAndre Przywara <andre.przywara@arm.com>
Mon, 7 Mar 2016 10:32:29 +0000 (17:32 +0700)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 20 May 2016 13:39:43 +0000 (15:39 +0200)
commitace3c28f559a79df691efc058a7694e83fe0ecb2
tree45979a2277254da13f71c0cf509140327cb46817
parent89e89e50a267fee45991b706c84a6ae7d0a8c340
KVM: arm/arm64: pmu: abstract access to number of SPIs

Currently the PMU uses a member of the struct vgic_dist directly,
which not only breaks abstraction, but will fail with the new VGIC.
Abstract this access in the VGIC header file and refactor the validity
check in the PMU code.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
include/kvm/arm_vgic.h
virt/kvm/arm/pmu.c