KVM: arm64: selftests: Test for setting ID register from usersapce
authorJing Zhang <jingzhangos@google.com>
Wed, 11 Oct 2023 19:57:40 +0000 (19:57 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 18 Oct 2023 23:37:33 +0000 (23:37 +0000)
commit54a9ea73527d55ab746d5425e10f3fa748e00e70
treee6bfb37b33e243b306407cccd42552fb7d2a61bb
parent0359c946b13153bd57fac65f4f3600ba5673e3de
KVM: arm64: selftests: Test for setting ID register from usersapce

Add tests to verify setting ID registers from userspace is handled
correctly by KVM. Also add a test case to use ioctl
KVM_ARM_GET_REG_WRITABLE_MASKS to get writable masks.

Signed-off-by: Jing Zhang <jingzhangos@google.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231011195740.3349631-6-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/aarch64/set_id_regs.c [new file with mode: 0644]