KVM: selftests: arm64: Store expected register value in set_id_regs
authorOliver Upton <oliver.upton@linux.dev>
Thu, 2 May 2024 23:35:27 +0000 (23:35 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 9 May 2024 17:41:50 +0000 (18:41 +0100)
commit46247a317f403e52d51928f0e1b675cffbd1046c
tree2b3af649f1fcd35d317f0948110812c0c8aaaa59
parent41ee9b33e94a2457e936f0cc7423005902f36b67
KVM: selftests: arm64: Store expected register value in set_id_regs

Rather than comparing against what is returned by the ioctl, store
expected values for the feature ID registers in a table and compare with
that instead.

This will prove useful for subsequent tests involving vCPU reset.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240502233529.1958459-6-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/aarch64/set_id_regs.c