From: sashiko-bot@kernel.org
To: "Dennis Reußwig" <dennis@reusswig.codes>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH 08/10] KVM: selftests: Add nested EPT supervisor shadow-stack test
Date: Fri, 04 Dec 2026 00:00:50 +0000 [thread overview]
Message-ID: <sashiko-outbox-248798@kernel.org> (raw)
In-Reply-To: <20261204-nested-sss-v1-8-57de06f58b2b@reusswig.codes>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] KVM: selftests: report results via kselftest.h in main() and
run_test()
--
commit da1c3dab9ca5b6b5323764b1720e87df6b6df5b9
Author: Dennis Reußwig <dennis@reusswig.codes>
KVM: selftests: Add nested EPT supervisor shadow-stack test
This commit adds a KVM x86 selftest that runs an L2 guest with supervisor
shadow stacks enabled across different L1 EPT permissions and verifies that
accesses succeed or trigger the expected EPT violations.
> diff --git a/tools/testing/selftests/kvm/x86/vmx_nested_sss_test.c b/tools/testing/selftests/kvm/x86/vmx_nested_sss_test.c
> new file mode 100644
> index 0000000000000..a685fba0af7f7
> --- /dev/null
> +++ b/tools/testing/selftests/kvm/x86/vmx_nested_sss_test.c
> @@ -0,0 +1,213 @@
[ ... ]
> +static void run_test(const struct sss_test *t)
> +{
[ ... ]
> + pr_info("%s\n", t->name);
[ ... ]
> +int main(int argc, char *argv[])
> +{
> + int i;
> +
> + TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX));
> + TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_SHSTK));
> + TEST_REQUIRE(kvm_cpu_has_ept());
> + TEST_REQUIRE(kvm_get_feature_msr(MSR_IA32_VMX_EPT_VPID_CAP) &
> + VMX_EPT_VPID_CAP_SSS);
> +
> + for (i = 0; i < ARRAY_SIZE(tests); i++)
> + run_test(&tests[i]);
> +
> + return 0;
> +}
[Severity: Low]
Should this test report its subtest results through kselftest.h instead of
pr_info() and a bare return 0 from main()?
Calling ksft_print_header(), ksft_set_plan(ARRAY_SIZE(tests)),
ksft_test_result_pass() for each subtest in run_test(), and ksft_finished()
at the end of main() lets the kselftest runner track each subtest outcome
individually, matching other multi-case x86 KVM selftests such as
svm_nested_efer_test.c and apic_id_routing_test.c.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-nested-sss-v1-0-57de06f58b2b@reusswig.codes?part=8
next prev parent reply other threads:[~2026-12-04 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 23:49 [PATCH 00/10] KVM: nVMX: Supervisor shadow-stack control for nested EPT and CET with eVMCS Dennis Reußwig
2026-12-03 23:49 ` [PATCH 01/10] KVM: nVMX: Allow CET entry/exit controls with enlightened VMCS Dennis Reußwig
2026-12-03 23:49 ` [PATCH 02/10] KVM: x86/mmu: Move TDP A/D tracking type to SPTE bits 56-57 Dennis Reußwig
2026-12-03 23:49 ` [PATCH 03/10] KVM: VMX: Report shadow-stack accesses in EPT violations as PFERR_SS Dennis Reußwig
2026-12-03 23:59 ` sashiko-bot
2026-12-03 23:49 ` [PATCH 04/10] KVM: x86/mmu: Handle the EPT supervisor shadow-stack bit like a write bit Dennis Reußwig
2026-12-03 23:49 ` [PATCH 05/10] KVM: nVMX: Shadow supervisor shadow-stack control of nested EPT Dennis Reußwig
2026-12-03 23:49 ` [PATCH 06/10] KVM: nVMX: Advertise supervisor shadow-stack control for " Dennis Reußwig
2026-12-03 23:49 ` [PATCH 07/10] KVM: selftests: Add helpers for nested EPT shadow-stack and MBEC tests Dennis Reußwig
2026-12-03 23:49 ` [PATCH 08/10] KVM: selftests: Add nested EPT supervisor shadow-stack test Dennis Reußwig
2026-12-04 0:00 ` sashiko-bot [this message]
2026-12-03 23:49 ` [PATCH 09/10] KVM: selftests: Add nested EPT mode-based execute control test Dennis Reußwig
2026-12-03 23:49 ` [PATCH 10/10] KVM: selftests: Check VMX capabilities for CET in L2 with MBEC Dennis Reußwig
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=sashiko-outbox-248798@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dennis@reusswig.codes \
--cc=kvm@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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