KVM: selftests: Verify LBRs are disabled if vPMU is disabled
authorSean Christopherson <seanjc@google.com>
Sat, 11 Mar 2023 00:46:18 +0000 (16:46 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 6 Apr 2023 21:58:44 +0000 (14:58 -0700)
commitd8f992e9fde8dc23b6fe649fa1b0ed5c123738fe
tree5860f17702184497278c6e537576a4bdcc6233f4
parent8b95b4155523dcb5412a73c631c680098bcbbb40
KVM: selftests: Verify LBRs are disabled if vPMU is disabled

Verify that disabling the guest's vPMU via CPUID also disables LBRs.
KVM has had at least one bug where LBRs would remain enabled even though
the intent was to disable everything PMU related.

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