]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45e7eeea5ecfb5155054d08a51244fc7044fbf88
treef7432dc1c5073edd1258c7be1d99ebeadf327c23
parent37eecfdb130118822c56421b8f908aff5b44018a
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