KVM: selftests: Move 0/initial value PERF_CAPS checks to dedicated sub-test
authorSean Christopherson <seanjc@google.com>
Sat, 11 Mar 2023 00:46:06 +0000 (16:46 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 6 Apr 2023 21:58:43 +0000 (14:58 -0700)
commit710fb612672e0c05fe3f56fb4e81fae22ef492a2
tree526aa9acbf5104206991420b41363cf0d3acb2e8
parent957d0f70e97bb2257d8bf746ff2f524b793751b3
KVM: selftests: Move 0/initial value PERF_CAPS checks to dedicated sub-test

Use a separate sub-test to verify userspace can clear PERF_CAPABILITIES
and restore it to the KVM-supported value, as the testcase isn't unique
to the LBR format.

Link: https://lore.kernel.org/r/20230311004618.920745-10-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/vmx_pmu_caps_test.c