KVM: arm/arm64: vgic: Use wrapper function to lock/unlock all vcpus in kvm_vgic_create()
authorMiaohe Lin <linmiaohe@huawei.com>
Sat, 30 Nov 2019 02:45:18 +0000 (10:45 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 6 Dec 2019 11:41:38 +0000 (11:41 +0000)
commit72a610f32e1f1664803218ec654a8e3b8fb2081a
treeb44caa77f4b0e9f9cd9b21cbb6a69da29e229c58
parent0bda9498dd45280e334bfe88b815ebf519602cc3
KVM: arm/arm64: vgic: Use wrapper function to lock/unlock all vcpus in kvm_vgic_create()

Use wrapper function lock_all_vcpus()/unlock_all_vcpus()
in kvm_vgic_create() to remove duplicated code dealing
with locking and unlocking all vcpus in a vm.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/1575081918-11401-1-git-send-email-linmiaohe@huawei.com
virt/kvm/arm/vgic/vgic-init.c