Skip to contentSkip to conversation

KVM: arm64: selftest: Add standalone test checking for KVM's own UUID

PATCH Applied Marc Zyngier 2 participants 2 messages Aug 6, 2025 – Aug 8, 2025

Subsystems (3)
lore
Share & tools
lore

Marc Zyngier

author maintainer
#0 lore raw

PATCH 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.

---
 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
index ce817a975e50a..e1eb1ba238a2a 100644
@@ -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
Applied
#1 lore raw
Quoted 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