KVM: selftests: arm64: Test writes to CTR_EL0
authorSebastian Ott <sebott@redhat.com>
Wed, 19 Jun 2024 17:40:36 +0000 (17:40 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 17:16:45 +0000 (17:16 +0000)
commit11a31be88fb6191f2584a0b6364b11e21d068685
tree75fae85a8b0d5c7ff443cb2f1ff1d5818a566c1a
parent76d36012276a328ac0a1e9c7415cafd092447ce7
KVM: selftests: arm64: Test writes to CTR_EL0

Test that CTR_EL0 is modifiable from userspace, that changes are
visible to guests, and that they are preserved across a vCPU reset.

Signed-off-by: Sebastian Ott <sebott@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20240619174036.483943-11-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
tools/testing/selftests/kvm/aarch64/set_id_regs.c