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)
commit2defaff48aaf16072a6eac4cf8234917197dfa72
tree45979a2277254da13f71c0cf509140327cb46817
parentd5a5a0eff368f039ed2222b47c15f09cb60e1245
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