KVM: selftests: Test all possible "invalid" PERF_CAPABILITIES.LBR_FMT vals
authorSean Christopherson <seanjc@google.com>
Thu, 4 Aug 2022 19:18:15 +0000 (12:18 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Aug 2022 19:08:29 +0000 (15:08 -0400)
commit9d27d46160737fc0da7c6b7b9b44ec5135322d2c
tree5b71c84896d2b3bff50a7a92c7a5047d55ea58b9
parent0fcc102923dee97bf33bd199d5b26a6735e16097
KVM: selftests: Test all possible "invalid" PERF_CAPABILITIES.LBR_FMT vals

Test all possible input values to verify that KVM rejects all values
except the exact host value.  Due to the LBR format affecting the core
functionality of LBRs, KVM can't emulate "other" formats, so even though
there are a variety of legal values, KVM should reject anything but an
exact host match.

Suggested-by: Like Xu <like.xu.linux@gmail.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/vmx_pmu_caps_test.c