Skip to content

Commit

Permalink
KVM: arm64: Fix selftests after sysreg field name update
Browse files Browse the repository at this point in the history
Fix KVM selftests that check for EL0's 64bit-ness, and use a now
removed definition. Kindly point them at the new one.

Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
  • Loading branch information
Marc Zyngier committed Jan 13, 2025
1 parent aaf69ef commit 9fb4267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/testing/selftests/kvm/aarch64/aarch32_id_regs.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static bool vcpu_aarch64_only(struct kvm_vcpu *vcpu)
vcpu_get_reg(vcpu, KVM_ARM64_SYS_REG(SYS_ID_AA64PFR0_EL1), &val);

el0 = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_EL0), val);
return el0 == ID_AA64PFR0_EL1_ELx_64BIT_ONLY;
return el0 == ID_AA64PFR0_EL1_EL0_IMP;
}

int main(void)
Expand Down
2 changes: 1 addition & 1 deletion tools/testing/selftests/kvm/aarch64/set_id_regs.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ int main(void)
/* Check for AARCH64 only system */
vcpu_get_reg(vcpu, KVM_ARM64_SYS_REG(SYS_ID_AA64PFR0_EL1), &val);
el0 = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_EL0), val);
aarch64_only = (el0 == ID_AA64PFR0_EL1_ELx_64BIT_ONLY);
aarch64_only = (el0 == ID_AA64PFR0_EL1_EL0_IMP);

ksft_print_header();

Expand Down

0 comments on commit 9fb4267

Please sign in to comment.