[PATCH v3 06/14] x86/svm: Report unsupported SVM tests

Yosry Ahmed
2025-11-10T23:27:12Z

Print a message when a test is skipped due to being unsupported for
better visibility.

Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
---
x86/svm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/x86/svm.c b/x86/svm.c
index 035367a1e90cf..5015339ddb657 100644
--- a/x86/svm.c
+++ b/x86/svm.c
@@ -403,8 +403,10 @@ int run_svm_tests(int ac, char **av, struct svm_test *svm_tests)
for (; svm_tests[i].name != NULL; i++) {
if (!test_wanted(svm_tests[i].name, av, ac))
continue;
- if (svm_tests[i].supported && !svm_tests[i].supported())
+ if (svm_tests[i].supported && !svm_tests[i].supported()) {
+ report_skip("%s (not supported)", svm_tests[i].name);
continue;
+ }
if (svm_tests[i].v2 == NULL) {
if (svm_tests[i].on_vcpu) {
if (cpu_count() <= svm_tests[i].on_vcpu)
--
2.51.2.1041.gc1ab5b90ca-goog