]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Extend vmx_close_while_nested_test to cover SVM
authorYosry Ahmed <yosry.ahmed@linux.dev>
Tue, 21 Oct 2025 07:47:16 +0000 (07:47 +0000)
committerSean Christopherson <seanjc@google.com>
Fri, 21 Nov 2025 00:19:53 +0000 (16:19 -0800)
commit0a9eb2afa185e84cd6c6b35aefb190e8f92c4c5c
treee953169b1314c4373fba897c40be10f6a9fdf4dc
parent9e4ce7a89e0b5f1d400f05533f38fe2590166ea6
KVM: selftests: Extend vmx_close_while_nested_test to cover SVM

Add SVM L1 code to run the nested guest, and allow the test to run with
SVM as well as VMX.

Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Link: https://patch.msgid.link/20251021074736.1324328-4-yosry.ahmed@linux.dev
[sean: rename to "nested_close_kvm_test" to provide nested_* sorting]
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/Makefile.kvm
tools/testing/selftests/kvm/x86/nested_close_kvm_test.c [moved from tools/testing/selftests/kvm/x86/vmx_close_while_nested_test.c with 64% similarity]