KVM: arm64: Remove pointless check for changed init target
authorOliver Upton <oliver.upton@linux.dev>
Mon, 10 Jul 2023 19:31:38 +0000 (19:31 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 11 Jul 2023 08:40:52 +0000 (09:40 +0100)
commitc8a67729b8a36a5f4857de645ee9808fc99d8618
tree56d59ab8ce3b436853ff81677d86fd2824e2486a
parentea55d5a2cf7c507a9ac03b41716bf1877edad153
KVM: arm64: Remove pointless check for changed init target

At any time there is only a single valid value for KVM_ARM_VCPU_INIT,
depending on the current CPU implementation. In all likelihood, this
will be the generic ARMv8 target.

Drop the pointless check for a changed target value between calls to
KVM_ARM_VCPU_INIT and instead rely on the check against
kvm_target_cpu().

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230710193140.1706399-3-oliver.upton@linux.dev
arch/arm64/kvm/arm.c