[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251024194925.3201933-5-yosry.ahmed@linux.dev>
Date: Fri, 24 Oct 2025 19:49:22 +0000
From: Yosry Ahmed <yosry.ahmed@...ux.dev>
To: Sean Christopherson <seanjc@...gle.com>
Cc: Paolo Bonzini <pbonzini@...hat.com>,
Jim Mattson <jmattson@...gle.com>,
kvm@...r.kernel.org,
linux-kernel@...r.kernel.org,
Yosry Ahmed <yosryahmed@...gle.com>
Subject: [kvm-unit-tests 4/7] x86/svm: Report unsupported SVM tests
From: Yosry Ahmed <yosryahmed@...gle.com>
Print a message when a test is skipped due to being unsupported for
better visibility.
Signed-off-by: Yosry Ahmed <yosryahmed@...gle.com>
---
x86/svm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/x86/svm.c b/x86/svm.c
index 035367a1..5015339d 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.1.821.gb6fe4d2222-goog
Powered by blists - more mailing lists