KVM: arm/arm64: Check all vcpu redistributors are set on map_resources
commitc957a6d63e176e1ca068f935ca1efc439581aa6c
authorEric Auger <eric.auger@redhat.com>
Tue, 22 May 2018 07:55:15 +0000 (22 09:55 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 25 May 2018 11:29:27 +0000 (25 12:29 +0100)
treed2ee4910879b265531e715c4cc3ef0b4ae303d16
parentc011f4ea106b94e5499358b62d8c2d74f7e184f9
KVM: arm/arm64: Check all vcpu redistributors are set on map_resources

On vcpu first run, we eventually know the actual number of vcpus.
This is a synchronization point to check all redistributors
were assigned. On kvm_vgic_map_resources() we check both dist and
redist were set, eventually check potential base address inconsistencies.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-v3.c