]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf23ccae3f7cc028ed4f90f87027aad647fe64dcc
tree08b587c676dd8d3de90dfddcb9daa99555eae9d0
parent498d5aeb7b24d882889ec4315d88af0d4088be20
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