]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Check all vcpu redistributors are set on map_resources
authorEric Auger <eric.auger@redhat.com>
Tue, 22 May 2018 07:55:15 +0000 (09:55 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 25 May 2018 11:29:27 +0000 (12:29 +0100)
commitd943f9c8f48b7cb7121ede7b7c1cad4937161c23
treed2ee4910879b265531e715c4cc3ef0b4ae303d16
parentf8748f92014108218cca07d03ed12fabe08b386c
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