]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Add a test for LBR save/restore (ft. nested)
authorYosry Ahmed <yosry@kernel.org>
Tue, 3 Mar 2026 00:33:58 +0000 (00:33 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 5 Mar 2026 00:08:45 +0000 (16:08 -0800)
commitac17892e51525ccea892b7e3171e2d1e9bb6fa61
tree3810c26db61d0493434424bea5d82805a42f82eb
parent3700f0788da6acf73b2df56690f4b201aa4aefd2
KVM: selftests: Add a test for LBR save/restore (ft. nested)

Add a selftest exercising save/restore with usage of LBRs in both L1 and
L2, and making sure all LBRs remain intact.

Signed-off-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260303003421.2185681-5-yosry@kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/Makefile.kvm
tools/testing/selftests/kvm/include/x86/processor.h
tools/testing/selftests/kvm/x86/svm_lbr_nested_state.c [new file with mode: 0644]