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>
This commit is contained in:
Yosry Ahmed 2026-03-03 00:33:58 +00:00 • committed by Sean Christopherson
commit ac17892e51
3 changed files with 151 additions and 0 deletions