[Devel] [PATCH hci-8.2 7/7] ms/KVM: selftests: Add a test for L2 clearing EFER.SVME without intercept

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Dec 1 03:50:02 MSK 2026


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] selftests/kvm: svm_nested_clear_efer_svme.c has unused includes
--

commit e7569dc074d050f2541b7f7d0c986006bb7ed5e1
Author: Yosry Ahmed <yosry.ahmed at linux.dev>

ms/KVM: selftests: Add a test for L2 clearing EFER.SVME without intercept

This adds a selftest that checks KVM synthesizes a triple fault in L1 when
L2 clears EFER.SVME without an L1 intercept.

Link: https://patch.msgid.link/20260209195142.2554532-3-yosry.ahmed@linux.dev

> diff --git a/tools/testing/selftests/kvm/x86/svm_nested_clear_efer_svme.c b/tools/testing/selftests/kvm/x86/svm_nested_clear_efer_svme.c
> new file mode 100644
> index 0000000000000..a521a9eed0613
> --- /dev/null
> +++ b/tools/testing/selftests/kvm/x86/svm_nested_clear_efer_svme.c
> @@ -0,0 +1,55 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +/*
> + * Copyright (C) 2026, Google LLC.
> + */
> +#include "kvm_util.h"
> +#include "vmx.h"
> +#include "svm_util.h"
> +#include "kselftest.h"
> +
> +

[Severity: Low]
This isn't a bug, but are the vmx.h and kselftest.h includes needed? This is
an SVM-only test, and it calls no ksft_* helper. The symbols it does use
come in indirectly through svm_util.h and kvm_util.h. There is also a
stray double blank line after the includes.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261126-khorenko-vstor-157390-kvm-fixes-v1-0-ea4024e03c63@virtuozzo.com?part=7



More information about the Devel mailing list