KVM: arm64: selftest: Add standalone test checking for KVM's own UUID
Marc Zyngier
maintainerPATCH v2 1/1 KVM: arm64: selftest: Add standalone test checking for KVM's own UUID
Tinkering with UUIDs is a perilious task, and the KVM UUID gets broken at times. In order to spot this early enough, add a selftest that will shout if the expected value isn't found.
Signed-off-by Marc Zyngier <[email protected]>
Reviewed-by Sebastian Ott <[email protected]>
--- tools/testing/selftests/kvm/Makefile.kvm | 1 + tools/testing/selftests/kvm/arm64/kvm-uuid.c | 70 ++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 tools/testing/selftests/kvm/arm64/kvm-uuid.c
tools/testing/selftests/kvm/Makefile.kvm +1 -0
@@ -167,6 +167,7 @@ TEST_GEN_PROGS_arm64 += arm64/vgic_irq TEST_GEN_PROGS_arm64 += arm64/vgic_lpi_stress TEST_GEN_PROGS_arm64 += arm64/vpmu_counter_access TEST_GEN_PROGS_arm64 += arm64/no-vgic-v3 +TEST_GEN_PROGS_arm64 += arm64/kvm-uuid TEST_GEN_PROGS_arm64 += access_tracking_perf_test TEST_GEN_PROGS_arm64 += arch_timer TEST_GEN_PROGS_arm64 += coalesced_io_test
tools/testing/selftests/kvm/arm64/kvm-uuid.c new file +70 -0
70 lines not on this page · raw message
Signature · 1 line
2.39.2
Oliver Upton
AppliedQuoted 5 lines · Marc Zyngier
Tinkering with UUIDs is a perilious task, and the KVM UUID gets broken at times. In order to spot this early enough, add a selftest that will shout if the expected value isn't found.
Applied to fixes, thanks!
[1/1] KVM: arm64: selftest: Add standalone test checking for KVM's own UUID
https://git.kernel.org/kvmarm/kvmarm/c/85acc29f90e0
--
Best,
Oliver