diff mbox series

KVM: selftests: Assert that MPIDR_EL1 is unchanged across vCPU reset

Message ID 20240621225045.2472090-1-oliver.upton@linux.dev (mailing list archive)
State New, archived
Headers show
Series KVM: selftests: Assert that MPIDR_EL1 is unchanged across vCPU reset | expand

Commit Message

Oliver Upton June 21, 2024, 10:50 p.m. UTC
commit 606af8293cd8 ("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.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
---
 tools/testing/selftests/kvm/aarch64/set_id_regs.c | 1 +
 1 file changed, 1 insertion(+)


base-commit: a9e3d7734719d5b58f260edc15dce3ea4dc3d313

Comments

Oliver Upton June 22, 2024, 6:11 p.m. UTC | #1
On Fri, 21 Jun 2024 22:50:45 +0000, Oliver Upton wrote:
> commit 606af8293cd8 ("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.
> 
> 
> [...]

Applied to kvmarm/next, thanks!

[1/1] KVM: selftests: Assert that MPIDR_EL1 is unchanged across vCPU reset
      https://git.kernel.org/kvmarm/kvmarm/c/7ff163c26dd3

--
Best,
Oliver
diff mbox series

Patch

diff --git a/tools/testing/selftests/kvm/aarch64/set_id_regs.c b/tools/testing/selftests/kvm/aarch64/set_id_regs.c
index 9583c04f1228..d20981663831 100644
--- a/tools/testing/selftests/kvm/aarch64/set_id_regs.c
+++ b/tools/testing/selftests/kvm/aarch64/set_id_regs.c
@@ -539,6 +539,7 @@  static void test_reset_preserves_id_regs(struct kvm_vcpu *vcpu)
 	for (int i = 0; i < ARRAY_SIZE(test_regs); i++)
 		test_assert_id_reg_unchanged(vcpu, test_regs[i].reg);
 
+	test_assert_id_reg_unchanged(vcpu, SYS_MPIDR_EL1);
 	test_assert_id_reg_unchanged(vcpu, SYS_CLIDR_EL1);
 	test_assert_id_reg_unchanged(vcpu, SYS_CTR_EL0);