KVM: arm64: Consolidate dist->ready setting into kvm_vgic_map_resources()
authorMarc Zyngier <maz@kernel.org>
Sun, 27 Dec 2020 14:28:34 +0000 (14:28 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 27 Dec 2020 14:39:14 +0000 (14:39 +0000)
commit101068b566ef227b605d807aad9e72efd8b6bc5b
treef7432dc1c5073edd1258c7be1d99ebeadf327c23
parent282ff80135717cc43f1e33ddd4b0cd9e760d060b
KVM: arm64: Consolidate dist->ready setting into kvm_vgic_map_resources()

dist->ready setting is pointlessly spread across the two vgic
backends, while it could be consolidated in kvm_vgic_map_resources().

Move it there, and slightly simplify the flows in both backends.

Suggested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/vgic/vgic-init.c
arch/arm64/kvm/vgic/vgic-v2.c
arch/arm64/kvm/vgic/vgic-v3.c