]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: selftests: Consider all 7 possible levels of cache
authorBen Horgan <ben.horgan@arm.com>
Tue, 25 Nov 2025 10:12:07 +0000 (10:12 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 27 Nov 2025 18:16:46 +0000 (18:16 +0000)
commit4138cc63d3efdd77de799aafb0bd183e1d655a0f
treeac8ef0c0af6eed8ea97366bd546a1c97400129f7
parentbf09ee918053edec7efeb2f9977b53b02e029553
KVM: arm64: selftests: Consider all 7 possible levels of cache

In test_clidr() if an empty cache level is not found then the TEST_ASSERT
will not fire. Fix this by considering all 7 possible levels when iterating
through the hierarchy. Found by inspection.

Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Acked-by: Oliver Upton <oupton@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/kvm/arm64/set_id_regs.c