KVM: arm64: Restructure the point where has_run_once is advertised
authorMarc Zyngier <maz@kernel.org>
Thu, 14 Oct 2021 11:18:48 +0000 (12:18 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 1 Dec 2021 11:51:21 +0000 (11:51 +0000)
commit1408e73d21feffe77680acd4da611295db0dfcd8
tree08b587c676dd8d3de90dfddcb9daa99555eae9d0
parent052f064d42b7bac87cbcd140710f262c5f1c3c8b
KVM: arm64: Restructure the point where has_run_once is advertised

Restructure kvm_vcpu_first_run_init() to set the has_run_once
flag after having completed all the "run once" activities.

This includes moving the flip of the userspace irqchip static key
to a point where nothing can fail.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/arm.c