summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/x86/nested_invalid_cr3_test.c
AgeCommit message (Collapse)AuthorFilesLines
2025-11-21KVM: selftests: Extend nested_invalid_cr3_test to cover SVMYosry Ahmed1-3/+40
Add SVM L1 code to run the nested guest, and allow the test to run with SVM as well as VMX. Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev> Link: https://patch.msgid.link/20251021074736.1324328-7-yosry.ahmed@linux.dev Signed-off-by: Sean Christopherson <seanjc@google.com>
2025-11-21KVM: selftests: Move nested invalid CR3 check to its own testYosry Ahmed1-0/+79
vmx_tsc_adjust_test currently verifies that a nested VMLAUNCH fails with an invalid CR3. This is irrelevant to TSC scaling, move it to a standalone test. Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev> Link: https://patch.msgid.link/20251021074736.1324328-6-yosry.ahmed@linux.dev Signed-off-by: Sean Christopherson <seanjc@google.com>