]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda0025013785a6bd74ed34d118e4a8f9fd76db77
tree5b71c84896d2b3bff50a7a92c7a5047d55ea58b9
parentebf9627142d36790594c94de8f7392252889db95
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