Skip to content

Commit b053966

Browse files
committed
KVM: selftests: Assert that MPIDR_EL1 is unchanged across vCPU reset
commit 606af82 ("KVM: selftests: arm64: Test vCPU-scoped feature ID registers") intended to test that MPIDR_EL1 is unchanged across vCPU reset but failed at actually doing so. Add the missing assertion. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent 33d85a9 commit b053966

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ static void test_reset_preserves_id_regs(struct kvm_vcpu *vcpu)
539539
for (int i = 0; i < ARRAY_SIZE(test_regs); i++)
540540
test_assert_id_reg_unchanged(vcpu, test_regs[i].reg);
541541

542+
test_assert_id_reg_unchanged(vcpu, SYS_MPIDR_EL1);
542543
test_assert_id_reg_unchanged(vcpu, SYS_CLIDR_EL1);
543544
test_assert_id_reg_unchanged(vcpu, SYS_CTR_EL0);
544545

0 commit comments

Comments
 (0)