Skip to content

Fix up test failures due to recent KVM changes

Yang Weijiang kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 4 repliesIn review

Changes in v3 from the cover letter

1. Replaced msr test fixup with Paolo's patch at below link per
Sean's comments, change RO bits to bit 11 and 12 due to Sean's
commit 9fc222967a39 ("KVM: x86: Give host userspace full control of MSR_IA32_MISC_ENABLES")
https://lore.kernel.org/all/[email protected]/

2. Added helpers to check pmu verison and perf_global_ctrl MSR. [Sean]
3. Refactored pmu_lbr code with new helper.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86: Don't overwrite bits 11 and 12 of MSR_IA32_MISC_ENABLEx86/msr.c+7 -10 replies
2/3x86: Skip perf related tests when platform cannot supportlib/x86/processor.h x86/vmx_tests.c+28 -02 replies
3/3x86: Check platform vPMU capabilities before run lbr testslib/x86/processor.h x86/pmu_lbr.c+14 -202 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [kvm-unit-tests PATCH v3 0/3] Fix up test failures due to recent KVM changes

Recently a few pmu KVM patches have been queued, and resulted into some test failures based on the queue branch. Fix them in this series.

Patches were tested with below config:

kernel:
kvm/queue, commit 4284f0063c48

qemu:
master, commit 3a821c52e1a3

platform:
Skylake/Sapphire Rapids

v3:
1. Replaced msr test fixup with Paolo's patch at below link per
Sean's comments, change RO bits to bit 11 and 12 due to Sean's
commit 9fc222967a39 ("KVM: x86: Give host userspace full control of MSR_IA32_MISC_ENABLES")
https://lore.kernel.org/all/[email protected]/

2. Added helpers to check pmu verison and perf_global_ctrl MSR. [Sean]
3. Refactored pmu_lbr code with new helper.

Paolo Bonzini (1):
x86: Don't overwrite bits 11 and 12 of MSR_IA32_MISC_ENABLE

Yang Weijiang (2):
x86: Skip perf related tests when platform cannot support
x86: Check platform vPMU capabilities before run lbr tests

 lib/x86/processor.h | 12 +++++++++++-
 x86/msr.c           |  8 +++++++-
 x86/pmu_lbr.c       | 32 +++++++++++++-------------------
 x86/vmx_tests.c     | 18 ++++++++++++++++++
 4 files changed, 49 insertions(+), 21 deletions(-)

base-commit: 610c15284a537484682adfb4b6d6313991ab954f

Signature · 1 line
2.27.0