]> 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)
commit5a2f73201c9055a63f2fb5de3985ebaa94f34a75
tree5b71c84896d2b3bff50a7a92c7a5047d55ea58b9
parent893fc05cbb00382be3e91583357065549bde5a37
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