]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Merge kvm_arch_vcpu_run_pid_change() and kvm_vcpu_first_run_init()
authorMarc Zyngier <maz@kernel.org>
Thu, 14 Oct 2021 10:42:38 +0000 (11:42 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 1 Dec 2021 11:51:21 +0000 (11:51 +0000)
commit9ce4f5541497603e6ac757899d7b6874563cfbef
tree310776b146c2dd74b97dadfb2f7bfbe8c36f77c4
parentf23ccae3f7cc028ed4f90f87027aad647fe64dcc
KVM: arm64: Merge kvm_arch_vcpu_run_pid_change() and kvm_vcpu_first_run_init()

The kvm_arch_vcpu_run_pid_change() helper gets called on each PID
change. The kvm_vcpu_first_run_init() helper gets run on the...
first run(!) of a vcpu.

As it turns out, the first run of a vcpu also triggers a PID change
event (vcpu->pid is initially NULL).

Use this property to merge these two helpers and get rid of another
arm64-specific oddity.

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