[PATCH 1/3] KVM: arm64: selftests: Count test_guest_reg_read() as a test
Ben Horgan
ben.horgan at arm.com
Tue Oct 14 03:21:06 PDT 2025
The test test_guest_reg_read() is run without announcing its presence or
contributing to the test count. Rectify this.
Signed-off-by: Ben Horgan <ben.horgan at arm.com>
---
tools/testing/selftests/kvm/arm64/set_id_regs.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/kvm/arm64/set_id_regs.c b/tools/testing/selftests/kvm/arm64/set_id_regs.c
index 5e24f77868b5..6878ee23310e 100644
--- a/tools/testing/selftests/kvm/arm64/set_id_regs.c
+++ b/tools/testing/selftests/kvm/arm64/set_id_regs.c
@@ -655,6 +655,8 @@ static void test_guest_reg_read(struct kvm_vcpu *vcpu)
TEST_FAIL("Unexpected ucall: %lu", uc.cmd);
}
}
+
+ ksft_test_result_pass("%s\n", __func__);
}
/* Politely lifted from arch/arm64/include/asm/cache.h */
@@ -786,7 +788,7 @@ int main(void)
ksft_print_header();
- test_cnt = 3 + MPAM_IDREG_TEST + MTE_IDREG_TEST;
+ test_cnt = 4 + MPAM_IDREG_TEST + MTE_IDREG_TEST;
for (i = 0; i < ARRAY_SIZE(test_regs); i++)
for (j = 0; test_regs[i].ftr_bits[j].type != FTR_END; j++)
test_cnt++;
--
2.43.0
More information about the linux-arm-kernel
mailing list