]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba4d7211ad438af3abb0848c44b2ce1a9f4b2ead
tree11430bf3f00bb0e65dd89c1d2548c254fb36768e
parent9ce4f5541497603e6ac757899d7b6874563cfbef
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