Skip to content

Commit 9fb4267

Browse files
author
Marc Zyngier
committed
KVM: arm64: Fix selftests after sysreg field name update
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 <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
1 parent aaf69ef commit 9fb4267

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/testing/selftests/kvm/aarch64/aarch32_id_regs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static bool vcpu_aarch64_only(struct kvm_vcpu *vcpu)
147147
vcpu_get_reg(vcpu, KVM_ARM64_SYS_REG(SYS_ID_AA64PFR0_EL1), &val);
148148

149149
el0 = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_EL0), val);
150-
return el0 == ID_AA64PFR0_EL1_ELx_64BIT_ONLY;
150+
return el0 == ID_AA64PFR0_EL1_EL0_IMP;
151151
}
152152

153153
int main(void)

tools/testing/selftests/kvm/aarch64/set_id_regs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ int main(void)
667667
/* Check for AARCH64 only system */
668668
vcpu_get_reg(vcpu, KVM_ARM64_SYS_REG(SYS_ID_AA64PFR0_EL1), &val);
669669
el0 = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_EL0), val);
670-
aarch64_only = (el0 == ID_AA64PFR0_EL1_ELx_64BIT_ONLY);
670+
aarch64_only = (el0 == ID_AA64PFR0_EL1_EL0_IMP);
671671

672672
ksft_print_header();
673673

0 commit comments

Comments
 (0)