[PATCH 0/2] KVM vPMU code refine

Dapeng Mi
2024-06-19T02:20:20Z

This small patchset refines KVM vPMU code and relevant selftests.
Patch 1/2 defines new macro KVM_PMC_MAX_GENERIC to avoid the Intel
specific macro KVM_INTEL_PMC_MAX_GENERIC to be used in vPMU x86 common
code. Patch 2/2 reduces the verbosity of "Random seed" messages to avoid
the hugh number of messages to flood the regular output of selftests.

No logic change in this patchset and Kselftests/KUT PMU related tests
passed with this patchset.

Dapeng Mi (2):
KVM: x86/pmu: Define KVM_PMC_MAX_GENERIC for platform independence
selftests: kvm: Reduce verbosity of "Random seed" messages

arch/x86/include/asm/kvm_host.h | 9 +++++----
arch/x86/kvm/svm/pmu.c | 2 +-
arch/x86/kvm/vmx/pmu_intel.c | 2 ++
tools/testing/selftests/kvm/lib/kvm_util.c | 2 +-
4 files changed, 9 insertions(+), 6 deletions(-)

base-commit: 0ce958282e66b3d1882e2bb2f503a5e2cebcc3ef
--
2.34.1