Skip to content

Commit d7e64b5

Browse files
yosrym93sean-jc
authored andcommitted
x86/svm: Report unsupported SVM tests
Print a message when a test is skipped due to being unsupported for better visibility. Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev> Link: https://patch.msgid.link/20251110232642.633672-7-yosry.ahmed@linux.dev Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 1c5e0e1 commit d7e64b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

x86/svm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,10 @@ int run_svm_tests(int ac, char **av, struct svm_test *svm_tests)
403403
for (; svm_tests[i].name != NULL; i++) {
404404
if (!test_wanted(svm_tests[i].name, av, ac))
405405
continue;
406-
if (svm_tests[i].supported && !svm_tests[i].supported())
406+
if (svm_tests[i].supported && !svm_tests[i].supported()) {
407+
report_skip("%s (not supported)", svm_tests[i].name);
407408
continue;
409+
}
408410
if (svm_tests[i].v2 == NULL) {
409411
if (svm_tests[i].on_vcpu) {
410412
if (cpu_count() <= svm_tests[i].on_vcpu)

0 commit comments

Comments
 (0)