Skip to content

Commit c8a6772

Browse files
ouptonMarc Zyngier
authored andcommitted
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 <[email protected]> Reviewed-by: Zenghui Yu <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ea55d5a commit c8a6772

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/arm64/kvm/arm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,8 +1212,7 @@ static bool kvm_vcpu_init_changed(struct kvm_vcpu *vcpu,
12121212
{
12131213
unsigned long features = init->features[0];
12141214

1215-
return !bitmap_equal(vcpu->arch.features, &features, KVM_VCPU_MAX_FEATURES) ||
1216-
vcpu->arch.target != init->target;
1215+
return !bitmap_equal(vcpu->arch.features, &features, KVM_VCPU_MAX_FEATURES);
12171216
}
12181217

12191218
static int __kvm_vcpu_set_target(struct kvm_vcpu *vcpu,

0 commit comments

Comments
 (0)