KVM: arm/arm64: Get rid of vgic_cpu->nr_lr
authorChristoffer Dall <christoffer.dall@linaro.org>
Wed, 6 Apr 2016 12:48:53 +0000 (14:48 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 20 May 2016 13:39:41 +0000 (15:39 +0200)
commit2db4c104fa2a9af12c07433642e2e4fee37fe2fd
treef88a91300e23db229a76cff3394b41724970bb14
parent41a54482c010d8806cf56e1501bb3b61fac14cf9
KVM: arm/arm64: Get rid of vgic_cpu->nr_lr

The number of list registers is a property of the underlying system, not
of emulated VGIC CPU interface.

As we are about to move this variable to global state in the new vgic
for clarity, move it from the legacy implementation as well to make the
merge of the new code easier.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
include/kvm/arm_vgic.h
virt/kvm/arm/hyp/vgic-v2-sr.c
virt/kvm/arm/vgic-v2.c
virt/kvm/arm/vgic.c