From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796342451; b=B0vHOdlVM3gxHJkWyZErZgxaZaVigI9+76fUprtHXOzlCMQ1kjjRxMz+qd9fWO0VTmA0 2btCMOpDKTcam2kdUFisSTfT4Jbwd29XM84QNN6fG2T3tNe+tcjS/TPt8lPmvaNblGpLo EtSt6Xn7IQTMnyLmGi27SuxXzQ2AgS8RwN8SLXeeontcJvtr984FSekcuP49Dgp2gJlj4 TbMqUWnjOX+uv+3q3xSksbuIrl732Ifa6O+OUOtOqJW2BG7s+D6oAySKaWl+XZMerAoSK InuhZVgO9GH9Ogao4Ky0EjxL9E8npbMM9IFZvnaoJXIdRxLjykva+RapZbgQThSsUTQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796342451; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=6wKt+gWVS/FwZMv5/yhYm5EIVzEyq5De4iNeCIA+TvY=; b=vSpO4xU6vnzJhCYQzUYbz0m+CCyMKx2BLk5A9GBimC3W0ZAhMeKU0U9er6dZO43VooRS Y5vTwSVFUdG/TfxpiHgrjc6DPlVQaGgYj2nP0XvhjbgAxuGauXUo5bOeh8Nlu55PAEIDN DDlX3AaJKghoFkb/KZG0nAdLMsT+hx2Lsee5FMlaMwbUBamSM6RlZjALVhukbkllHaTq0 yh8bR9VJSt6PptLohhhsA893c3fFAZjudjLZ9yV8zGXe/NgPnYwsstTs934f5Ctp0XoII 4vdTfMJj42ky+RUotq4/cwGvGuBuIQjcrYf6xWcZZTi1Vq+p5gp07Y0GQ0hZ0dzvexw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=I2tkUMBn; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56198606A322 for ; Fri, 4 Dec 2026 00:00:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=I2tkUMBn Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBFE41F000C2; Fri, 4 Dec 2026 00:00:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796342451; bh=6wKt+gWVS/FwZMv5/yhYm5EIVzEyq5De4iNeCIA+TvY=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=I2tkUMBnviqQOOBY/Xt6yPaS+1EbrkEseSagTkNuZNXE+fO/hm3tfk3n0kAqAMqEa KTJKh8uKNLC6dp33z83ERTFnjbVN3K/HDAEZUpm6eNsuoYfcrk+I80YSN6FPdUKsjF /HWiWuI8Xkvjvpu+dHejvn+qWLq/uInunBEBsQ+rYQ8t6JK+ulYZUs/eXps9KuiW6G EyxXjJP9EVXBzK04KacJbcZjFdx3io/XQDGnliUt8zB7qL67ur3V3RGUWf8HFK9jQ2 L2wYMR+3Qq2YinLWaq+g+3FUXuR5Lub2/OP7fOSWaI9kwHdUIemjE9KN4DUUpI9V7k fQHp2Q0Ht7itA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 08/10] KVM: selftests: Add nested EPT supervisor shadow-stack test Reply-To: sashiko-reviews@lists.linux.dev To: =?utf-8?b?RGVubmlzIFJldcOfd2ln?= Cc: kvm@vger.kernel.org In-Reply-To: <20261204-nested-sss-v1-8-57de06f58b2b@reusswig.codes> References: <20261204-nested-sss-v1-0-57de06f58b2b@reusswig.codes> <20261204-nested-sss-v1-8-57de06f58b2b@reusswig.codes> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 00:00:50 +0000 X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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=C3=9Fwig 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/tool= s/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 =3D 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-nested-sss= -v1-0-57de06f58b2b@reusswig.codes?part=3D8