KVM: arm64: Drop vcpu->arch.has_run_once for vcpu->pid
authorMarc Zyngier <maz@kernel.org>
Thu, 14 Oct 2021 11:13:06 +0000 (12:13 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 1 Dec 2021 11:51:22 +0000 (11:51 +0000)
commitcc5705fb1bf119ebb693d594f0157e0dd418590e
tree11430bf3f00bb0e65dd89c1d2548c254fb36768e
parentb5aa368abfbf4c0e041c792e3340955554eff97e
KVM: arm64: Drop vcpu->arch.has_run_once for vcpu->pid

With the transition to kvm_arch_vcpu_run_pid_change() to handle
the "run once" activities, it becomes obvious that has_run_once
is now an exact shadow of vcpu->pid.

Replace vcpu->arch.has_run_once with a new vcpu_has_run_once()
helper that directly checks for vcpu->pid, and get rid of the
now unused field.

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