]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: x86: Fix test failure on arch lbr capable platforms
authorYang Weijiang <weijiang.yang@intel.com>
Thu, 12 May 2022 08:40:46 +0000 (04:40 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 May 2022 09:07:10 +0000 (05:07 -0400)
commit9cf44dfa9a11eb5ad377efdbb743196f24a5d179
tree14e065544ea3a720605b962b7475a080de243ce9
parent20c9e2758b0f7b97ed2fcacfffecc436b2a996d8
KVM: selftests: x86: Fix test failure on arch lbr capable platforms

On Arch LBR capable platforms, LBR_FMT in perf capability msr is 0x3f,
so the last format test will fail. Use a true invalid format(0x30) for
the test if it's running on these platforms. Opportunistically change
the file name to reflect the tests actually carried out.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Yang Weijiang <weijiang.yang@intel.com>
Message-Id: <20220512084046.105479-1-weijiang.yang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/x86_64/vmx_pmu_caps_test.c [new file with mode: 0644]
tools/testing/selftests/kvm/x86_64/vmx_pmu_msrs_test.c [deleted file]