From: Yosry Ahmed <yosry.ahmed@linux.dev>
To: Sean Christopherson <seanjc@google.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Jim Mattson <jmattson@google.com>,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
Yosry Ahmed <yosry.ahmed@linux.dev>
Subject: [kvm-unit-tests v2 5/8] x86/svm: Report unsupported SVM tests
Date: Tue, 28 Oct 2025 22:12:10 +0000 [thread overview]
Message-ID: <20251028221213.1937120-6-yosry.ahmed@linux.dev> (raw)
In-Reply-To: <20251028221213.1937120-1-yosry.ahmed@linux.dev>
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.1.851.g4ebd6896fd-goog
next prev parent reply other threads:[~2025-10-28 22:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-28 22:12 [kvm-unit-tests v2 0/8] More tests for selective CR0 intercept Yosry Ahmed
2025-10-28 22:12 ` [kvm-unit-tests v2 1/8] scripts: Always return '2' when skipping tests Yosry Ahmed
2025-10-28 22:12 ` [kvm-unit-tests v2 2/8] x86/svm: Cleanup selective cr0 write intercept test Yosry Ahmed
2025-10-28 22:12 ` [kvm-unit-tests v2 3/8] x86/svm: Move CR0 selective write intercept test near CR3 intercept Yosry Ahmed
2025-10-28 22:12 ` [kvm-unit-tests v2 4/8] x86/svm: Add FEP helpers for SVM tests Yosry Ahmed
2025-10-28 22:12 ` Yosry Ahmed [this message]
2025-10-28 22:12 ` [kvm-unit-tests v2 6/8] x86/svm: Move report_svm_guest() to the top of svm_tests.c Yosry Ahmed
2025-10-28 22:12 ` [kvm-unit-tests v2 7/8] x86/svm: Generalize and improve selective CR0 write intercept test Yosry Ahmed
2025-10-28 22:12 ` [kvm-unit-tests v2 8/8] x86/svm: Add more selective CR0 write and LMSW test cases Yosry Ahmed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251028221213.1937120-6-yosry.ahmed@linux.dev \
--to=yosry.ahmed@linux.dev \
--cc=jmattson@google.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®