[PATCH 0/2] KVM vPMU code refine

Dapeng Mi posted 2 patches 1 year, 7 months ago
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(-)
[PATCH 0/2] KVM vPMU code refine
Posted by Dapeng Mi 1 year, 7 months ago
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
Re: [PATCH 0/2] KVM vPMU code refine
Posted by Sean Christopherson 1 year, 7 months ago
On Thu, Jun 20, 2024, Dapeng Mi wrote:
> 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.

In the future, please post these as separate patches, they are completely unrelated.
Re: [PATCH 0/2] KVM vPMU code refine
Posted by Mi, Dapeng 1 year, 7 months ago
On 6/21/2024 12:07 AM, Sean Christopherson wrote:
> On Thu, Jun 20, 2024, Dapeng Mi wrote:
>> 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.
> In the future, please post these as separate patches, they are completely unrelated.

Sure. Thanks.